[OE-core] [OE-core Yocto PATCH 3/4] bootimg: Skip build iso image for aarch64

Naresh Bhat naresh.bhat at linaro.org
Wed Mar 4 07:15:15 UTC 2015


On 3 March 2015 at 23:27, Bernhard Reutner-Fischer
<rep.dot.nop at gmail.com> wrote:
> On 3 March 2015 at 16:46, Naresh Bhat <naresh.bhat at linaro.org> wrote:
>> Build iso image required syslinux package.  We have already skip the syslinux
>> package.  Hence just skip the iso image build too.
>>
>> Signed-off-by: Naresh Bhat <naresh.bhat at linaro.org>
>> Reviewed-by: Matt Fleming <matt.fleming at intel.com>
>> ---
>>  meta/classes/bootimg.bbclass |    6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/bootimg.bbclass b/meta/classes/bootimg.bbclass
>> index a8e0c19..2edba3a 100644
>> --- a/meta/classes/bootimg.bbclass
>> +++ b/meta/classes/bootimg.bbclass
>> @@ -266,7 +266,11 @@ python do_bootimg() {
>>      if d.getVar("EFI", True) == "1":
>>          bb.build.exec_func('build_efi_cfg', d)
>>      bb.build.exec_func('build_hddimg', d)
>> -    bb.build.exec_func('build_iso', d)
>> +
>> +    if [ "${TARGET_ARCH}" == "aarch64" ]:
>> +             return
>
> erm is this shell-code or python-code?
>
> For the former there is no "==" operator for POSIX-compliant test(1)
> implementations, for the latter the "[" looks suspicious.
>
> What am i missing?
> thanks,

Ah my mistake, Probably I could have implemented as below

if d.getVar('TARGET_ARCH', True) == "aarch64":
               return

Does it make sense ?

>> +    else:
>> +            bb.build.exec_func('build_iso', d)
>>  }
>>
>>  IMAGE_TYPEDEP_iso = "ext3"



More information about the Openembedded-core mailing list