From 671ae4ab486c75b982728eef6e80ade036b3ba10 Mon Sep 17 00:00:00 2001 From: Fabio Berton Date: Thu, 16 Jul 2020 12:18:41 -0300 Subject: [PATCH] u-boot: Move fw_env.config to u-boot append The u-boot-env is provided by u-boot recipe and not by libubootenv, so right recipe to append is the u-boot. Adding the rpi-u-boot-scr in DEPENDS variable is wrong because it is forcing rpi-u-boot-scr to be a dependency, but it'll fail if I have another recipe that provides bootscript, once both recipes provide the same file. The default value of u-boot-default-script is rpi-u-boot-scr, so right way is to use u-boot-default-script and change the PREFERRED_PROVIDER_u-boot-default-script if needed. Signed-off-by: Fabio Berton --- recipes-bsp/u-boot/libubootenv_%.bbappend | 12 ------------ recipes-bsp/u-boot/u-boot_%.bbappend | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 recipes-bsp/u-boot/libubootenv_%.bbappend diff --git a/recipes-bsp/u-boot/libubootenv_%.bbappend b/recipes-bsp/u-boot/libubootenv_%.bbappend deleted file mode 100644 index 22d1bdc..0000000 --- a/recipes-bsp/u-boot/libubootenv_%.bbappend +++ /dev/null @@ -1,12 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/files:" - -SRC_URI_append_rpi = " \ - file://fw_env.config \ -" - -DEPENDS_append_rpi = " rpi-u-boot-scr" - -do_install_append_rpi () { - install -d ${D}${sysconfdir} - install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config -} diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index 9ce6425..7f38adb 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -1 +1,12 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI_append_rpi = " \ + file://fw_env.config \ +" + DEPENDS_append_rpi = " u-boot-default-script" + +do_install_append_rpi () { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config +}