[yocto] How to build a same package twice with different configurations for same MACHINE?

Ngọc Thi Huỳnh so61pi.re at gmail.com
Thu Jul 27 05:57:46 PDT 2017


Hi Dennis,

I've tried what you suggested, the problem is the busybox recipe uses some
files in its original directory so the bitbake complained about the missing
files.
My current solution is duplicating the busybox recipe and its related files
& directories.

Thanks anyway.

Best Regards,
Thi Huynh

Best Regards,
Thi Huynh

On Wed, Jul 26, 2017 at 4:18 AM, Dennis Menschel <menschel-d at posteo.de>
wrote:

> Hi,
>
> Am 18.07.2017 um 15:24 schrieb Ngọc Thi Huỳnh:
> > [...]
> >
> > Both images use busybox package but in different ways. The main-image
> > can use several busybox' tools but the initial-flasher-image only uses
> > one or two of them just to complete the flashing goal.
> >
> > My question is, is there a way to build busybox for main-image with one
> > defconfig, then build the busybox for initial-flasher-image with a
> > different defconfig when I issue "bitbake initial-flasher-image" command?
> >
> > [...]
> I'm not aware of such a feature in BitBake. As for your situation I'd
> suggest creating a secondary recipe (e.g. "busybox-flasher") in your own
> layer which includes the original busybox recipe and adapts its feature
> set with a configuration fragment.
>
> Example: busybox-flasher_1.24.1.bb
>
>     require recipes-core/busybox/busybox_${PV}.bb
>     SRC_URI += "file://flasher-options.cfg"
>
> That way you can easily distinguish busybox and busybox-flasher in your
> images and you can minimize the redundancies between the recipes.
>
> Hope it helps!
>
> Best regards,
> Dennis Menschel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170727/cda6ee88/attachment.html>


More information about the yocto mailing list