diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2017-07-27 13:23:49 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2017-08-02 12:32:45 -0700 |
commit | 9037b1d9f2130770228be62c66b88b47fccd99b6 (patch) | |
tree | 56998a7ab91d5da423452fec410d32479cec34b1 /configure | |
parent | 8b80f2ea28c0167f9dc75462147447b144ed4ea9 (diff) | |
download | riscv-pk-9037b1d9f2130770228be62c66b88b47fccd99b6.zip riscv-pk-9037b1d9f2130770228be62c66b88b47fccd99b6.tar.gz riscv-pk-9037b1d9f2130770228be62c66b88b47fccd99b6.tar.bz2 |
Add a platform interface
SiFive's pk fork is the second one I've had to maintain, and it's a huge
pain because people keep just leaving changes all over the tree. I want
to introduce an interface that the platform-specific details can live
behind so I don't have to keep doing these painful merges.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -4433,6 +4433,51 @@ $as_echo "#define UTIL_ENABLED /**/" >>confdefs.h + # Determine if this is a required or an optional subproject + + + + # Determine if there is a group with the same name + + + + # Create variations of the subproject name suitable for use as a CPP + # enabled define, a shell enabled variable, and a shell function + + + + + + + + + + + + # Add subproject to our running list + + subprojects="$subprojects platform" + + # Process the subproject appropriately. If enabled add it to the + # $enabled_subprojects running shell variable, set a + # SUBPROJECT_ENABLED C define, and include the appropriate + # 'subproject.ac'. + + + { $as_echo "$as_me:${as_lineno-$LINENO}: configuring default subproject : platform" >&5 +$as_echo "$as_me: configuring default subproject : platform" >&6;} + ac_config_files="$ac_config_files platform.mk:platform/platform.mk.in" + + enable_platform_sproj="yes" + subprojects_enabled="$subprojects_enabled platform" + +$as_echo "#define PLATFORM_ENABLED /**/" >>confdefs.h + + + + + + # Output make variables @@ -5155,6 +5200,7 @@ do "dummy_payload.mk") CONFIG_FILES="$CONFIG_FILES dummy_payload.mk:dummy_payload/dummy_payload.mk.in" ;; "machine.mk") CONFIG_FILES="$CONFIG_FILES machine.mk:machine/machine.mk.in" ;; "util.mk") CONFIG_FILES="$CONFIG_FILES util.mk:util/util.mk.in" ;; + "platform.mk") CONFIG_FILES="$CONFIG_FILES platform.mk:platform/platform.mk.in" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |