diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2011-12-05 17:47:43 +0000 |
---|---|---|
committer | Christoffer Dall <cdall@cs.columbia.edu> | 2011-12-08 22:11:25 -0500 |
commit | 1502732d0551dbaf50835d20520fb5545bc84718 (patch) | |
tree | 5d147d006fa561c26baf56920f6ece4df2ffabda | |
parent | 9f0bfe3851c3a72c137e7552d4972b941c5c12aa (diff) |
Makefile: Pass unknown targets through to the kernel make
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@linaro.org>
-rw-r--r-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |