svn commit: trunk/busybox/include
aldot at busybox.net
aldot at busybox.net
Wed May 31 10:04:05 UTC 2006
Author: aldot
Date: 2006-05-31 03:04:03 -0700 (Wed, 31 May 2006)
New Revision: 15243
Log:
- conditionally define BB_NOMMU
Modified:
trunk/busybox/include/platform.h
Changeset:
Modified: trunk/busybox/include/platform.h
===================================================================
--- trunk/busybox/include/platform.h 2006-05-30 19:19:45 UTC (rev 15242)
+++ trunk/busybox/include/platform.h 2006-05-31 10:04:03 UTC (rev 15243)
@@ -197,7 +197,19 @@
#define PRIu32 "u"
#endif
-// Need to implement fdprintf for platforms that haven't got dprintf.
+/* uclibc does not implement daemon for no-mmu systems.
+ * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably.
+ * For earlier versions there is no reliable way to check if we are building
+ * for a mmu-less system; the user should pass CFLAGS_EXTRA="-DBB_NOMMU"
+ * on his own.
+ */
+#if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9 && \
+ __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
+#define BB_NOMMU
+#endif
+
+/* Need to implement fdprintf for platforms that haven't got dprintf. */
+/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
#define fdprintf dprintf
/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
@@ -214,9 +226,7 @@
#define bb_setpgrp setpgrp()
#endif
-// I have no idea what platform this was for since aldot didn't say, but
-// it belongs here since Linux doesn't need it.
-
+/* This is needed on some non linux unices like Tru64 */
#if !defined ADJ_OFFSET_SINGLESHOT && defined MOD_CLKA && defined MOD_OFFSET
#define ADJ_OFFSET_SINGLESHOT (MOD_CLKA | MOD_OFFSET)
#endif
More information about the busybox-cvs
mailing list