Changeset 234

Show
Ignore:
Timestamp:
09/24/08 00:15:47 (2 months ago)
Author:
jcrouse
Message:

buildrom: Add script to automatically pad ROMs

Many ROMs may need to be padded before use. This script tries to do
this somewhat automatically. If the platform needs the payload to be
padded to a power of 2, then it should set PAYLOAD_DOPAD to '-p'.
Otherwise, the script behaves as it normally does.

Signed-off-by: Jordan Crouse <jordan.crouse@…>
Acked-by: Ward Vandewege <ward@…>

Location:
buildrom-devel
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • buildrom-devel/config/platforms/dbm690t.conf

    r232 r234  
    5252CBV2_TAG=3590 
    5353 
     54# Tell construct-rom.sh to pad the ROM to a power of 2 
     55PLATFORM_DOPAD := -p 
     56 
    5457# FILO configuration 
    5558 
  • buildrom-devel/config/platforms/platforms.conf

    r229 r234  
    66STRIP=strip 
    77AS=as 
     8 
     9# Each individual platform needs to decide if they want to pad the 
     10# ROM or not 
     11 
     12PLATFORM_DOPAD := 
    813 
    914##Include the correct platform configuration 
  • buildrom-devel/packages/coreboot-v2/coreboot.inc

    r198 r234  
    151151$(OUTPUT_DIR)/$(TARGET_ROM): $(CBV2_COMPONENTS) 
    152152        @ mkdir -p $(OUTPUT_DIR) 
    153         @ cat $(CBV2_COMPONENTS) > $@ 
     153        @ $(BIN_DIR)/construct-rom.sh $(PLATFORM_DOPAD) $(CBV2_COMPONENTS) > $@ 
    154154 
    155155generic-coreboot: $(OUTPUT_DIR)/$(TARGET_ROM)