image: fix handling of per-device kernel build commands
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46589
This commit is contained in:
parent
e69474719d
commit
5b25a12e8f
@ -424,6 +424,7 @@ define Device/Build/kernel
|
|||||||
_KERNEL_IMAGES += $(KDIR)/$$(KERNEL_NAME)
|
_KERNEL_IMAGES += $(KDIR)/$$(KERNEL_NAME)
|
||||||
$(KDIR)/$$(KERNEL_NAME): image_prepare
|
$(KDIR)/$$(KERNEL_NAME): image_prepare
|
||||||
$$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE))
|
$$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE))
|
||||||
|
$(call Device/Export,$(KDIR)/$$(KERNEL_IMAGE),$(1))
|
||||||
$(BIN_DIR)/$$(KERNEL_IMAGE): $(KDIR)/$$(KERNEL_IMAGE)
|
$(BIN_DIR)/$$(KERNEL_IMAGE): $(KDIR)/$$(KERNEL_IMAGE)
|
||||||
cp $$^ $$@
|
cp $$^ $$@
|
||||||
ifndef IB
|
ifndef IB
|
||||||
@ -439,7 +440,6 @@ endef
|
|||||||
|
|
||||||
define Device/Build/image
|
define Device/Build/image
|
||||||
$$(_TARGET): $(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2))
|
$$(_TARGET): $(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2))
|
||||||
$(eval $(call Device/Export,$(KDIR)/$(KERNEL_IMAGE),$(1)))
|
|
||||||
$(eval $(call Device/Export,$(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)),$(1)))
|
$(eval $(call Device/Export,$(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)),$(1)))
|
||||||
$(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)): $(KDIR)/$$(KERNEL_IMAGE) $(KDIR)/root.$(1)
|
$(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)): $(KDIR)/$$(KERNEL_IMAGE) $(KDIR)/root.$(1)
|
||||||
@rm -f $$@
|
@rm -f $$@
|
||||||
|
Loading…
Reference in New Issue
Block a user