]> code.ossystems Code Review - openembedded-core.git/commitdiff
conf/machine/include: Set TUNE_CCARGS instead of TARGET_CC_ARCH
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jul 2011 14:13:03 +0000 (15:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jul 2011 14:38:50 +0000 (15:38 +0100)
Since we're updating the tune file format, it makes sense to abstract
the compiler tune arguments at this point too. This means that should
these need to be overridden at any point, the original values can
still be obtained in a similar manner to the other TUNE* variables.

Whilst this isn't strictly necessary for any current need, its likely
good practise to standardise this behaviour.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
28 files changed:
meta/conf/bitbake.conf
meta/conf/machine/include/tune-arm1136jf-s.inc
meta/conf/machine/include/tune-arm920t.inc
meta/conf/machine/include/tune-arm926ejs.inc
meta/conf/machine/include/tune-arm9tdmi.inc
meta/conf/machine/include/tune-armv7.inc
meta/conf/machine/include/tune-atom.inc
meta/conf/machine/include/tune-c3.inc
meta/conf/machine/include/tune-cortexa8.inc
meta/conf/machine/include/tune-cortexm1.inc
meta/conf/machine/include/tune-cortexm3.inc
meta/conf/machine/include/tune-cortexr4.inc
meta/conf/machine/include/tune-ep9312.inc
meta/conf/machine/include/tune-i586.inc
meta/conf/machine/include/tune-iwmmxt.inc
meta/conf/machine/include/tune-mips32.inc
meta/conf/machine/include/tune-ppc603e.inc
meta/conf/machine/include/tune-ppce300c2.inc
meta/conf/machine/include/tune-ppce500.inc
meta/conf/machine/include/tune-ppce500mc.inc
meta/conf/machine/include/tune-ppce500v2.inc
meta/conf/machine/include/tune-sh3.inc
meta/conf/machine/include/tune-sh4.inc
meta/conf/machine/include/tune-strongarm1100.inc
meta/conf/machine/include/tune-supersparc.inc
meta/conf/machine/include/tune-thumb.inc
meta/conf/machine/include/tune-x86_64.inc
meta/conf/machine/include/tune-xscale.inc

index f95343f67ac87f29f6c4b46c3ef8d9ed4459657a..2954faa5d0b8da389353180dcbc0094445c87286 100644 (file)
@@ -82,12 +82,14 @@ HOST_CC_ARCH = "${TARGET_CC_ARCH}"
 HOST_EXEEXT = ""
 
 TUNE_ARCH ??= "INVALID"
+TUNE_CCARGS ??= ""
+
 TARGET_ARCH = "${TUNE_ARCH}"
 TARGET_OS = "INVALID"
 TARGET_VENDOR = "-oe"
 TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}"
 TARGET_PREFIX = "${TARGET_SYS}-"
-TARGET_CC_ARCH = ""
+TARGET_CC_ARCH = "${TUNE_CCARGS}"
 
 SDK_ARCH = "${BUILD_ARCH}"
 SDK_OS = "${BUILD_OS}"
index bc90924e9060ce4c08b08fb808662ee84132d20a..c1d0c0705bf938bf757f0506a55a43782258375a 100644 (file)
@@ -1,7 +1,7 @@
 TUNE_ARCH = "arm"
 
-TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s"
-TARGET_CC_ARCH += "${@['', '-mfloat-abi=softfp -mfpu=vfp'][(bb.data.getVar('TARGET_FPU', d, 1) == 'soft') and (bb.data.getVar('CPU_FEATURES', d, 1).find('vfp') != -1)]}"
+TUNE_CCARGS = "-march=armv6j -mtune=arm1136jf-s"
+TUNE_CCARGS += "${@['', '-mfloat-abi=softfp -mfpu=vfp'][(bb.data.getVar('TARGET_FPU', d, 1) == 'soft') and (bb.data.getVar('CPU_FEATURES', d, 1).find('vfp') != -1)]}"
 TUNE_PKGARCH = "armv6"
 
 ARM_INSTRUCTION_SET = "${@['thumb','arm'][bb.data.getVar('CPU_FEATURES', d, 1).find('thumb') == -1]}"
index 2991e851d0fbd3af0943b3319684d0b5db6aa7e4..3f30e2ab878395174f61f4cacd00b08969fc097f 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "arm"
 
 TUNE_PKGARCH = "armv4t"
-TARGET_CC_ARCH = "-march=armv4t -mtune=arm920t"
+TUNE_CCARGS = "-march=armv4t -mtune=arm920t"
 PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t"
