summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-05-08 12:13:39 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-05-08 12:13:39 +1000
commitb769bf5d888eaf5b45d22cc2b119e67d786fc702 (patch)
tree5e16c85904ca0291eca17d47caa08d52399ebe04 /conf
parent825d9852f4cf70faeaf3c77f7421d1275aba916b (diff)
downloadmeta-xilinx-b769bf5d888eaf5b45d22cc2b119e67d786fc702.tar.gz
tune-microblaze: Refactor tune definition
* Extract the arch, package arch and cc flags into the features.inc * Specify the SOC_FAMILY as 'microblaze' (for both little and big endian) Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'conf')
-rw-r--r--conf/machine/include/tune-microblaze-features.inc10
-rw-r--r--conf/machine/include/tune-microblaze.inc18
2 files changed, 16 insertions, 12 deletions
diff --git a/conf/machine/include/tune-microblaze-features.inc b/conf/machine/include/tune-microblaze-features.inc
index f12508ae..fd7e0c8f 100644
--- a/conf/machine/include/tune-microblaze-features.inc
+++ b/conf/machine/include/tune-microblaze-features.inc
@@ -7,3 +7,13 @@ require conf/machine/include/microblaze/feature-microblaze-divide.inc
7require conf/machine/include/microblaze/feature-microblaze-fpu.inc 7require conf/machine/include/microblaze/feature-microblaze-fpu.inc
8require conf/machine/include/microblaze/feature-microblaze-pattern-compare.inc 8require conf/machine/include/microblaze/feature-microblaze-pattern-compare.inc
9require conf/machine/include/microblaze/feature-microblaze-reorder.inc 9require conf/machine/include/microblaze/feature-microblaze-reorder.inc
10
11# Architecture name, either 'microblaze' or 'microblazeel' depending on endianess
12TUNE_ARCH = "microblaze${@bb.utils.contains("TUNE_FEATURES", "little-endian", "el", "" ,d)}"
13
14# Compiler args
15TUNE_CCARGS += "${MBCCARGSENDIAN} ${MBCCARGSVERSION} ${MBCCARGSBARRELSHIFT} ${MBCCARGSMUL} ${MBCCARGSDIV} ${MBCCARGSFPU} ${MBCCARGSPATTERNCOMPARE} ${MBCCARGSREORDER}"
16
17# Package Architecture formatting
18MBPKGMATH = "${MBPKGMUL}${MBPKGDIV}${MBPKGFPU}"
19TUNE_PKGARCH = "microblaze${MBPKGENDIAN}${MBPKGVERSION}${MBPKGBARRELSHIFT}${MBPKGSPATTERNCOMPARE}${MBPKGREORDER}${MBPKGMATH}"
diff --git a/conf/machine/include/tune-microblaze.inc b/conf/machine/include/tune-microblaze.inc
index 85a2619a..373f4b9a 100644
--- a/conf/machine/include/tune-microblaze.inc
+++ b/conf/machine/include/tune-microblaze.inc
@@ -1,30 +1,24 @@
1# Tune options for microblaze
2# The only tune 'feature' defined here is the microblaze tune.
3# See the machine file (microblaze[el].conf) for details.
4
5DEFAULTTUNE ?= "microblaze" 1DEFAULTTUNE ?= "microblaze"
6 2SOC_FAMILY ?= "microblaze"
7TUNE_ARCH = "microblazeel"
8 3
9require conf/machine/include/tune-microblaze-features.inc 4require conf/machine/include/tune-microblaze-features.inc
10 5
11AVAILTUNES += "microblaze"
12TUNEVALID[microblaze] = "Microblaze" 6TUNEVALID[microblaze] = "Microblaze"
13TUNE_FEATURES_tune-microblaze += "microblaze" 7AVAILTUNES += "microblaze"
14 8
15TUNE_CCARGS += "${MBCCARGSENDIAN} ${MBCCARGSVERSION} ${MBCCARGSBARRELSHIFT} ${MBCCARGSMUL} ${MBCCARGSDIV} ${MBCCARGSFPU} ${MBCCARGSPATTERNCOMPARE} ${MBCCARGSREORDER}" 9TUNE_FEATURES_tune-microblaze += "microblaze"
16MBPKGMATH = "${MBPKGMUL}${MBPKGDIV}${MBPKGFPU}"
17TUNE_PKGARCH = "microblaze${MBPKGENDIAN}${MBPKGVERSION}${MBPKGBARRELSHIFT}${MBPKGSPATTERNCOMPARE}${MBPKGREORDER}${MBPKGMATH}"
18PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}" 10PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}"
19 11
20# Linux Configuration 12# Linux Configuration
21PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" 13PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx"
22PREFERRED_VERSION_linux-xlnx ?= "3.8%" 14PREFERRED_VERSION_linux-xlnx ?= "3.8%"
23
24KERNEL_IMAGETYPE ?= "linux.bin" 15KERNEL_IMAGETYPE ?= "linux.bin"
16
17# File System Configuration
25IMAGE_FSTYPES ?= "cpio ext2 ext2.gz.u-boot ext2.gz" 18IMAGE_FSTYPES ?= "cpio ext2 ext2.gz.u-boot ext2.gz"
26IMAGE_CLASSES += "image_types_uboot" 19IMAGE_CLASSES += "image_types_uboot"
27 20
21# U-Boot Configuration
28PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" 22PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx"
29PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" 23PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%"
30UBOOT_MACHINE ?= "microblaze-generic" 24UBOOT_MACHINE ?= "microblaze-generic"