diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-10-10 17:17:50 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-10-10 17:17:50 -0700 |
commit | cd3065133f9b4f4ddda6dffa4d8b0a15a925f4fb (patch) | |
tree | 969604f12a9d4000b0b86d646b51140e0f59a5f4 /configure | |
parent | 7bee30c1ff56975041ffc67cd0170d7477aba865 (diff) | |
download | riscv-pk-maxmem.zip riscv-pk-maxmem.tar.gz riscv-pk-maxmem.tar.bz2 |
Add "--with-max-memory-bytes", to limit the used memorymaxmem
I have no idea if this works, but it does at least compile.
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -646,7 +646,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -672,6 +671,7 @@ enable_option_checking enable_stow with_arch enable_print_device_tree +with_max_memory_bytes enable_optional_subprojects enable_vm enable_logo @@ -733,7 +733,6 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -986,15 +985,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1132,7 +1122,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1285,7 +1275,6 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1333,6 +1322,7 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-arch Set the RISC-V architecture + --with-max-memory-bytes Limit the maximum availiable memory --with-payload Set ELF payload for bbl --with-logo Specify a better logo @@ -4095,6 +4085,20 @@ $as_echo "#define PK_PRINT_DEVICE_TREE /**/" >>confdefs.h fi + +# Check whether --with-max-memory-bytes was given. +if test "${with_max_memory_bytes+set}" = set; then : + withval=$with_max_memory_bytes; +fi + +if test "x$with_max_memory_bytes" != "xno"; then : + + +$as_echo "#define MAX_MEMORY_BYTES \"\$with_max_memory_bytes\"" >>confdefs.h + + +fi + CFLAGS="-Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks -fno-PIE" LDFLAGS="$LDFLAGS -Wl,--build-id=none" |