[uClinux-dev] [PATCH] busybox: define BB_NOMMU if __uClinux__

Thomas Chou thomas at wytron.com.tw
Tue Nov 20 21:57:13 EST 2007


Need this flag to compile busybox when we don't have vaild uClibc flags.

Signed-off-by: Thomas Chou <thomas at wytron.com.tw>

diff --git a/user/busybox/include/platform.h b/user/busybox/include/platform.h
index 69d031d..4695892 100644
--- a/user/busybox/include/platform.h
+++ b/user/busybox/include/platform.h
@@ -208,7 +208,7 @@ typedef unsigned smalluint;
  * for a mmu-less system; the user should pass EXTRA_CFLAGS="-DBB_NOMMU"
  * on his own.
  */
-#if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \
+#if defined __uClinux__ || defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \
     __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
 #define BB_NOMMU
 #endif
-- 
1.5.3.3



More information about the uClinux-dev mailing list