Hi! I am trying to build an image for openwrt using the yocto bsp, I added the meta-openwrt layer to the build system which supposedly already support scarthgap.
https://github.com/kraj/meta-openwrt
Then I created a new layer for adding custom image for combining imx image with openwrt, which i required openwrt-image-base.bb and imx-image-multimedia.bb and basically combined the packages required for both image.
I then added these lines to local.conf to setting the build system for building for openwrt:
INHERIT += "openwrt-distro-defaults"
TCLIBC = "musl"
DISTRO_FEATURES:append = " procd"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx"
PREFERRED_PROVIDER_virtual/kernel = "linux-imx"
DISTRO_FEATURES:append = " systemd"
INIT_MANAGER = "systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
But when i try to build the resulting image I got an error:
firmwared was skipped: missing required distro feature 'systemd' (not in DISTRO_FEATURES)
NOTE: Runtime target 'firmwared' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['firmwared']
ERROR: Required build target 'openwrt-imx-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['openwrt-imx-image', 'firmwared']
Firmwared is already included by openembedded so that shouldn't have been a problem, and as I manually added the systemd to the distro, supposedly the feature should already been enabled.
Is it something related to the openwrt distro that forbidden systemd? What should I do to solve the error? I am out of idea, help would be deeply appreciated.
Thanks in advance.