[Buildroot] [PATCH 1/1] check-bin-arch: skip /lib/modules to allow 32-bit userland on 64-bit arch

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Feb 25 22:16:16 UTC 2018


Hello,

On Tue, 20 Feb 2018 12:11:56 +0100, Thomas De Schampheleire wrote:
> The script check-bin-arch fails as follows on a config for PowerPC e6500
> (64-bit CPU) with BR2_ARCH="powerpc" (32-bit userland desired):
> 
> ERROR: architecture for "/lib/modules/..../lib/libcrc32c.ko"
>             is "PowerPC64", should be "PowerPC"
> 
> This situation is perfectly acceptable: the kernel is 64-bit and so are its
> modules, even though userland is 32-bit.
> 
> To keep check-bin-arch and its caller simple, just skip /lib/modules/
> entirely, like is done for /lib/firmware and some others.
> 
> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> ---
>  support/scripts/check-bin-arch | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list