Skip to contentSkip to conversation

allarch.bbclass: Set FEED_ARCH to 'allarch'

PATCH In review Khem Raj 3 participants 3 messages Jun 14, 2011

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 allarch.bbclass: Set FEED_ARCH to 'allarch'

PACKAGE_ARCH is set to BASE_PACKAGE_ARCH so we do not need to define it here since we already define BASE_PACKAGE_ARCH

Additionally set FEED_ARCH to 'allarch' some distros e.g. angstrom sets FEED_ARCH like

FEED_ARCH ?= "${BASE_PACKAGE_ARCH}"

and 'all' doesnt go well for FEED_ARCH as it ends up with parsing error for x86 machines.

This might be a latent bug in bitbake but allarch.bbclass excavated it and we burry it in the same class.

---
 meta/classes/allarch.bbclass |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
meta/classes/allarch.bbclass +2 -3
index e3ac392..971cb92 100644
@@ -2,9 +2,8 @@
 # This class is used for architecture independent recipes/data files (usally scripts)
 #
 
-BASE_PACKAGE_ARCH = "all"
-PACKAGE_ARCH = "all"
-
+BASE_PACKAGE_ARCH = "allarch"
+FEED_ARCH = "allarch"
 # No need for virtual/libc or a cross compiler
 INHIBIT_DEFAULT_DEPS = "1"
 
Signature · 1 line
1.7.4.1
#1 lore raw

Op 14 jun 2011, om 07:25 heeft Khem Raj het volgende geschreven:

Quoted 4 lines

PACKAGE_ARCH is set to BASE_PACKAGE_ARCH so we do not need to define it here since we already define BASE_PACKAGE_ARCH

Additionally set FEED_ARCH to 'allarch'

That would break all existing feeds and feed-configs, which I don't think is acceptable.

#2 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj

PACKAGE_ARCH is set to BASE_PACKAGE_ARCH so we do not need to define it here since we already define BASE_PACKAGE_ARCH

Additionally set FEED_ARCH to 'allarch' some distros e.g. angstrom sets FEED_ARCH like

FEED_ARCH ?= "${BASE_PACKAGE_ARCH}"

Um? Surely if FEED_ARCH is defined in terms of B_P_A then just setting the latter variable ought to be enough. Why do you need to set both?

Quoted 2 lines

and 'all' doesnt go well for FEED_ARCH as it ends up with parsing error for x86 machines.

That sounds a bit odd as well. I wouldn't have expected any value of FEED_ARCH to result in parsing errors. What actually goes wrong?

p.

Quoted 25 lines

This might be a latent bug in bitbake but allarch.bbclass excavated it and we burry it in the same class.

---
 meta/classes/allarch.bbclass |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
meta/classes/allarch.bbclass +2 -3
index e3ac392..971cb92 100644
@@ -2,9 +2,8 @@
 # This class is used for architecture independent recipes/data files (usally scripts)
 #
 
-BASE_PACKAGE_ARCH = "all"
-PACKAGE_ARCH = "all"
-
+BASE_PACKAGE_ARCH = "allarch"
+FEED_ARCH = "allarch"
 # No need for virtual/libc or a cross compiler
 INHIBIT_DEFAULT_DEPS = "1"