[meta-xilinx] [PATCH] cooker: Fix support for wildcards in bbappend filenames
Martin Townsend
martin.townsend at xsilon.com
Fri Nov 29 01:59:16 PST 2013
Hi,
After adding an entry for linux-microblazeel in Configure it built. I
just copied the linux-generic32 entry so I don't know if it will
actually work :) Does anyone know what the real fix should be? After
this the core-image-minimal builds.
Cheers,
Martin.
On 29/11/13 09:08, Martin Townsend wrote:
> Hi Nathan,
>
> I've applied the fix and it has built the toolchain :) my build has
> failed on openssl though
> | ERROR: Function failed: do_configure (log file is located at
> /home/martin/xsi_workspace/poky/build/poky-ml605-microblazeel-tmp/work/microblazeel-v8.40-bs-cmp-re-mh-div-poky-linux/openssl/1.0.1e-r15.0/temp/log.do_configure.20571)
> ERROR: Task 1621
> (/home/martin/xsi_workspace/poky/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb,
> do_configure) failed with exit code '1'
> After a bit of digging it doesn't like the command it runs during
> do_configure
> perl ./Configure shared --prefix=/usr --openssldir=/usr/lib/ssl
> --libdir=lib linux-microblazeel
>
> I tried it manually and get the same message, if I try a different
> os/compiler at the end like linux-armv4 then it works. I tried
> linux-microblaze too with no joy. It does list all the os/compilers
> supported and I can't see a microblaze in there. Any suggestions?
>
> Cheers,
> Martin.
>
>
> On 29/11/13 05:19, Nathan Rossi wrote:
>> The 'bbappend in f' incorrectly compares the current recipe with the
>> avaliable
>> bbappends recipes. This comparsion causes unrequested bbappend files
>> to be
>> appended, e.g. in the case of 'libgcc_4.8.bb', the bbappends for
>> 'libgcc_4.8.bb'
>> and 'gcc_4.8.bb' are added to the filelist (because 'gcc_4.8.bb' is
>> contained in
>> the 'libgcc_4.8.bb' string) which in turn causes the gcc_4.8.bbappend
>> files to
>> be appended to the libgcc_4.8 recipe.
>>
>> This should be a 'bbappend == f' to match the previous implementation
>> of this
>> function, such that if no wildcard is present the recipe names must
>> match
>> exactly.
>>
>> This issue was introduced by commit
>> 31bc9af9cd56e7b318924869970e850993fafc5f,
>> which it related to [YOCTO #5411].
>>
>> Signed-off-by: Nathan Rossi <nathan.rossi at xilinx.com>
>> ---
>>
>> This patch resolves an issue that is seen in the meta-xilinx yocto
>> layer. In the
>> layer we add appends for both gcc and libgcc, as such we get a
>> duplication of
>> configuration.
>>
>> Please let me know if this patch is expected, or if the change to the
>> bbappend
>> naming has changed such that the layer needs to be fixed.
>>
>> Thanks,
>> Nathan
>>
>> ---
>> lib/bb/cooker.py | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
>> index 1f494ee..b36ed6f 100644
>> --- a/lib/bb/cooker.py
>> +++ b/lib/bb/cooker.py
>> @@ -1486,7 +1486,7 @@ class CookerCollectFiles(object):
>> filelist = []
>> f = os.path.basename(fn)
>> for bbappend in self.appendlist:
>> - if bbappend in f or ('%' in bbappend and
>> bbappend.startswith(f[:bbappend.index('%')])):
>> + if (bbappend == f) or ('%' in bbappend and
>> bbappend.startswith(f[:bbappend.index('%')])):
>> self.appliedappendlist.append(bbappend)
>> for filename in self.appendlist[bbappend]:
>> filelist.append(filename)
>
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
More information about the meta-xilinx
mailing list