[uClinux-dev] BusyBox issues
David McCullough
david_mccullough at au.securecomputing.com
Thu Feb 22 01:34:37 EST 2007
Jivin John Williams lays it down ...
> Hi David,
>
> David McCullough wrote:
> >Jivin John Williams lays it down ...
> >
> >>David McCullough wrote:
> >>
> >>>Jivin Steve Bennett lays it down ...
> >>>
> >>>
> >>>>This often (always?) happens if you reconfigure busybox and rebuild.
> >>>>The solution is simply to clean out busybox after reconfiguring to
> >>>>ensure
> >>>>that everything is rebuilt.
> >>>>
> >>>>$ make user/busybox_clean
> >>>
> >>>The code in user/busbox/Makefile is supposed to do a clean whenever
> >>>the config is changed.
> >>>
> >>>I think we should change:
> >>>
> >>> .config.mkconfig: $(ROOTDIR)/config/.config
> >>> ...
> >>> $(MAKE) clean; \
> >>> ...
> >>>
> >>>to a "distclean" perhaps to ensure everything is truly cleaned out.
> >>>Someone want to try it :-) :-)
> >>
> >>I've found that if you change the busybox config, you have to rebuild it
> >>(make user_only) *twice* before doing a make romfs, to ensure all new
> >>applets are built and properly symlinked. Never taken the time to
> >>figure out why, just a gotcha.
> >>
> >>Anyone else seen this?
> >
> >
> >Most likely because there is no Makefile seperation, as in the
> >Makefile that builds the config has probably got dependancies
> >on the config that do not get fixed.
> >
> >I am guessing a good solution will be:
> >
> > create a "makefile" that generates the config, checks the config
> > cleans the old build and rebuilds using the "Makefile" as needed.
>
> I'm a bit wary of mixing lowercase and uppercase [mM]akefiles in the
> same dir, for the reason that one day I'll have to stop putting off
> supporting cygwin for MicroBlaze builds! I know this is already done
> extensively, but no point in adding to it!
>
> On that note, a while ago a Makefile.uc concept was proposed -
> user/Makefile would look for a .uc" makefile first and make -f on that,
> if possible.
There is always the GNUMakefile option as well. Just seems uglier to
me.
The .uc would at least make it uc-specific I guess and able to be
included with source distros etc in a non-intrusive way.
> >that way it has no dependancies on anything busybox related. Oh and
> >uses distclean as well ;-) Perhaps even have it build a symlink tree
> >so we can do all the BB stuff in a subdir so we can be really sure it
> >works as clean just removes the directory :-)
> >
> >I can send an example of a "makefile" that does the symlinks if anyone
> >wants
> >to tackle it,
>
> This isn't urgent from my perspective, busy rebuilding toolchains at the
> moment :)
Joy :-)
Cheers,
Davidm
--
David McCullough, david_mccullough at securecomputing.com, Ph:+61 734352815
Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com
More information about the uClinux-dev
mailing list