summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_package-lists
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_package-lists')
-rwxr-xr-xscripts/build/chroot_package-lists11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/chroot_package-lists b/scripts/build/chroot_package-lists
index 52f972881..ba808bd92 100755
--- a/scripts/build/chroot_package-lists
+++ b/scripts/build/chroot_package-lists
@@ -89,6 +89,17 @@ do
fi
done
+# Discover unique package architectures in fully-expanded package list
+for _PACKAGE_ARCHITECTURE in $(Discover_package_architectures "chroot/root/packages.chroot")
+do
+ # If this is a foreign architecture, append to packages.foreign-architectures
+ if [ "${_PACKAGE_ARCHITECTURE}" != "${LIVE_IMAGE_ARCHITECTURE}" ]
+ then
+ Echo_message "Accepting foreign architecture: ${_PACKAGE_ARCHITECTURE}, live image architecture is: ${LIVE_IMAGE_ARCHITECTURE}"
+ echo "${_PACKAGE_ARCHITECTURE}" >> chroot/root/packages.foreign-architectures
+ fi
+done
+
rm -f chroot/bin/Packages
case "${LB_BUILD_WITH_CHROOT}" in