[PATCH v2 8/8] initscripts: Make SRC_URI arch independent

Paul Barker
2026-03-19T16:05:13Z

Avoid making SRC_URI unnecessarily dependent on the target architecture.
The alignment.sh file will only be installed for relevant 32-bit ARM
targets, but there's no benefit to making SRC_URI inclusion conditional.

Signed-off-by: Paul Barker <paul@pbarker.dev>
---
meta/recipes-core/initscripts/initscripts_1.0.bb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index c984257c5c8f..23411b6a7149 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -32,14 +32,12 @@ SRC_URI = "file://functions \
file://save-rtc.sh \
file://dmesg.sh \
file://logrotate-dmesg.conf \
+ file://alignment.sh \
${@bb.utils.contains('DISTRO_FEATURES','selinux','file://sushell','',d)} \
"

S = "${UNPACKDIR}"

-SRC_URI:append:arm = " file://alignment.sh"
-SRC_URI:append:armeb = " file://alignment.sh"
-
KERNEL_VERSION = ""

DEPENDS:append = " update-rc.d-native"

--
2.43.0