index e54403b0ce73f5bc080a7b14377a515069dcde8b..049f57cb3f83b16cf06d5a98a82652b850ceed62 100644 (file)
@@ -3,7 +3,7 @@ TUNE_ARCH = "arm"
 TUNE_PKGARCH = "armv5te"
 PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te"
 # For gcc 3.x you need:
-#TARGET_CC_ARCH = "-march=armv5te -mtune=arm926ejs"
+#TUNE_CCARGS = "-march=armv5te -mtune=arm926ejs"
 # For gcc 4.x you need:
-TARGET_CC_ARCH = "-march=armv5te -mtune=arm926ej-s"
+TUNE_CCARGS = "-march=armv5te -mtune=arm926ej-s"
 
index b75de3d16084c6a8886e60b13d2393a31a3572ac..0ed2f40908d05660bf7c6c5f92064886e3aaee49 100644 (file)
@@ -2,4 +2,4 @@ TUNE_ARCH = "arm"
 
 TUNE_PKGARCH = "armv4t"
 PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t"
-TARGET_CC_ARCH = "-mcpu=arm9tdmi -mtune=arm9tdmi"
+TUNE_CCARGS = "-mcpu=arm9tdmi -mtune=arm9tdmi"
index a6cc346a51086da01e6fcb3ccd371c610ab9be4a..2e32323ebf60fc1690b372a9b52620d4da205c76 100644 (file)
@@ -3,6 +3,6 @@ TUNE_ARCH = "arm"
 # valid options for -march: `armv7', `armv7-a', `armv7-r', `armv7-m'
 # valid option for -mtune: `cortex-a8', `cortex-r4', `cortex-m3', `cortex-m1'
 # This will NOT compile programs in 'ARM' mode, which is what you really want
-TARGET_CC_ARCH = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp"
+TUNE_CCARGS = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp"
 TUNE_PKGARCH = "armv7"
 PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te armv6 armv7"
index 8141a672857d64726f72df4633dba0262bedc280..52acd12ba84a63e72e00256aef9b7cb3f3194f77 100644 (file)
@@ -1,7 +1,7 @@
 TUNE_ARCH = "i586"
 
 TUNE_PKGARCH = "core2"
-TARGET_CC_ARCH = "-m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse"
+TUNE_CCARGS = "-m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse"
 #MOBLIN_CFLAGS = "-Os -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
 
 PACKAGE_EXTRA_ARCHS = "x86 i386 i486 i586 i686 core2"
index dd8dce1ef3d0500145facb0f5647cd56441a8365..dbe1e43abc211397d63143bdb0705b649599348f 100644 (file)
@@ -2,5 +2,5 @@ TUNE_ARCH = "i586"
 
 TUNE_PKGARCH = "i586"
 
-TARGET_CC_ARCH = "-march=c3 -mtune=c3"
+TUNE_CCARGS = "-march=c3 -mtune=c3"
 PACKAGE_EXTRA_ARCHS = "i386 i486 i586"
index cf5b418287bbeb1de00f8f52d844ac154ea9956e..9be423abffee1a369227e542e999e74eec028777 100644 (file)
@@ -5,7 +5,7 @@ TUNE_ARCH = "arm"
 # [2] http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html 
 # [3] https://support.codesourcery.com/GNUToolchain/kbentry29
 
-TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-tree-vectorize"
+TUNE_CCARGS = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-tree-vectorize"
 
 # Other potentially useful options
 #-ftree-vectorize -ffast-math -fno-omit-frame-pointer
index 6dbfd2c796f1d2a5a3a723fcc7fe95ed3ed06912..d0d3b2cb17346ebe1bf4485e07ce7479f4ea826c 100644 (file)
@@ -1,4 +1,4 @@
 TUNE_ARCH = "arm"
 
-TARGET_CC_ARCH = "-march=armv7 -mtune=cortex-m1 -mfpu=vfp -mfloat-abi=softfp"
+TUNE_CCARGS = "-march=armv7 -mtune=cortex-m1 -mfpu=vfp -mfloat-abi=softfp"
 TUNE_PKGARCH = "armv6"
index 63959e4371dd98799bad8fa152b0ea07057317a1..495c8f642057b70a4c33343b6cdc9649db9e018e 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "arm"
 
 # valid options for -march: `armv7', `armv7-m'
-TARGET_CC_ARCH = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp"
+TUNE_CCARGS = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp"
 TUNE_PKGARCH = "armv7"
