[meta-xilinx] [PATCH] cooker: Fix support for wildcards in bbappend filenames

Martin Townsend martin.townsend at xsilon.com
Fri Nov 29 08:25:59 PST 2013


Hi Nathan,

Ah yes, I must get in the habit of doing a git pull on poky and 
meta-xilinx.  After updating I can build core-image-mininal, the kernel 
and u-boot.

Cheers,
Martin.

On 29/11/13 14:48, Nathan Rossi wrote:
> Hi Martin,
>
> Make sure you have the newest meta-xilinx. I pushed a commit the other day which adds a patch to openssl for microblaze.
>
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/commit/?id=09b5d05924c95d027660f5bedad5fe3629dcf2e1
>
> I have to look into getting that change into upstream openssl.
>
> Sorry for all the jumping around for poky master, we only just got started on tracking master for meta-xilinx.
>
> Regards,
> Nathan
> ________________________________________
> From: meta-xilinx-bounces at yoctoproject.org [meta-xilinx-bounces at yoctoproject.org] on behalf of Martin Townsend [martin.townsend at xsilon.com]
> Sent: Friday, 29 November 2013 7:59 PM
> To: meta-xilinx at yoctoproject.org
> Subject: Re: [meta-xilinx] [PATCH] cooker: Fix support for wildcards in bbappend filenames
>
> 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
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
>
>
>
> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
>
>




More information about the meta-xilinx mailing list