summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2012-09-10 15:58:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-10 13:01:45 +0100
commit4a015e57ccee4fec8ab1da6717f4e2d5c4bb9ff5 (patch)
treefb297c69d483bad33d48bb9c6ac1c247166794b7 /meta/recipes-extended
parentd01115094918a3a1759669756a6fce0c78836ca0 (diff)
downloadpoky-4a015e57ccee4fec8ab1da6717f4e2d5c4bb9ff5.tar.gz
package_rpm.bbclass: fix the arch (replace "-" with "_")
rpm can't use the "-" as the arch, which causes problem, e.g., when MACHINE = "beagleboard": * The arch should be armv7a-vfp-neon, but rpm only takes the armv7a, this is incorrect since it is mixed with real arch armv7a. * The nativesdk's arch should be i686-nativesdk (or x86_64-nativesdk), but rpm only takes the i686 (or x86_64), this in incorrect since it is mixed with the arch i686 (or x86_64). Replace "-" with "_" when rpm package and the rootfs generation would fix the problem, I think this is fine since it doesn't change the tune's arch, the package manager doesn't care about the arch's name, but it needs a unify arch system to avoid confusing. This is similar to what we have done on the deb which fixed the arch i486, i586 and so on to i386. [YOCTO #2328] (From OE-Core rev: fc985f511da86400e4fa7d17555216c12eb51666) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/sat-solver/sat-solver_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver_git.bb b/meta/recipes-extended/sat-solver/sat-solver_git.bb
index e1054e9e22..67503b7278 100644
--- a/meta/recipes-extended/sat-solver/sat-solver_git.bb
+++ b/meta/recipes-extended/sat-solver/sat-solver_git.bb
@@ -47,7 +47,7 @@ do_archgen () {
47 all | any | noarch) 47 all | any | noarch)
48 continue;; 48 continue;;
49 esac 49 esac
50 INSTALL_PLATFORM_ARCHS="$each_arch $INSTALL_PLATFORM_ARCHS" 50 INSTALL_PLATFORM_ARCHS="`echo $each_arch | sed 's/-/_/g'` $INSTALL_PLATFORM_ARCHS"
51 done 51 done
52 52
53 echo "/* Automatically generated by the sat-solver recipe */" > src/core-arch.h 53 echo "/* Automatically generated by the sat-solver recipe */" > src/core-arch.h