[PATCH 1/1] sdk: remove isar-apt before running configscript

2 views
Skip to first unread message

Felix Moessbauer

unread,
Sep 9, 2026, 2:39:20 AMSep 9
to isar-...@googlegroups.com, Felix Moessbauer
When using SDK_INCLUDE_ISAR_APT=0, the generated rootfs should not
include any traces of the isar-apt. However, as the config script runs
prior to the cleanup of the isar-apt, the apt-get update still has the
apt source list reference and leaks data into the sdk.

We fix this by explicitly dropping the isar-apt prior to running the
configure script.

Signed-off-by: Felix Moessbauer <felix.mo...@siemens.com>
---
meta/classes-recipe/sdk.bbclass | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/sdk.bbclass b/meta/classes-recipe/sdk.bbclass
index ca38cfc3..543df84b 100644
--- a/meta/classes-recipe/sdk.bbclass
+++ b/meta/classes-recipe/sdk.bbclass
@@ -81,6 +81,7 @@ sdkchroot_configscript () {
chroot ${ROOTFSDIR} /configscript.sh ${DISTRO_ARCH}
EOF
}
+ROOTFS_POSTPROCESS_COMMAND:prepend:class-sdk = "${@'' if bb.utils.to_boolean(d.getVar('SDK_INCLUDE_ISAR_APT')) else 'rootfs_cleanup_isar_apt'} "

ROOTFS_POSTPROCESS_COMMAND:append:class-sdk = " sdkchroot_finalize"
sdkchroot_finalize() {
--
2.55.0

Zhihang Wei

unread,
Sep 15, 2026, 5:01:39 AMSep 15
to Felix Moessbauer, isar-...@googlegroups.com
Applied to next, thanks.

Zhihang
Reply all
Reply to author
Forward
0 new messages