diff options
author | Mark Rutland <mark.rutland@arm.com> | 2014-04-15 16:20:48 +0100 |
---|---|---|
committer | Mark Rutland <mark.rutland@arm.com> | 2014-04-15 16:20:48 +0100 |
commit | 987e8754cbe5f85cd6c0274f549691b8433a61c0 (patch) | |
tree | fdd488fb2c916a2b0083b58a7158f9c743a9e125 | |
parent | 80a9599916b0cd2222d7fba0beb3909c967e6604 (diff) | |
download | boot-wrapper-aarch64-987e8754cbe5f85cd6c0274f549691b8433a61c0.tar.gz |
Allow DTB to be overridden
Some platforms differ significantly enough from the RTSM VE platform
such the RTSM VE DTB is not a valid DTB for the platform. Now that we
have the appropriate logic for detecting device and memory base
addresses, there's no reason we can't allwo the user to arbittrarily
choose to use another DTB so long as the basics are present (memory, a
pl011, and V2M sysregs).
This patch adds a "--with-dtb" option to override the DTB to use. The
aformentioned base addresses are automatically dicovered at build time.
Where a required device is not present, the build will fail.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
-rw-r--r-- | configure.ac | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 70718ae..40d36a0 100644 --- a/configure.ac +++ b/configure.ac @@ -21,19 +21,24 @@ AC_ARG_WITH([kernel-dir], AS_HELP_STRING([--with-kernel-dir], [specify the root Linux kernel build directory (required)]), AC_SUBST([KERN_DIR], [$withval]), AC_MSG_ERROR([No kernel directory specified. Use --with-kernel-dir])) -KERN_IMAGE=/arch/arm64/boot/Image -KERN_DTB=/arch/arm64/boot/dts/rtsm_ve-aemv8a.dtb +KERN_IMAGE=$KERN_DIR/arch/arm64/boot/Image +KERN_DTB=$KERN_DIR/arch/arm64/boot/dts/rtsm_ve-aemv8a.dtb + +# Allow the user to override the default DTB +AC_ARG_WITH([dtb], + AS_HELP_STRING([--with-dtb], [Specify a particular DTB to use]), + [KERN_DTB="$withval"]) # Ensure that the user has provided us with a sane kernel dir. m4_define([CHECKFILES], [KERN_DIR, - KERN_DIR$KERN_DTB, - KERN_DIR$KERN_IMAGE]) + KERN_DTB, + KERN_IMAGE]) m4_foreach([checkfile], [CHECKFILES], [AC_CHECK_FILE([$checkfile], [], AC_MSG_ERROR([No such file or directory: $checkfile]))]) -AC_SUBST([KERNEL_IMAGE], [$KERN_DIR$KERN_IMAGE]) -AC_SUBST([KERNEL_DTB], [$KERN_DIR$KERN_DTB]) +AC_SUBST([KERNEL_IMAGE], [$KERN_IMAGE]) +AC_SUBST([KERNEL_DTB], [$KERN_DTB]) # Allow a user to pass --enable-psci USE_PSCI=no @@ -85,6 +90,7 @@ echo " Boot wrapper configuration" echo " ==========================" echo "" echo " Linux kernel build dir: ${KERN_DIR}" +echo " Device tree blob: ${KERN_DTB}" echo " Linux kernel command line: ${CMDLINE}" echo " Embedded initrd: ${FILESYSTEM:-NONE}" echo " Use PSCI? ${USE_PSCI}" |