Changeset 32945


Ignore:
Timestamp:
2012-08-02T11:54:33+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: image: allow to use board specific code in the lzma-loader

Location:
trunk/target/linux/ar71xx/image
Files:
3 edited

Legend:

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

    r32934 r32945  
    114114        $(LOADER_MAKE) LOADER=loader-$(1).$(2) KERNEL_CMDLINE="$(3)"\ 
    115115                LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \ 
    116                 LOADER_DATA="$(KDIR)/vmlinux.bin.lzma" \ 
     116                LOADER_DATA="$(KDIR)/vmlinux.bin.lzma" BOARD="$(1)" \ 
    117117                compile loader.$(2) 
    118118endef 
     
    122122        $(LOADER_MAKE) LOADER=loader-$(1).$(2) KERNEL_CMDLINE="$(3)" \ 
    123123                LZMA_TEXT_START=0x80a00000 LOADADDR=0x80060000 \ 
    124                 FLASH_OFFS=$(4) FLASH_MAX=$(5) \ 
     124                BOARD="$(1)" FLASH_OFFS=$(4) FLASH_MAX=$(5) \ 
    125125                compile loader.$(2) 
    126126endef 
  • trunk/target/linux/ar71xx/image/lzma-loader/Makefile

    r29443 r32945  
    1616FLASH_OFFS      := 
    1717FLASH_MAX       := 
     18BOARD           := 
    1819 
    1920ifeq ($(TARGET_DIR),) 
     
    4142                FLASH_OFFS=$(FLASH_OFFS) \ 
    4243                FLASH_MAX=$(FLASH_MAX) \ 
     44                BOARD="$(BOARD)" \ 
    4345                clean all 
    4446 
  • trunk/target/linux/ar71xx/image/lzma-loader/src/Makefile

    r29443 r32945  
    1919LZMA_TEXT_START := 0x80a00000 
    2020LOADER_DATA     := 
    21 CONFIG_BOARD    := 
     21BOARD           := 
    2222FLASH_OFFS      := 
    2323FLASH_MAX       := 
     
    6464endif 
    6565 
     66BOARD_DEF := $(shell echo $(strip $(BOARD)) | tr a-z A-Z | tr - _) 
     67ifneq ($(BOARD_DEF),) 
     68CFLAGS          += -DCONFIG_BOARD_$(BOARD_DEF) 
     69endif 
     70 
    6671all: loader.bin 
    6772 
Note: See TracChangeset for help on using the changeset viewer.