mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 18:50:49 +02:00
ar71xx: image: add a few helper functions
These functions will be used to simplify the Makefile. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33237 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0f07b6e127
commit
15ae10b4f4
@ -23,6 +23,26 @@ define factoryname
|
||||
$(call imgname,$(1),$(2))-factory.bin
|
||||
endef
|
||||
|
||||
COMMA:=,
|
||||
|
||||
define mkcmdline
|
||||
$(if $(1),board=$(1) )$(if $(2),console=$(2)$(COMMA)$(3))
|
||||
endef
|
||||
|
||||
define SingleProfile
|
||||
define Image/Build/Profile/$(3)
|
||||
$$(call Image/Build/Template/$(2)/$$(1),$(1),$(4),$$(call mkcmdline,$(5),$(6),$(7)),$(8),$(9),$(10),$(11),$(12))
|
||||
endef
|
||||
endef
|
||||
|
||||
define MultiProfile
|
||||
define Image/Build/Profile/$(1)
|
||||
$(foreach p,$(2),
|
||||
$$(call Image/Build/Profile/$p,$$(1))
|
||||
)
|
||||
endef
|
||||
endef
|
||||
|
||||
LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
|
||||
|
||||
KDIR_TMP:=$(KDIR)/tmp
|
||||
|
Loading…
Reference in New Issue
Block a user