diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-01-27 19:13:01 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-28 17:52:56 +0000 |
commit | e7fb63bf6b308273f5e3941706522d9b9525b2e7 (patch) | |
tree | a035bfcc61008b874f7061af7cdd4d12965c9e24 /meta/classes/rootfs_rpm.bbclass | |
parent | f6ddba2a9dc15560f639faaba8233c29c0c37e9d (diff) | |
download | poky-e7fb63bf6b308273f5e3941706522d9b9525b2e7.tar.gz |
rootfs_rpm: Setup the platform configuration
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>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 6be788642f..4a4ec0e959 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -39,7 +39,13 @@ fakeroot rootfs_rpm_do_rootfs () { | |||
39 | 39 | ||
40 | # Setup base system configuration | 40 | # Setup base system configuration |
41 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ | 41 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ |
42 | echo "${TARGET_ARCH}-linux" >${IMAGE_ROOTFS}/etc/rpm/platform | 42 | |
43 | # Default arch is the top.. | ||
44 | echo "${TARGET_ARCH}-unknown-linux" >${IMAGE_ROOTFS}/etc/rpm/platform | ||
45 | # Add the rest in sort order.. | ||
46 | for each in ${PACKAGE_ARCHS} ; do | ||
47 | echo "$each""-unknown-linux" >>${IMAGE_ROOTFS}/etc/rpm/platform | ||
48 | done | ||
43 | 49 | ||
44 | # Tell RPM that the "/" directory exist and is available | 50 | # Tell RPM that the "/" directory exist and is available |
45 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/sysinfo | 51 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/sysinfo |