]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm: Setup the platform configuration
authorMark Hatle <mark.hatle@windriver.com>
Fri, 28 Jan 2011 01:13:01 +0000 (19:13 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Jan 2011 17:52:56 +0000 (17:52 +0000)
The RPM platform configuration file lists all of the supported architectures,
while RPM itself doesn't use this information, other tools may use it to
determine compatibility.  The first item is the default architecture for a
system, while the following items specify alternative compatible architectures.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/rootfs_rpm.bbclass

index 6be788642f654287facfeec28877e5bb2f4510f6..4a4ec0e95999655a8e56e58a689cffa21b2242f1 100644 (file)
@@ -39,7 +39,13 @@ fakeroot rootfs_rpm_do_rootfs () {
 
        # Setup base system configuration
        mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
-       echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
+
+       # Default arch is the top..
+       echo "${TARGET_ARCH}-unknown-linux" >${IMAGE_ROOTFS}/etc/rpm/platform
+       # Add the rest in sort order..
+       for each in ${PACKAGE_ARCHS} ; do
+               echo "$each""-unknown-linux" >>${IMAGE_ROOTFS}/etc/rpm/platform
+       done
 
        # Tell RPM that the "/" directory exist and is available
        mkdir -p ${IMAGE_ROOTFS}/etc/rpm/sysinfo