mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ar71xx: image: add mtdpartsize macro
The new macro will be used to determine the firmware partition size from an MTD layout. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38117 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -31,6 +31,10 @@ define mkcmdline
|
||||
$(if $(1),board=$(1) )$(if $(2),console=$(2)$(COMMA)$(3))
|
||||
endef
|
||||
|
||||
define mtdpartsize
|
||||
$(shell echo $$((`echo '$(2)' | sed -e 's/.*[:$(COMMA)]\([0-9]*\)k[@]*[0-9a-zx]*($(1)).*/\1/'` * 1024)))
|
||||
endef
|
||||
|
||||
SINGLE_PROFILES:=
|
||||
|
||||
define SingleProfile
|
||||
|
||||
Reference in New Issue
Block a user