linux.inc: add knob to turn off cortex a8 fixups
authorKoen Kooi <koen@openembedded.org>
Tue, 12 Oct 2010 15:46:10 +0000 (17:46 +0200)
committerKoen Kooi <koen@openembedded.org>
Tue, 12 Oct 2010 15:46:10 +0000 (17:46 +0200)
linux-sakoman 2.6.35: use above knob

recipes/linux/linux-sakoman_2.6.35.bb
recipes/linux/linux.inc

index 6647d87..9933af4 100644 (file)
@@ -1,3 +1,5 @@
+CORTEXA8FIXUP = "no"
+
 require linux.inc
 
 DESCRIPTION = "Linux kernel for OMAP processors"
index 34deebb..0409ebf 100644 (file)
@@ -52,6 +52,8 @@ KERNEL_DEVICETREE_xilinx-ml507 = "arch/${ARCH}/boot/dts/virtex440-ml507.dts"
 
 KERNEL_DEVICETREE_FLAGS = "-R 8 -S 0x3000"
 
+CORTEXA8FIXUP ?= "yes"
+
 python __anonymous () {
 
     import bb
@@ -108,7 +110,7 @@ do_configure_prepend() {
         fi
 
         # Enable thumb2 fixup for specific issue in angstrom toolchains when used on A8 r1p[012] silicon
-        if [ "${DISTRO_NAME}" = "Angstrom" ] ; then
+        if [ "${DISTRO_NAME}" = "Angstrom" -o "${CORTEXA8FIXUP}" = "yes"] ; then
             sed -i -e /CONFIG_ARM_ERRATA_430973/d ${WORKDIR}/defconfig
             echo "CONFIG_ARM_ERRATA_430973=y" >> ${S}/.config
         fi