initscripts: set alignment to 0 for armv7a
authorKoen Kooi <koen@openembedded.org>
Tue, 31 Mar 2009 15:38:50 +0000 (17:38 +0200)
committerKoen Kooi <koen@openembedded.org>
Tue, 31 Mar 2009 15:38:50 +0000 (17:38 +0200)
* the previous change was meant to do that, but depended on kernel config
* runtime tested on beagleboard, omap3evm and omapzoom

recipes/initscripts/files/arm/alignment.sh
recipes/initscripts/initscripts_1.0.bb

index 32a9eaa..1082908 100644 (file)
@@ -1,6 +1,10 @@
 #!/bin/sh
 
-if [ -e /proc/cpu/alignment ] && ! [ $(uname -m) = "armv7l" ]; then
-   echo "3" > /proc/cpu/alignment
+if [ -e /proc/cpu/alignment ] ; then
+   if [ $(uname -m) = "armv7l" ]; then
+       echo "0" > /proc/cpu/alignment
+   else
+       echo "3" > /proc/cpu/alignment
+   fi
 fi
 
index b497576..556fbe4 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r112"
+PR = "r113"
 
 SRC_URI = "file://functions \
            file://halt \