Add some convenience rules so we pass unknown targets through to the kernel makefile. This allows you to say 'make menuconfig' (for instance) from this directory. Signed-off-by: Peter Maydell <peter.maydell at linaro.org> --- Makefile | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 160cabd..e1635ea 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,6 @@ clean: rm -f $(IMAGE) boot.o model.lds monitor.o uImage $(KERNEL): $(KERNEL_SRC)/arch/arm/boot/uImage - $(MAKE) -C $(KERNEL_SRC) -j4 uImage cp $< $@ $(IMAGE): boot.o monitor.o model.lds $(KERNEL) $(FILESYSTEM) Makefile @@ -74,4 +73,16 @@ monitor.o: $(MONITOR) model.lds: $(LD_SCRIPT) Makefile $(CC) $(CPPFLAGS) -E -P -C -o $@ $< +$(KERNEL_SRC)/arch/arm/boot/uImage: force + $(MAKE) -C $(KERNEL_SRC) -j4 uImage + +# Pass any target we don't know about through to the kernel makefile. +# This is a convenience rule so we can say 'make menuconfig' etc here. +%: force + $(MAKE) -C $(KERNEL_SRC) $@ + +force: ; + +Makefile: ; + .PHONY: all clean -- 1.7.5.4