From 77654bddbaa08b831a47bc369944bbe108512b32 Mon Sep 17 00:00:00 2001 From: Alper Ak Date: Fri, 20 Jun 2025 21:21:22 +0300 Subject: [PATCH] set S from UNPACKDIR in recipes that use only local files There is no need to have two assignments; also setting S from UNPACKDIR (and not vice versa) is more logical as unpack task comes first, and tasks that come after unpack use S to access unpack results. https://git.openembedded.org/openembedded-core/commit/?id=f64b7e5fb3181734c8dde87b27e872a026261a74 https://git.openembedded.org/openembedded-core/commit/?id=46480a5e66747a673041fe4452a0ab14a1736d5e Signed-off-by: Alper Ak Signed-off-by: Khem Raj --- recipes-bsp/gpio-shutdown/gpio-shutdown.bb | 2 ++ recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb | 3 +-- recipes-core/udev/udev-rules-udisks-rpi_1.0.bb | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/gpio-shutdown/gpio-shutdown.bb b/recipes-bsp/gpio-shutdown/gpio-shutdown.bb index 77d9856..b2adb87 100644 --- a/recipes-bsp/gpio-shutdown/gpio-shutdown.bb +++ b/recipes-bsp/gpio-shutdown/gpio-shutdown.bb @@ -6,6 +6,8 @@ SRC_URI = "file://bind_gpio_shutdown.tab \ file://gpio-shutdown-keymap.sh \ " +S = "${UNPACKDIR}" + inherit update-rc.d INITSCRIPT_NAME = "gpio-shutdown-keymap.sh" diff --git a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb index d035d6e..f201dc6 100644 --- a/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb +++ b/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bb @@ -21,8 +21,7 @@ do_compile() { inherit kernel-arch deploy nopackages -S = "${WORKDIR}/sources" -UNPACKDIR = "${S}" +S = "${UNPACKDIR}" do_deploy() { install -d ${DEPLOYDIR} diff --git a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb index 2ebbc2c..36aee3b 100644 --- a/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb +++ b/recipes-core/udev/udev-rules-udisks-rpi_1.0.bb @@ -3,6 +3,8 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" SRC_URI = "file://80-udisks-rpi.rules" +S = "${UNPACKDIR}" + INHIBIT_DEFAULT_DEPS = "1" do_install () {