[OE-core] [PATCH 1/6] allarch: disable allarch when multilib is used

richard.purdie at linuxfoundation.org richard.purdie at linuxfoundation.org
Wed Sep 5 21:34:36 UTC 2018


On Wed, 2018-09-05 at 10:52 +0800, Kang Kai wrote:
> I searched oe-core for which inherits allarch and bbextend nativesdk
> by:
> 
> $ rgrep 'inherit.*allarch' -l meta | xargs grep -l 
> 'BBCLASSEXTEND.*nativesdk'
> meta/recipes-devtools/autoconf-archive/autoconf-archive_2018.03.13.bb
> meta/recipes-support/ca-certificates/ca-certificates_20180409.bb
> meta/recipes-core/update-rc.d/update-rc.d_0.8.bb
> 
> And I checked one of them:
> 
> $ bitbake -e nativesdk-autoconf-archive > be.nativesdk-autoconf-
> archive
> 
> The var PACKAGE_ARCH will be set with value from nativesdk.bbclass
> and 
> overwrite the value from allarch.bbclass:
> 
> # $PACKAGE_ARCH [4 operations]
> #   set /buildarea/kkang/yocto/poky/meta/conf/bitbake.conf:150
> #     [_defaultval] "${TUNE_PKGARCH}"
> #   set /buildarea/kkang/yocto/poky/meta/conf/documentation.conf:304
> #     [doc] "The architecture of the resulting package or packages."
> #   set /buildarea/kkang/yocto/poky/meta/classes/allarch.bbclass:5
> # "all"
> #   set /buildarea/kkang/yocto/poky/meta/classes/nativesdk.bbclass:18
> # "${SDK_ARCH}-${SDKPKGSUFFIX}"
> # pre-expansion value:
> # "${SDK_ARCH}-${SDKPKGSUFFIX}"
> PACKAGE_ARCH="x86_64-nativesdk"
> 
> It seems update of allarch.bbclass doesn't affect nativesdk. Or did
> I miss something? Thanks.

Sorry, I think its me that is confused. I could have sworn there was a
noarch-nativesdk package class. I think we abandoned it due to is not
giving much benefit but high complexity and you're right, looking at
the code, it doesn't exist now.

Cheers,

Richard



More information about the Openembedded-core mailing list