Jivin Mike Frysinger lays it down ... > The _default target is pretty useful, but sometimes I want to start with > the default config. Splitting the default config steps out into a new > _defconfig target allows for this code flow w/out breaking it manually > with my own CTRL+C: > $ make Some/Board_defconfig > $ make config_menuconfig > $ make
Applied, Thanks, Davidm > --- > Makefile | 10 ++++++---- > 1 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/Makefile b/Makefile > index 9faa7b7..f331838 100644 > --- a/Makefile > +++ b/Makefile > @@ -352,17 +352,19 @@ bugreport: > *) $(MAKEARCH) -C $(@:_romfs=) romfs;; \ > esac > > -%_default: conf > - @if [ ! -f "vendors/$(@:_default=)/config.device" ]; then \ > - echo "vendors/$(@:_default=)/config.device must exist first"; \ > +%_defconfig: conf > + @if [ ! -f "vendors/$(@:_defconfig=)/config.device" ]; then \ > + echo "vendors/$(@:_defconfig=)/config.device must exist first"; > \ > exit 1; \ > fi > -$(MAKE) clean > /dev/null 2>&1 > - cp vendors/$(@:_default=)/config.device .config > + cp vendors/$(@:_defconfig=)/config.device .config > chmod u+x config/setconfig > yes "" | config/setconfig defaults > config/setconfig final > $(MAKE) dep > +%_default: conf > + $(MAKE) $(@:_default=_defconfig) > $(MAKE) > > config_error: > -- > 1.6.1.3 > > _______________________________________________ > uClinux-dev mailing list > uClinux-dev@uclinux.org > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by uclinux-dev@uclinux.org > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > -- David McCullough, david_mccullo...@securecomputing.com, Ph:+61 734352815 McAfee - SnapGear http://www.snapgear.com http://www.uCdot.org _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev