aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Leach <Matthew.Leach@arm.com>2014-01-23 17:29:29 +0000
committerMark Rutland <mark.rutland@arm.com>2014-03-12 11:15:58 +0000
commitd7cb1d660d17f3ecd715e26c6b84e12e2a2ca0cb (patch)
tree79c74f96486e8118c1173ca79b30a9d48c8dd43d
parentba169a9c86c6d9fa555dfebd8c6cdffd86f76e73 (diff)
downloadboot-wrapper-aarch64-d7cb1d660d17f3ecd715e26c6b84e12e2a2ca0cb.tar.gz
Allow the passing of CPUIDs in the configure script
Add the --with-cpu-ids switch to the configure script to allow the user to manually set the CPU IDs that are passed to PSCI. Signed-off-by: Matthew Leach <matthew.leach@arm.com> [Mark: fix indentation] Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac7
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b754f73..763eb58 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -14,7 +14,6 @@ SYSREGS_BASE := 0x1c010000
GIC_DIST_BASE := 0x2c001000
GIC_CPU_BASE := 0x2c002000
CNTFRQ := 0x01800000 # 24Mhz
-CPU_IDS ?= 0x0,0x1,0x2,0x3
DEFINES = -DCNTFRQ=$(CNTFRQ)
DEFINES += -DCPU_IDS=$(CPU_IDS)
diff --git a/configure.ac b/configure.ac
index 7a6aaf6..70718ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,6 +43,12 @@ AC_ARG_ENABLE([psci],
[USE_PSCI=no])
AM_CONDITIONAL([PSCI], [test "x$USE_PSCI" = "xyes"])
+# Allow a user to pass --with-cpu-ids
+C_CPU_IDS="0x0,0x1,0x2,0x3"
+AC_ARG_WITH(cpu-ids,
+ AS_HELP_STRING([--with-cpu-ids], [Specify a comma seperated list of CPU IDs]),
+ [C_CPU_IDS="$withval"])
+AC_SUBST([CPU_IDS], [$C_CPU_IDS])
# Allow a user to pass --with-initrd
AC_ARG_WITH([initrd],
@@ -82,4 +88,5 @@ echo " Linux kernel build dir: ${KERN_DIR}"
echo " Linux kernel command line: ${CMDLINE}"
echo " Embedded initrd: ${FILESYSTEM:-NONE}"
echo " Use PSCI? ${USE_PSCI}"
+echo " CPU IDs: ${CPU_IDS}"
echo ""