mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
rootfs_rpm: Fix rootfs generation using RPM packages
[BUG #756] Fix bug #756. The rootfs contains a control file /etc/rpm/platform that specifies the default system platform, as well as patterns for compatible architectures. This file was not being setup properly due to a misunderstanding of the format in a previous patch. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
This commit is contained in:
@@ -48,6 +48,7 @@ fakeroot rootfs_rpm_do_rootfs () {
|
||||
|
||||
#install pacakges
|
||||
export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}"
|
||||
export INSTALL_PLATFORM_RPM="${TARGET_ARCH}"
|
||||
export INSTALL_CONFBASE_RPM="${RPMCONF_TARGET_BASE}"
|
||||
export INSTALL_PACKAGES_NORMAL_RPM="${PACKAGE_INSTALL}"
|
||||
export INSTALL_PACKAGES_ATTEMPTONLY_RPM="${PACKAGE_INSTALL_ATTEMPTONLY}"
|
||||
@@ -56,9 +57,9 @@ fakeroot rootfs_rpm_do_rootfs () {
|
||||
export INSTALL_TASK_RPM="populate_sdk"
|
||||
|
||||
# List must be prefered to least preferred order
|
||||
INSTALL_PLATFORM_RPM=""
|
||||
INSTALL_PLATFORM_EXTRA_RPM=""
|
||||
for each_arch in ${PACKAGE_ARCHS} ; do
|
||||
INSTALL_PLATFORM_RPM="$each_arch $INSTALL_PLATFORM_RPM"
|
||||
INSTALL_PLATFORM_EXTRA_RPM="$each_arch $INSTALL_PLATFORM_EXTRA_RPM"
|
||||
done
|
||||
export INSTALL_PLATFORM_RPM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user