Can I suggest the following patch for include/platform.h ?
/* 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 EXTRA_CFLAGS="-DBB_NOMMU"
- * on his own.
+ * But if uClinux is set we know for sure we dont have a MMU
*/
- #if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9
&& \
__UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
+ #if defined __uClinux__ || __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 &&
__UCLIBC_MINOR__ >= 9 && \
__UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
#define BB_MMU 0
#define BB_NOMMU 1
It will make the build a bit more "idiot proof" and the comment is less
confusing
But if I read the TODO written by rob landley then I probably overlook
something because I dont understand his BB_NOMMU
/martinb
-----Oorspronkelijk bericht-----
Van: Denys Vlasenko [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 8 januari 2008 20:15
Aan: Martinb_ARM_NOMMU_KISSDVD
CC: Alex Landau; [email protected]
Onderwerp: Re: Fw: Hush cant replace lash for my situation
On Tuesday 08 January 2008 18:21, Martinb_ARM_NOMMU_KISSDVD wrote:
> Sorry for the stupid question but if I do not build NOMMU busybox
correctly
> can you please give me a hint where I have to make a change ?
> All the other applets do work and I think that all other applets are using
> vfork without me making any modification
>
> You did say that the -DBB_NOMMU is not a correct option so its possible
> (likely) I do make a error on the building but please tell me what I need
to
> do to make it build correct ?
>
> so again I use:
>
> "make ARCH=arm CROSS_COMPILE=arm-uclinux-elf-
> EXTRA_CFLAGS="-D__uClinux__ -DSKIP_STRIP=y" LDFLAGS="-Wl,-elf2flt"
install"
I told you how to force NOMMU:
On Sunday 06 January 2008 03:52, Denys Vlasenko wrote:
> It seems you do everything right, apart from -DBB_NOMMU. busybox does
> not expect that variable to be set like that. I typically
> just replace
>
> #if defined __UCLIBC__ && __UCLIBC_MAJOR__ >= 0 && __UCLIBC_MINOR__ >= 9
&& \
> __UCLIBC_SUBLEVEL__ > 28 && !defined __ARCH_USE_MMU__
>
> by
>
> #if 1
>
> in platform.h.
>
> Try doing that, and not pass -DBB_NOMMU.
Please try to do as described.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox