Hello,
I attempted to create a connman append recipe (connman_%.append shown below) to add configuration files for known services so the device connects to them automatically when they are available. However, I get the do_install error shown below and am not sure how to address it.
As a workaround, I created a whole new receipt to install these files, which worked for build and on the device. However, I'd prefer to append connman than creating a new receipt. I tried commenting and uncommenting the "FILES:${PN}" lines, but that didn't help. I also executed "bitbake connman -c cleanall" before baking the receipt, and that didn't help either. Any ideas?
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://home.config \
file://work.config \
"
do_install() {
install -d ${D}/var/lib/connman
install -m 0644 ${WORKDIR}/home.config ${D}/var/lib/connman
install -m 0644 ${WORKDIR}/work.config ${D}/var/lib/connman
}
#FILES:${PN} += "/var/lib/connman/home.config"
#FILES:${PN} += "/var/lib/connman/work.config"
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-connectivity/bluez5/bluez5_5.65.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-connectivity/ofono/ofono_1.34.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-connectivity/ppp/ppp_2.4.9.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-core/dbus/dbus_1.14.0.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-core/glib-2.0/glib-2.0_2.72.3.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-core/readline/readline_8.1.2.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-core/systemd/systemd-systemctl-native.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_11.3.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-extended/iptables/iptables_1.8.7.bb:do_populate_sysroot', '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-support/gnutls/gnutls_3.7.4.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/autoconf/autoconf_2.71.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/automake/automake_1.16.5.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/sources/poky/meta/recipes-extended/xz/xz_5.2.6.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['bluez5', 'ofono', 'ppp', 'wpa-supplicant', 'dbus', 'glib-2.0', 'glibc', 'readline', 'systemd-systemctl-native', 'gcc-cross-aarch64', 'gcc-runtime', 'libtool-cross', 'libtool-native', 'opkg-utils', 'quilt-native', 'iptables', 'gnutls', 'autoconf-native', 'automake-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'xz-native', 'texinfo-dummy-native', 'openssl', 'libnl', 'gettext-minimal-native', 'mobile-broadband-provider-info', 'systemd', 'ell', 'linux-libc-headers', 'libgcc', 'libpcap', 'libxcrypt', 'libpcre', 'bash-completion', 'zlib', 'libffi', 'util-linux', 'libunistring', 'libidn2', 'p11-kit', 'nettle', 'gmp', 'libseccomp', 'libical', 'binutils-cross-aarch64', 'flex-native', 'zlib-native', 'gnu-config-native', 'libmpc-native', 'zstd-native', 'mpfr-native', 'gmp-native', 'attr-native', 'autoconf-archive', 'base-passwd', 'shadow-native', 'base-files', 'expat', 'shadow-sysroot', 'shadow', 'm4-native', 'ncurses', 'cryptodev-linux', 'libcheck', 'acl', 'libcap', 'zstd', 'libpam', 'kmod', 'bzip2', 'libcap-ng', 'util-linux-libuuid', 'libtasn1', 'vala', 'gobject-introspection', 'libxml2', 'icu', 'attr', 'cracklib', 'flex', 'xz', 'python3', 'libnsl2', 'sqlite3', 'libtirpc', 'gdbm']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function autotools_aclocals
DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
DEBUG: Python function autotools_aclocals finished
DEBUG: Executing shell function do_install
rmdir: failed to remove '/home/mustafa/Code/Sycamore/imx-kirkstone/yocto/build/tmp/work/armv8a-poky-linux/connman/1.41-r0/image/usr/lib/connman/scripts': No such file or directory
WARNING: exit code 1 from a shell command.
Solved! Go to Solution.
It turns out the receipt itself is fine. I just had the wrong directory structure. Needed those config files within a "connman" directory, so bitbake included them. Basically, the directory structure has to match the way the original connman.bb was set up.
Hi @moose
You can refer the bb file of connman in recipes-connectivity
https://github.com/openembedded/openembedded-core/tree/master/meta/recipes-connectivity/connman
I did refer to the connman receipt file, but it is not clear to me what is wrong with my append receipt. Is it clear to you?
It turns out the receipt itself is fine. I just had the wrong directory structure. Needed those config files within a "connman" directory, so bitbake included them. Basically, the directory structure has to match the way the original connman.bb was set up.