aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-10-10 17:17:50 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2018-10-10 17:17:50 -0700
commitcd3065133f9b4f4ddda6dffa4d8b0a15a925f4fb (patch)
tree969604f12a9d4000b0b86d646b51140e0f59a5f4 /configure.ac
parent7bee30c1ff56975041ffc67cd0170d7477aba865 (diff)
downloadpk-maxmem.zip
pk-maxmem.tar.gz
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.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 917179f..f482ae9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,11 @@ AS_IF([test "x$enable_print_device_tree" == "xyes"], [
AC_DEFINE([PK_PRINT_DEVICE_TREE],,[Define if the DTS is to be displayed])
])
+AC_ARG_WITH([max-memory-bytes], AS_HELP_STRING([--with-max-memory-bytes], [Limit the maximum availiable memory]))
+AS_IF([test "x$with_max_memory_bytes" != "xno"], [
+ AC_DEFINE([MAX_MEMORY_BYTES],"$with_max_memory_bytes",[Maximum bytes of memory])
+])
+
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"