summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/build/Makefile4
-rw-r--r--test/build/check_config_options.sh16
2 files changed, 20 insertions, 0 deletions
diff --git a/test/build/Makefile b/test/build/Makefile
new file mode 100644
index 000000000..6863684a5
--- /dev/null
+++ b/test/build/Makefile
@@ -0,0 +1,4 @@
+# uClibc build tests
+# Licensed under the GNU Library General Public License, see COPYING.LIB
+
+include ../Test.mak
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