I want to enable some services like telnetd inetd crond.. I follow the blow steps, it do nothing.
1. $ bitbake -c menuconfig busybox
2. Unselect udhcpc and udhcpd.
Save & exit
3. $bitbake -c diffconfig busybox
4. Create busybox_%.bbapend under directory:
sources/poky/meta/recipes-core/busybox/
Add below two lines in the file created above:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://fragment.cfg
5. Copy the file (fragment.cfg) created in step 3 to sources/poky/meta/recipes-core/busybox/
Copy below to line to the file fragment.cfg
CONFIG_UDHCPD=n
CONFIG_UDHCPC=n
6. $bitbake <image>
And the build_8m_mini/tmp/work/aarch64-poky-linux/busybox/1.27.2-r0/busybox-1.27.2/.config not modified
it seems that every time I $bitbake <image> , it unzip from downloads/busybox-1.27.2.tar.bz2.。
it appears .config.old .config.orig , when and why? it dose not contained by busybox-1.27.2.tar.bz2.
the two files cover the .config which generated by $ bitbake -c menuconfig busybox when I $bitbake <image>.
what should I do ,how to enable telnetd\inetd\crond
Blow is my busybox_%.bbappend and fragment.cfg,I saw writing in two formats of busybox_%.bbappend
Which one is correct?
Hello yafei,
When you change some source code or add some thing in a package of yocto, and re-compile it, you should use "-f " parameter for bitbake command to force compilation.
Such as:
$ bitbake -c -f menuconfig busybox
Try it, please!
Have a nice day!
B.R,
Weidong