mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-09-26 14:20:44 +02:00
build: move Build/copy-file to image-commands.mk
This is makro is present in more than one place. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
872b65ecc8
commit
144609bb3d
@ -196,6 +196,10 @@ define Build/check-size
|
|||||||
}
|
}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/copy-file
|
||||||
|
cat "$(1)" > "$@"
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/elecom-product-header
|
define Build/elecom-product-header
|
||||||
$(eval product=$(word 1,$(1)))
|
$(eval product=$(word 1,$(1)))
|
||||||
$(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@))
|
$(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@))
|
||||||
|
@ -28,10 +28,6 @@ define Build/boot-script
|
|||||||
$@.scr
|
$@.scr
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/copy-file
|
|
||||||
cat "$(1)" > "$@"
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/dtb
|
define Build/dtb
|
||||||
$(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,$@.dtb,,--space $(DTB_SIZE))
|
$(call Image/BuildDTB,../dts/$(DEVICE_DTS).dts,$@.dtb,,--space $(DTB_SIZE))
|
||||||
endef
|
endef
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
define Build/copy-file
|
|
||||||
cat "$(1)" > "$@"
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Device/Default
|
define Device/Default
|
||||||
PROFILES := Default
|
PROFILES := Default
|
||||||
DEVICE_DTS := $(lastword $(subst _, ,$(1)))
|
DEVICE_DTS := $(lastword $(subst _, ,$(1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user