boot-wrapper-aarch64: Allow users to select the PSCI SMP boot method
authorHollis Blanchard <hollis_blanchard@mentor.com>
Fri, 7 Oct 2016 22:45:04 +0000 (15:45 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Oct 2016 21:59:36 +0000 (23:59 +0200)
Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
[Thomas:
 - remove "default n"
 - pass explicit --disable-psci]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
boot/boot-wrapper-aarch64/Config.in
boot/boot-wrapper-aarch64/boot-wrapper-aarch64.mk

index c4e63e23dfcd97a569676ed9ed8a92434b8ce258..73d790fede107ec8d763740e1852d287a3cf9123 100644 (file)
@@ -32,4 +32,10 @@ config BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS
          Kernel bootargs to embed inside the image generated by the
          boot wrapper.
 
+config BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI
+       bool "Boot secondary SMP cores using PSCI"
+       help
+         Boot secondary SMP cores using PSCI firmware calls. If
+         disabled, the spin-table method is used instead.
+
 endif
index c56bdeeeab46fc097d73635871dbec41f234026b..a46937538d325205f266b34e95fa6317a378afe9 100644 (file)
@@ -30,6 +30,12 @@ BOOT_WRAPPER_AARCH64_CONF_OPTS = \
        --with-kernel-dir=$(LINUX_DIR) \
        --with-cmdline=$(BR2_TARGET_BOOT_WRAPPER_AARCH64_BOOTARGS)
 
+ifeq ($(BR2_TARGET_BOOT_WRAPPER_AARCH64_PSCI),y)
+BOOT_WRAPPER_AARCH64_CONF_OPTS += --enable-psci
+else
+BOOT_WRAPPER_AARCH64_CONF_OPTS += --disable-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