Changeset 38117


Ignore:
Timestamp:
2013-09-22T11:11:25+02:00 (4 years ago)
Author:
juhosg
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/image/Makefile

    r38116 r38117  
    3030define mkcmdline 
    3131$(if $(1),board=$(1) )$(if $(2),console=$(2)$(COMMA)$(3)) 
     32endef 
     33 
     34define mtdpartsize 
     35$(shell echo $$((`echo '$(2)' | sed -e 's/.*[:$(COMMA)]\([0-9]*\)k[@]*[0-9a-zx]*($(1)).*/\1/'` * 1024))) 
    3236endef 
    3337 
Note: See TracChangeset for help on using the changeset viewer.