Skip to contentSkip to conversation

tune-powerpc: Set TUNE_PKGARCH instead of adding to it on powerpc machine tune.inc files

PATCH New Malcolm Crossley 1 participant 1 message Aug 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tune-powerpc: Set TUNE_PKGARCH instead of adding to it on powerpc machine tune.inc files

Set TUNE_PKGARCH instead of adding to it on powerpc machine tune.inc files.The ppce300c2 tune file already sets the TUNE_PKGARCH variable instead of adding to it.

Adding to the TUNE_PKGARCH variable is causing the TUNE_PKGARCH to not match the PACKAGE_EXTRA_ARCHS variable. This then meant the packaging mechanism could not find the packages to install into the rootfs. E.G. powerpcppce500mc was not in PACKAGE_EXTRA_ARCHS.

---

I chose to implement it this way because it mirrored how the ppce300c2 and core2.inc tune file's are done. If the intention is to keep the "powerpc" on the front then the PACKAGE_EXTRA_ARCHS variable will need to be changed instead.

meta/conf/machine/include/tune-ppc603e.inc +0 -0
index 7c05394..fb6abaf 100644
@@ -4,7 +4,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppc603e] = "Enable ppc603e specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", 

"-mcpu=603e", "", d)}"
-TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "ppc603e", "", d)}" +TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppc603e", "ppc603e", "", d)}"

AVAILTUNES += "ppc603e" TUNE_FEATURES_tune-ppc603e = "m32 fpu-hard ppc603e"

meta/conf/machine/incl renamed from meta/conf/machine/include/tune-ppce500.inc +0 -0

ude/tune-ppce500.inc
index c34d631..53c8038 100644

meta/conf/machine/include/tune-ppce500.inc +0 -0
@@ -4,7 +4,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppce500] = "Enable ppce500 specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500", 

"-mcpu=8540",
"", d)}"
-TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "ppce500", "" , d)}"
+TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500", "ppce500", "",
d)}"

TUNEVALID[spe] = "Enable SPE ABI extensions" TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "spe",
"-mabi=spe -mspe", "", d)}"

meta/conf/machine/include/tune-ppce500mc.inc +0 -0
index 73217dd..8cbaec3 100644
@@ -4,7 +4,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppce500mc] = "Enable ppce500mc specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", 

"-mcpu=e500mc", "", d)}"
-TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "", d)}" +TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500mc", "ppce500mc", "", d)}"

AVAILTUNES += "ppce500mc" TUNE_FEATURES_tune-ppce500mc = "m32 fpu-hard ppce500mc"

meta/conf/machine/include/tune-ppce500v2.inc +0 -0
index 819d68a..1594e51 100644
@@ -4,7 +4,7 @@ require conf/machine/include/powerpc/arch-powerpc.inc
 
 TUNEVALID[ppce500v2] = "Enable ppce500v2 specific processor optimizations"
 TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", 

"-mcpu=8548", "", d)}"
-TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "ppce500v2", "", d)}" +TUNE_PKGARCH = "${@bb.utils.contains("TUNE_FEATURES", "ppce500v2", "ppce500v2", "", d)}"

TUNEVALID[spe] = "Enable SPE ABI extensions" TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "spe",
"-mabi=spe -mspe", "", d)}"