[OE-core] [PATCH v2 00/10] wic: bugfixes & --fixed-size support, tests, selftest: minor fixes

Maciej Borzęcki maciej.borzecki at rndity.com
Mon Nov 14 14:03:42 UTC 2016


On Mon, Nov 14, 2016 at 2:34 PM, Burton, Ross <ross.burton at intel.com> wrote:
>
> On 14 November 2016 at 10:35, Maciej Borzęcki <maciej.borzecki at rndity.com>
> wrote:
>>
>> Do you think it makes sense to replace TARGET_ARCH check with something
>> like this instead:
>>
>>         arch = get_bb_var('HOST_ARCH', 'core-image-minimal')
>>
>>         is_x86 = arch in ['i586', 'i686', 'x86-64']
>>         if is_x86:
>>             self.write_config('IMAGE_FSTYPES += " hddimg"\n'
>>                               'MACHINE_FEATURES_append = " efi"\n')
>>
>> Basically, I do not want to build syslinux or set config options that
>> are usable on x86 target when building for other targets.
>
>
> That expression is more likely to work, yeah, though woudn't TARGET_ be more
> suitable than HOST_?

TARGET_ARCH is in fact not exported as you have indicated, there's this
piece in meta/conf/bitbake.conf:

  # Make sure TARGET_ARCH isn't exported
  # (breaks Makefiles using implicit rules, e.g. quilt, as GNU make has this
  # in them, undocumented)
  TARGET_ARCH[unexport] = "1"

HOST_ARCH defaults to TARGET_ARCH, I suppose it should be fine to use:

  HOST_ARCH = "${TARGET_ARCH}"

Cheers,
-- 
Maciej Borzecki
RnDity



More information about the Openembedded-core mailing list