summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2011-03-10 18:28:55 +0800
committerSaul Wold <sgw@linux.intel.com>2011-03-14 17:41:46 -0700
commitb8f4c95e21c9997b115e8c99a25ac79fdcff6ee9 (patch)
treecb4a58f8c9d1e12e4388037c3e7c6e10b97e5aab /meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch
parent498c628a1e92831a5331cdaf4d5286246f8f9024 (diff)
downloadpoky-b8f4c95e21c9997b115e8c99a25ac79fdcff6ee9.tar.gz
sat-solver: add machine arch support
(From OE-Core rev: ca758fa404fa447689ff205ee3b4b76bd3f1068a) Signed-off-by: Qing He <qing.he@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch')
-rw-r--r--meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch b/meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch
new file mode 100644
index 0000000000..c228c36e49
--- /dev/null
+++ b/meta/recipes-extended/sat-solver/sat-solver/builtin-arch.patch
@@ -0,0 +1,28 @@
1This patch adds the ${MACHINE_ARCH} and ${PACKAGE_ARCH} to
2sat-solver available archs, see do_archpatch in .bb for more
3details, this is the version for ${BASE_PACKAGE_ARCH} already
4recognized in sat-sovler.
5
6Signed-off-by: Qing He <qing.he@intel.com>
7
8diff --git a/src/poolarch.c b/src/poolarch.c
9index 34a14a3..660959b 100644
10--- a/src/poolarch.c
11+++ b/src/poolarch.c
12@@ -21,6 +21,7 @@
13 #include "util.h"
14
15 const char *archpolicies[] = {
16+ "@MACHINE_ARCH@", "@MACHINE_ARCH@:@PKG_ARCH_TAIL@",
17 "x86_64", "x86_64:i686:i586:i486:i386",
18 "i686", "i686:i586:i486:i386",
19 "i586", "i586:i486:i386",
20@@ -72,7 +74,7 @@ pool_setarch(Pool *pool, const char *arch)
21 return;
22 }
23 #ifndef DEBIAN_SEMANTICS
24- id = ARCH_NOARCH;
25+ id = ARCH_ALL;
26 #else
27 id = ARCH_ALL;
28 #endif