Просмотр исходного кода

If they have an x86, but HAS_MMU is false, warn and sleep(10) since
99.999999999999999999% of all folks compiling on x86 have an MMU.
Otherwise, folks will see that malloc mysteriously doesn't work...
-Erik

Eric Andersen 23 лет назад
Родитель
Сommit
330a35150a
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      Makefile

+ 8 - 1
Makefile

@@ -22,12 +22,13 @@
 
 #--------------------------------------------------------
 #
-#There are a number of configurable options in Rules.mak
+#There are a number of configurable options in "Config"
 #
 #--------------------------------------------------------
 
 include Rules.mak
 
+
 DIRS = misc pwd_grp stdio string termios unistd net signal stdlib sysdeps extra
 
 all: libc.a
@@ -52,6 +53,12 @@ headers: dummy
 	    echo " "; \
 	    /bin/false; \
 	fi;
+	@if [ $(HAS_MMU) != "true" ]  && [ $(TARGET_ARCH) = "i386" ] ; then \
+	    echo "WARNING: I bet your x86 system really has an MMU, right?"; \
+	    echo "         malloc and friends won't work unless you fix \`Config'"; \
+	    echo " "; \
+	    sleep 10; \
+	fi;
 	@ln -s $(KERNEL_SOURCE)/include/net include/net
 	@ln -s $(KERNEL_SOURCE)/include/linux include/linux
 	@ln -s ../sysdeps/linux/$(TARGET_ARCH)/bits include/bits