X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/8f37c266a301fd8ff423018d9c8aa8360331977d..542f51dc8aacf42cf4e5fd5db2248748b27da2f8:/target/linux/Makefile diff --git a/target/linux/Makefile b/target/linux/Makefile index 604c739b5..bab26845a 100644 --- a/target/linux/Makefile +++ b/target/linux/Makefile @@ -1,42 +1,18 @@ include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/target.mk -define kernel_template - -$(1)/$(2)-clean: - $(MAKE) -C linux-$(1) BOARD="$(2)" clean - -$(1)/$(2)-prepare: - $(MAKE) -C linux-$(1) BOARD="$(2)" prepare - -$(1)/$(2)-compile: - $(MAKE) -C linux-$(1) BOARD="$(2)" compile - -$(1)/$(2)-rebuild: - $(MAKE) -C linux-$(1) BOARD="$(2)" rebuild - -$(1)/$(2)-install: - $(MAKE) -C linux-$(1) BOARD="$(2)" install - -$(1)/$(2)-image: $(1)/$(2)-install - $(MAKE) -C image KERNEL="$(1)" BOARD="$(2)" install - -ifeq ($(BR2_LINUX_$(3)),y) -clean: $(1)/$(2)-clean -prepare: $(1)/$(2)-prepare -compile: $(1)/$(2)-compile -rebuild: $(1)/$(2)-rebuild -install: $(1)/$(2)-image -endif - -.PHONY: $(1)/$(2)-clean $(1)/$(2)-prepare $(1)/$(2)-compile $(1)/$(2)-rebuild $(1)/$(2)-install -endef +source: + $(MAKE) -C $(BOARD)-$(KERNEL) source prepare: - $(MAKE) -C image prepare + rm -f $(TOPDIR)/.kernel.mk + $(MAKE) -C $(BOARD)-$(KERNEL) prepare + compile: - $(MAKE) -C image compile + $(MAKE) -C $(BOARD)-$(KERNEL) compile + install: -rebuild: + $(MAKE) -C $(BOARD)-$(KERNEL) install + clean: - -$(eval $(call kernel_template,2.4,brcm,2_4_BRCM)) + $(MAKE) -C $(BOARD)-$(KERNEL) clean