Thanks for the pointer. 
I am new to the linux/Yocto area , so if there is example, would greatly help.

When you say it 'replaces', is this a the 'name' level?

connman is not the same name as udhdc 
My user desires to only have connman on the system (and it's daemon) and not 
have udhcp (and it's daemon).

I know by disabling the udhcp( client / server) in busybox and installing 
connman on the system works.
I don't really see how to use update-alternatives.bbclass to have the same end 
result.






-----Original Message-----
From: Khem Raj [mailto:[email protected]] 
Sent: Saturday, December 10, 2016 1:01 PM
To: ALLEN,RICHARD (K-SantaClara,ex1) <[email protected]>
Cc: [email protected]
Subject: Re: [yocto] busybox and images, how to change busybox based on image 
component added

On Sat, Dec 10, 2016 at 9:48 AM,  <[email protected]> wrote:
> I am trying to remove the udhcp( client / server) components in 
> busybox when I include ‘connman’ in my image.
>

usually busybox applets are used as fallbacks to fill in the blanks and if 
there is other package providing a given utility then its chosen to provide 
defaults.

look into meta/classes/update-alternatives.bbclass for setting priorities which 
are not default.


> I have a busybox_%.bbappend which will SRC_URI_append = " 
> file://no-uhdpc.cfg"
>
> no-uhdcpc.cfg
>
> CONFIG_UDHCPD=n
> CONFIG_UDHCPC=n
>
> Hitting serval issues:
> -) need to do a bitbake -c cleanall busybox for busybox to be 
> recompiled with new configuration
> -) need to do a bitbake -c clean core-image-minimal so a new rootfs 
> will be generated with the busybox ( new compile of busybox does not 
> appear to trigger a new rootfs creation)
>
> Note: I tried just using
>
> PACKAGE_EXCLUDE +=  " busybox-udhcpd busybox-udhcpc "
>
> to keep from having to change busybox configuration , but still end up 
> with some of the udpc in the final image.
>
> ./sbin/udhcpc -> /bin/busybox.nosuid
> ./usr/lib/opkg/alternatives/udhcpc
>
> grep: image-files: Is a directory
> image-info.txt:PACKAGE_EXCLUDE = busybox-udhcpd busybox-udhcpc
>
> Appears that busybox does some installation based on the actually 
> setting of CONFIG_UDHCPC and CONFIG_UDHCPD
>
>
> FInally, I would like the busybox append to only change if ‘connman’ 
> is present In local.conf, add ‘example
>
> IMAGE_INSTALL_append = " example"
>
> In example.bb have
> RDEPENDS_example = " connman"
>
> So in busybox_*.bbappend
>
> I thought this would work (but seems to be ignored)
>
> SRC_URI_append_connman = " file://no-uhdpc.cfg"
> #SRC_URI_append = " file://no-uhdpc.cfg"
>
> But need to use
> SRC_URI_append = " file://no-uhdpc.cfg"
>
> to have the cfg added.
> also tried
> SRC_URI_append_pn-connman = " file://no-uhdpc.cfg"
>
> How best to get a busybox configuration changed based on installation 
> of a package?
>
> Thanks
>
> Richard C. Allen
>
>
>
> --
> _______________________________________________
> yocto mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to