summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Soller <jeremy@system76.com>2021-05-06 19:36:27 -0600
committerJeremy Soller <jeremy@system76.com>2021-05-06 19:36:27 -0600
commit786b4a19be098826db2e589651d7f2c7748a2e8c (patch)
treef709fe52812e3dc5dbcf7aab3e563a2c50d5b95a
parent543c5eca6fdb35a2299bd7842eb92bee7c5b5082 (diff)
Set ARMV8_SWITCH_TO_EL1 option in u-boot
-rwxr-xr-xaarch64.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/aarch64.sh b/aarch64.sh
index 18276c7..8f1df5e 100755
--- a/aarch64.sh
+++ b/aarch64.sh
@@ -59,6 +59,10 @@ then
's/^CONFIG_BOOTCOMMAND=.*$/CONFIG_BOOTCOMMAND="bootm '"${IMAGE_ADDR}"' - ${fdtcontroladdr}"/' \
u-boot/.config
+ sed -i \
+ 's/^CONFIG_SYS_EXTRA_OPTIONS=""/CONFIG_SYS_EXTRA_OPTIONS="ARMV8_SWITCH_TO_EL1"/' \
+ u-boot/.config
+
TARGET=aarch64-unknown-redox
env CROSS_COMPILE="${TARGET}-" \
PATH="${PWD}/prefix/${TARGET}/relibc-install/bin/:${PATH}" \