Changeset 24189


Ignore:
Timestamp:
2010-11-28T23:04:40+01:00 (7 years ago)
Author:
cshore
Message:

bcm63xx: Add board id override fixup.

Add a fixup for the kernel to check the bcm tag of the image for a boardid in
the information1 field, and use that instead of the supplied one by cfe. This
is triggered by a + at the start of the information1 field.

Also modify the image generation to generate apropriately tagged images.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

Location:
trunk/target/linux/brcm63xx
Files:
1 added
1 edited

Legend:

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

    r24188 r24189  
    3838                --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \ 
    3939                --load-addr $(LOADADDR) --rsa-signature "$(5)" \ 
    40                 --info1 "$(call Image/LimitName16,$(4))" --info2 $(1) \ 
     40                --info1 "-$(call Image/LimitName16,$(4))" --info2 $(1) \ 
     41                $(6) $(7) $(8) $(9) 
     42endef 
     43 
     44define Image/Build/CFEFIXUP 
     45        # Generate the tagged image 
     46        $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ 
     47                --output $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin \ 
     48                --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \ 
     49                --load-addr $(LOADADDR) --rsa-signature "$(5)" \ 
     50                --info1 "+$(call Image/LimitName16,$(4))" --info2 $(1) \ 
    4151                $(6) $(7) $(8) $(9) 
    4252endef 
     
    4959                --load-addr $(LOADADDR) --tag-version 8 \ 
    5060                --signature2 IMAGE --block-size 0x20000 \ 
    51                 --image-offset $(4) --info1 "$(call Image/LimitName16,$(5))" --info2 $(1) 
     61                --image-offset $(4) --info1 "-$(call Image/LimitName16,$(5))" --info2 $(1) 
    5262endef 
    5363 
     
    5868                --boardid $(2) --chipid $(3) --entry $(LOADADDR) \ 
    5969                --load-addr $(LOADADDR) --block-size 0x20000 \ 
    60                 --image-offset $(4) --info1 "$(call Image/LimitName16,$(5))" --info2 $(1) 
     70                --image-offset $(4) --info1 "-$(call Image/LimitName16,$(5))" --info2 $(1) 
    6171endef 
    6272 
Note: See TracChangeset for help on using the changeset viewer.