support/check-bin-arch: exclude kernel modules for merged /usr
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 7 Mar 2018 21:51:24 +0000 (22:51 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 7 Mar 2018 22:03:52 +0000 (23:03 +0100)
When using a merged /usr, the kernel module path is really
/usr/lib/modules, as /lib is a symlink to usr/lib .

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
docs/manual/adding-packages-generic.txt
support/scripts/check-bin-arch

index eecf6e2ec05f82bf3ade9ffa030c4a72ceb8266b..521d6d50c7d57cd026d1b18cca72af4ea29b4aea 100644 (file)
@@ -457,8 +457,8 @@ information is (assuming the package name is +libfoo+) :
   to the target directory) to ignore when checking that the package
   installs correctly cross-compiled binaries. You seldom need to set this
   variable, unless the package installs binary blobs outside the default
-  locations, `/lib/firmware`, `/usr/lib/firmware`, `/lib/modules`, and
-  `/usr/share`, which are automatically excluded.
+  locations, `/lib/firmware`, `/usr/lib/firmware`, `/lib/modules`,
+  `/usr/lib/modules`, and `/usr/share`, which are automatically excluded.
 
 The recommended way to define these variables is to use the following
 syntax:
index d8385b4fcf2161e37b18fd3ea0d5b9cc4ed127f6..7f97696735c847c45c443642583d932268ded487 100755 (executable)
@@ -14,6 +14,7 @@ declare -a IGNORES=(
        # and its modules may still be 64-bit. To keep the basic
        # check-bin-arch logic simple, just skip this directory.
        "/lib/modules"
+       "/usr/lib/modules"
 
        # Skip files in /usr/share, several packages (qemu,
        # pru-software-support) legitimately install ELF binaries that