Changeset 24118


Ignore:
Timestamp:
2010-11-23T21:17:08+01:00 (5 years ago)
Author:
cshore
Message:

[brcm63xx] image: Limited image name put into the info1 field to 16 characters and eliminted the OpenWRT revision. This makes using the image (router) name as the board name possible, so that boards with same real boardid but different GPIOs can be detected and the correct GPIOs used.

File:
1 edited

Legend:

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

    r24040 r24118  
    2828endef 
    2929 
     30define Image/LimitName16 
     31        $(shell expr substr $(1) 1 16) 
     32endef 
     33 
    3034define Image/Build/CFE 
    3135        # Generate the tagged image 
     
    3438                --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \ 
    3539                --load-addr $(LOADADDR) --rsa-signature "$(5)" \ 
    36                 --info1 "$(4) $(REVISION)" --info2 $(1) \ 
     40                --info1 "$(call Image/LimitName16,$(4))" --info2 $(1) \ 
    3741                $(6) $(7) $(8) $(9) 
    3842endef 
     
    4549                --load-addr $(LOADADDR) --tag-version 8 \ 
    4650                --signature2 IMAGE --block-size 0x20000 \ 
    47                 --image-offset $(4) --info1 "$(5) $(REVISION)" --info2 $(1) 
     51                --image-offset $(4) --info1 "$(call Image/LimitName16,$(5))" --info2 $(1) 
    4852endef 
    4953 
     
    5458                --boardid $(2) --chipid $(3) --entry $(LOADADDR) \ 
    5559                --load-addr $(LOADADDR) --block-size 0x20000 \ 
    56                 --image-offset $(4) --info1 "$(5) $(REVISION)" --info2 $(1) 
     60                --image-offset $(4) --info1 "$(call Image/LimitName16,$(5))" --info2 $(1) 
    5761endef 
    5862 
     
    110114        $(call Image/Build/CFE,$(1),96345GW2,6345,96345GW2-generic) 
    111115        $(call Image/Build/CFE,$(1),96345GW2,6345,96348GW2-bc221,,--layoutver 5) 
    112         $(call Image/Build/CFE,$(1),96345GW2,6345,92345GW2-revision,OpenWRT-$(REVISION)) 
     116        $(call Image/Build/CFE,$(1),96345GW2,6345,92345GW2-rev,OpenWRT-$(REVISION)) 
    113117        $(call Image/Build/CFE,$(1),96348GW,6348,96348GW-generic,,) 
    114118        $(call Image/Build/CFE,$(1),96348GW,6348,96348GW-bc221,,--layoutver 5) 
Note: See TracChangeset for help on using the changeset viewer.