]> git.openpandora.org Git - openembedded.git/commitdiff
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 32a9eaace28742b4b8b6d97abd2548881f6a61f1..1082908a1200a253e81b072cd6b73857a4f31e08 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 b497576036ac2032647b4ae710f5a27c4026a5dd..556fbe46b79ffcf8daccdff9a0dc9da0a93490b2 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 DEPENDS = "makedevs"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r112"
+PR = "r113"
 
 SRC_URI = "file://functions \
            file://halt \