summaryrefslogtreecommitdiff
path: root/test/build/check_config_options.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/build/check_config_options.sh')
-rw-r--r--test/build/check_config_options.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/build/check_config_options.sh b/test/build/check_config_options.sh
new file mode 100644
index 000000000..93a5e7280
--- /dev/null
+++ b/test/build/check_config_options.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Make sure nothing uses the ARCH_HAS_MMU option anymore
+ret=$(
+grep -rHI \
+ __ARCH_HAS_MMU__ ../.. \
+ | grep -v \
+ -e include/bits/uClibc_config.h \
+ -e test/build/check_config_options.sh
+)
+if test -n "$ret" ; then
+ echo "The build system is incorrectly using ARCH_HAS_MMU:"
+ echo "$ret"
+fi
+
+exit 0