diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-03 14:39:23 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-03 15:43:47 -0700 |
commit | ca24f3c904186cb6babfc74fd6c4e133e4542b5e (patch) | |
tree | 6b3afe9e5df25ca40d021c97e1d9553ecdb5b9e9 /configure | |
parent | 2187c4512db64656896f4b455628a2567984eba1 (diff) | |
download | riscv-pk-ca24f3c904186cb6babfc74fd6c4e133e4542b5e.zip riscv-pk-ca24f3c904186cb6babfc74fd6c4e133e4542b5e.tar.gz riscv-pk-ca24f3c904186cb6babfc74fd6c4e133e4542b5e.tar.bz2 |
Add the '--enable-print-device-tree' argument
I'm trying to debug some device tree problems while booting Linux and
figured it would be really nice to have access to the device tree while
trying to debug these problems. I think this might be useful for lots
of people, so I went ahead and cleaned up the code enough that it should
actaully work in most cases.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -671,6 +671,7 @@ enable_option_checking enable_stow enable_32bit with_platform +enable_print_device_tree enable_optional_subprojects enable_vm enable_logo @@ -1318,6 +1319,8 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-stow Enable stow-based install --enable-32bit Build a 32-bit pk + --enable-print-device-tree + Print DTS when booting --enable-optional-subprojects Enable all optional subprojects --disable-vm Disable virtual memory @@ -4103,6 +4106,19 @@ fi PLATFORM_NAME=$PLATFORM_NAME +# Check whether --enable-print-device-tree was given. +if test "${enable_print_device_tree+set}" = set; then : + enableval=$enable_print_device_tree; +fi + +if test "x$enable_print_device_tree" == "xyes"; then : + + +$as_echo "#define PK_PRINT_DEVICE_TREE /**/" >>confdefs.h + + +fi + LIBS="-lgcc" |