[yocto] Package Feature compile/runtime dependency

Koehler, Yannick (HP Networking) yannick.koehler at hp.com
Fri Dec 12 07:44:44 PST 2014


I just realize that I am using it, and it doesn't work the way I thought it would.

I added 

	DISTRO_FEATURES_append = " systemd"
	VIRTUAL-RUNTIME_init_manager = "systemd"

	DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
	VIRTUAL-RUNTIME_initscripts = ""

As part of my distro.cfg file and the build was failing, due to missing libc/kernel features, it appears that the DISTRO_FEATURE simply added additional package, which seems to highlight the need to have feature <-> feature dependency.

I add to also add this to my distro.cfg to get things there:

DISTRO_FEATURES_LIBC = "${DISTRO_FEATURES_LIBC_TINY} \
                        ${DISTRO_FEATURES_LIBC_MINIMAL} \
                        ${DISTRO_FEATURES_LIBC_REGEX} \
                        ${DISTRO_FEATURES_LIBC_NET} \
                        libc-ftraverse \
                        libc-posix-clang-wchar \
                        libc-posix-wchar-io \
                        libc-spawn \
                        libc-locale-code \
                        libc-utmpx \
                       "

And create a systemd.cfg for the linux-yocto-tiny kernel to include those

	CONFIG_AUTOFS4_FS=y
	CONFIG_TIMERFD=y
	CONFIG_FHANDLE=y
	CONFIG_DEVTMPFS=y
	CONFIG_INOTIFY_USER=y
	CONFIG_FANOTIFY=y
	CONFIG_SECCOMP=n
	CONFIG_DMIID=y
	CONFIG_TMPFS=y
	CONFIG_PROC_SYSCTL=y

My hope, was that somehow, adding systemd to DISTRO_FEATURE would not only add the packages I need, but also add feature to some package like the kernel/libc that are required by such addition.

Yannick Koehler
HP Networking Mobility

-----Message d'origine-----
De : Anders Darander [mailto:anders at chargestorm.se] 
Envoyé : December-12-14 10:19 AM
À : Koehler, Yannick (HP Networking)
Cc : Burton, Ross; yocto at yoctoproject.org
Objet : Re: [yocto] Package Feature compile/runtime dependency

* Koehler, Yannick (HP Networking) <yannick.koehler at hp.com> [141212 16:11]:

> It would definitely make sense to have a distro level feature called 
> init-busyboxinit/init-sysvinit/init-systemd/init-upstart or something 
> along those line.  Is this already in place?

We have sysvinit and systemd as distro features today.

Cheers,
Anders

--
Anders Darander
ChargeStorm AB / eStorm AB



More information about the yocto mailing list