index 780a5101a71caeadd208c4e50c284ca1990f9d5d..c775e8309e66c66fd52dbb4e05bf146054a15f22 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "arm"
 
 # valid options for -march: `armv7', `armv7-r'
-TARGET_CC_ARCH = "-march=armv7-r -mtune=cortex-r4 -mfpu=vfp -mfloat-abi=softfp"
+TUNE_CCARGS = "-march=armv7-r -mtune=cortex-r4 -mfpu=vfp -mfloat-abi=softfp"
 TUNE_PKGARCH = "armv7"
index 81be6ddcfda875691071661412fd339616819db0..8c7fc5a1d808228d67cc978f7f3a680df49c2ddc 100644 (file)
@@ -1,6 +1,6 @@
 TUNE_ARCH = "arm"
 
-TARGET_CC_ARCH = "-march=ep9312 -mtune=ep9312 -mcpu=ep9312"
+TUNE_CCARGS = "-march=ep9312 -mtune=ep9312 -mcpu=ep9312"
 # add "-mfp=maverick" for newer gcc versions > 4.0
 
 #set arch to ep9312 for all generated packages
index 7ea8b4fbd7cf21aa4e64968f07953e87ca5d88f6..1dc44dfd6709ce95f1c5a1d6e0ae8ba381203173 100644 (file)
@@ -1,6 +1,6 @@
 TUNE_ARCH = "i586"
 
 TUNE_PKGARCH = "i586"
-TARGET_CC_ARCH = "-m32 -march=i586"
+TUNE_CCARGS = "-m32 -march=i586"
 
 PACKAGE_EXTRA_ARCHS = "x86 i386 i486 i586"
index 68e118a61b4b9e20356ff6b0a8601865532750e9..236cede98866a80f411785b025fd2f70e39b0037 100644 (file)
@@ -2,7 +2,7 @@ TUNE_ARCH = "arm"
 
 # Configurations for the Intel PXA27x Appications Processor Family. 
 # Please use tune-xscale for PXA255/PXA26x based processors.
-TARGET_CC_ARCH = "-march=iwmmxt -mcpu=iwmmxt -mtune=iwmmxt"
+TUNE_CCARGS = "-march=iwmmxt -mcpu=iwmmxt -mtune=iwmmxt"
 PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te iwmmxt"
 TUNE_PKGARCH = "iwmmxt"
 
index a7bcb5008a99950eea11e1df3949ae7a36444d80..182d16cf2215ac9232c711619979f08ca519e9da 100644 (file)
@@ -1,4 +1,4 @@
 TUNE_ARCH = "mips"
 
-TARGET_CC_ARCH = "-march=mips32"
+TUNE_CCARGS = "-march=mips32"
 TUNE_PKGARCH = "mips"
index daa1cd37a403d7db2c2ff41583134e78f4a3daa7..ec43cfe831dea69809f0810be944b76e597352ed 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "powerpc"
 
-TARGET_CC_ARCH = "-mcpu=603e  -mhard-float"
+TUNE_CCARGS = "-mcpu=603e  -mhard-float"
 TUNE_PKGARCH = "ppc603e"
 PACKAGE_EXTRA_ARCHS = "powerpc ppc603e"
index a2989ae0ddab0491b3ae990bd7ef9c84efa7248e..ac232424bfe39036c21e5e3d22d0ab2d84e460b1 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "powerpc"
 
-TARGET_CC_ARCH = "-mcpu=e300c2 -msoft-float"
+TUNE_CCARGS = "-mcpu=e300c2 -msoft-float"
 TUNE_PKGARCH = "ppce300"
 PACKAGE_EXTRA_ARCHS = "powerpc ppce300"
index 8d67b8699840d0e6ad772186c02b727a2f927283..a342cfba9fb421948978e067c5cc5899fc62d138 100644 (file)
@@ -1,6 +1,6 @@
 TUNE_ARCH = "powerpc"
 
-TARGET_CC_ARCH = "-mcpu=8540"
+TUNE_CCARGS = "-mcpu=8540"
 BASE_PACKAGE_ARCH = "ppce500"
 TUNE_PKGARCH = "ppce500"
 PACKAGE_EXTRA_ARCHS = "powerpc ppce500"
index 0cdcfa83fb98be3aa765abaf694926de87f6daf6..497c1a412d4ef52b2d47f4d6f512179cb5567c3b 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "powerpc"
 
-TARGET_CC_ARCH = "-mcpu=e500mc"
+TUNE_CCARGS = "-mcpu=e500mc"
 TUNE_PKGARCH = "ppce500mc"
 PACKAGE_EXTRA_ARCHS = "powerpc ppce500mc"
