[Buildroot] [PATCH] boot-wrapper-aarch64: Allow users to select the PSCI SMP boot method
Hollis Blanchard
hollis_blanchard at mentor.com
Fri Oct 7 22:45:04 UTC 2016
Signed-off-by: Hollis Blanchard <hollis_blanchard at mentor.com>
---
boot/boot-wrapper-aarch64/Config.in | 7 +++++++
boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/boot/boot-wrapper-aarch64/Config.in b/boot/boot-wrapper-aarch64/Config.in
index 2563f58..7469727 100644
--- a/boot/boot-wrapper-aarch64/Config.in
+++ b/boot/boot-wrapper-aarch64/Config.in
@@ -40,4 +40,11 @@ config BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK
linux,initrd-start and linux,initrd-end properties in the /chosen device
tree node.
+config BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI
+ bool "Boot secondary SMP cores using PSCI"
+ default n
+ help
+ Boot secondary SMP cores using PSCI firmware calls. If n, use the spin-table
+ method instead.
+
endif
diff --git a/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk b/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
index 28b2061..0df0859 100644
--- a/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
+++ b/boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk
@@ -34,6 +34,10 @@ ifneq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK),)
BOOT_WRAPPER_AARCH64_CONF_OPTS += --with-initrd=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_RAMDISK)
endif
+ifeq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI),y)
+ BOOT_WRAPPER_AARCH64_CONF_OPTS += --enable-psci
+endif
+
# We need to convince the configure script that the Linux kernel tree
# exists, as well as the DTB and the kernel Image. Even though those
# are available on the build machine, the configure script uses
--
1.7.1
More information about the buildroot
mailing list