mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
image: fix device profile specific COMPILE targets
Commita01d23e75
("image: always rebuild kernel loaders") is a step in the right direction, but exposed some issues and regressions in the makefile. Some of the files made by device specific COMPILE targets start with an "append" command (i.e. >> instead of > redirection) and if the file already exists, the target file is the input to itself before the first recipe-specified input. Fixes:a01d23e75
("image: always rebuild kernel loaders") Fixes:a7fb589e8
("image: always rebuild kernel loaders") Signed-off-by: Michael Pratt <mcpratt@pm.me>
This commit is contained in:
parent
93ae4353cd
commit
1bff0752bd
@ -520,6 +520,7 @@ define Device/Build/compile
|
||||
$$(_COMPILE_TARGET): $(KDIR)/$(1)
|
||||
$(eval $(call Device/Export,$(KDIR)/$(1)))
|
||||
$(KDIR)/$(1): FORCE
|
||||
rm -f $(KDIR)/$(1)
|
||||
$$(call concat_cmd,$(COMPILE/$(1)))
|
||||
|
||||
endef
|
||||
|
Loading…
Reference in New Issue
Block a user