index 219bcaf9ffa48f904a00b03f356485b92dc47423..1c568297955234bb88f5c3397179358f9b3f9f4e 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "powerpc"
 
-TARGET_CC_ARCH = "-mcpu=8548 -mabi=spe -mspe"
+TUNE_CCARGS = "-mcpu=8548 -mabi=spe -mspe"
 TUNE_PKGARCH = "ppce500v2"
 PACKAGE_EXTRA_ARCHS = "powerpc ppce500v2"
index 45ad6deb674eddfbc91d0574c924944ef384bf78..dd12cd4acec02d8f2f853ee96f85137e40727338 100644 (file)
@@ -1,4 +1,4 @@
 TUNE_ARCH = "sh3"
 
-TARGET_CC_ARCH = "-ml -m3"
+TUNE_CCARGS = "-ml -m3"
 TUNE_PKGARCH = "sh3"
index 3d89d4948d0a18fd03bd7d1524dad9ab172c4e15..473122cb5782b1da4fbcf7d5ed2b83eb7583af1c 100644 (file)
@@ -4,5 +4,5 @@ TUNE_ARCH = "sh4"
 # But it is not compatible for sh4.
 # The binary optimized by m4a doesn't operate on sh4. It works on sh4a only.
 
-TARGET_CC_ARCH = "-ml -m4"
+TUNE_CCARGS = "-ml -m4"
 TUNE_PKGARCH = "sh4"
index 2d4ce3842d33933ccc4d8ef08e4bb7dc1b0fa371..ec290532a2b0daf81e7f0bef10b4f2abe813e91b 100644 (file)
@@ -5,5 +5,5 @@ TUNE_PKGARCH = "arm"
 # This machine lists common configuration options for Strongarm 1100 devices
 # NOTE: The Zaurus Collie also has a Strongarm processor, but uses the 1110 type
 
-TARGET_CC_ARCH = "-march=armv4 -mtune=strongarm1100"
+TUNE_CCARGS = "-march=armv4 -mtune=strongarm1100"
 
index 7eaa73640d3300de270d18f919cfa1fc4bf397c7..0faa361f180d310f74bd04e8fbdc97fa93c2f9b9 100644 (file)
@@ -1,4 +1,4 @@
 TUNE_ARCH = "sparc"
 
-TARGET_CC_ARCH = "-mcpu=supersparc"
+TUNE_CCARGS = "-mcpu=supersparc"
 TUNE_PKGARCH = "supersparc"
index a25cb5320ccb505554a0f79a514dc2b170950452..9f6ce95a47409e33df17b91d54894b6f08d0da20 100644 (file)
@@ -27,6 +27,6 @@ ARM_INTERWORK_M_OPT = "${@['-mno-thumb-interwork', '-mthumb-interwork'][bb.data.
 ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
 
 #
-TARGET_CC_ARCH +=  "${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}"
+TUNE_CCARGS +=  "${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}"
 TARGET_CC_KERNEL_ARCH  += "-mno-thumb-interwork -mno-thumb"
 
index d7665ecb968bd5c711286fd2c0ab15487ab408bd..08ff30a23d4a9cd8667270406f006bc2c3681b70 100644 (file)
@@ -1,5 +1,5 @@
 TUNE_ARCH = "x86_64"
 
 TUNE_PKGARCH = "x86_64"
-TARGET_CC_ARCH = "-m64"
+TUNE_CCARGS = "-m64"
 
index 69c60f5f27a22a5f86ab5d62c06bf0da0daa38c8..9618a8b513fbbf5694ae439b44eadf4190852052 100644 (file)
@@ -2,12 +2,12 @@ TUNE_ARCH = "arm"
 
 INHERIT += "siteinfo"
 
-TARGET_CC_ARCH = "-march=armv5te -mtune=xscale"
+TUNE_CCARGS = "-march=armv5te -mtune=xscale"
 TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale"
 TUNE_PKGARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
 PACKAGE_EXTRA_ARCHS = "${@['armeb armv4b armv4tb armv5teb', 'arm armv4 armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}"
 
 # webkit-gtk has alignment issues with double instructions on armv5 so
 # disable them here
-TARGET_CC_ARCH_pn-webkit-gtk = "-march=armv4t"
-TARGET_CC_ARCH_pn-cairo = "-march=armv4t"
+TUNE_CCARGS_pn-webkit-gtk = "-march=armv4t"
+TUNE_CCARGS_pn-cairo = "-march=armv4t"