diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-05-08 12:13:39 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-05-08 12:13:39 +1000 |
commit | b769bf5d888eaf5b45d22cc2b119e67d786fc702 (patch) | |
tree | 5e16c85904ca0291eca17d47caa08d52399ebe04 /conf | |
parent | 825d9852f4cf70faeaf3c77f7421d1275aba916b (diff) | |
download | meta-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.inc | 10 | ||||
-rw-r--r-- | conf/machine/include/tune-microblaze.inc | 18 |
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 | |||
7 | require conf/machine/include/microblaze/feature-microblaze-fpu.inc | 7 | require conf/machine/include/microblaze/feature-microblaze-fpu.inc |
8 | require conf/machine/include/microblaze/feature-microblaze-pattern-compare.inc | 8 | require conf/machine/include/microblaze/feature-microblaze-pattern-compare.inc |
9 | require conf/machine/include/microblaze/feature-microblaze-reorder.inc | 9 | require conf/machine/include/microblaze/feature-microblaze-reorder.inc |
10 | |||
11 | # Architecture name, either 'microblaze' or 'microblazeel' depending on endianess | ||
12 | TUNE_ARCH = "microblaze${@bb.utils.contains("TUNE_FEATURES", "little-endian", "el", "" ,d)}" | ||
13 | |||
14 | # Compiler args | ||
15 | TUNE_CCARGS += "${MBCCARGSENDIAN} ${MBCCARGSVERSION} ${MBCCARGSBARRELSHIFT} ${MBCCARGSMUL} ${MBCCARGSDIV} ${MBCCARGSFPU} ${MBCCARGSPATTERNCOMPARE} ${MBCCARGSREORDER}" | ||
16 | |||
17 | # Package Architecture formatting | ||
18 | MBPKGMATH = "${MBPKGMUL}${MBPKGDIV}${MBPKGFPU}" | ||
19 | TUNE_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 | |||
5 | DEFAULTTUNE ?= "microblaze" | 1 | DEFAULTTUNE ?= "microblaze" |
6 | 2 | SOC_FAMILY ?= "microblaze" | |
7 | TUNE_ARCH = "microblazeel" | ||
8 | 3 | ||
9 | require conf/machine/include/tune-microblaze-features.inc | 4 | require conf/machine/include/tune-microblaze-features.inc |
10 | 5 | ||
11 | AVAILTUNES += "microblaze" | ||
12 | TUNEVALID[microblaze] = "Microblaze" | 6 | TUNEVALID[microblaze] = "Microblaze" |
13 | TUNE_FEATURES_tune-microblaze += "microblaze" | 7 | AVAILTUNES += "microblaze" |
14 | 8 | ||
15 | TUNE_CCARGS += "${MBCCARGSENDIAN} ${MBCCARGSVERSION} ${MBCCARGSBARRELSHIFT} ${MBCCARGSMUL} ${MBCCARGSDIV} ${MBCCARGSFPU} ${MBCCARGSPATTERNCOMPARE} ${MBCCARGSREORDER}" | 9 | TUNE_FEATURES_tune-microblaze += "microblaze" |
16 | MBPKGMATH = "${MBPKGMUL}${MBPKGDIV}${MBPKGFPU}" | ||
17 | TUNE_PKGARCH = "microblaze${MBPKGENDIAN}${MBPKGVERSION}${MBPKGBARRELSHIFT}${MBPKGSPATTERNCOMPARE}${MBPKGREORDER}${MBPKGMATH}" | ||
18 | PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}" | 10 | PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}" |
19 | 11 | ||
20 | # Linux Configuration | 12 | # Linux Configuration |
21 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | 13 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" |
22 | PREFERRED_VERSION_linux-xlnx ?= "3.8%" | 14 | PREFERRED_VERSION_linux-xlnx ?= "3.8%" |
23 | |||
24 | KERNEL_IMAGETYPE ?= "linux.bin" | 15 | KERNEL_IMAGETYPE ?= "linux.bin" |
16 | |||
17 | # File System Configuration | ||
25 | IMAGE_FSTYPES ?= "cpio ext2 ext2.gz.u-boot ext2.gz" | 18 | IMAGE_FSTYPES ?= "cpio ext2 ext2.gz.u-boot ext2.gz" |
26 | IMAGE_CLASSES += "image_types_uboot" | 19 | IMAGE_CLASSES += "image_types_uboot" |
27 | 20 | ||
21 | # U-Boot Configuration | ||
28 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" | 22 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" |
29 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" | 23 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" |
30 | UBOOT_MACHINE ?= "microblaze-generic" | 24 | UBOOT_MACHINE ?= "microblaze-generic" |