Changeset 36438


Ignore:
Timestamp:
2013-04-25T21:03:13+02:00 (5 years ago)
Author:
blogic
Message:

lantiq: add lzma-loader source

Signed-off-by: John Crispin <blogic@…>

Location:
trunk/target/linux/lantiq/image/lzma-loader
Files:
7 added
19 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/image/lzma-loader/Makefile

    r36437 r36438  
    4343                FLASH_MAX=$(FLASH_MAX) \ 
    4444                BOARD="$(BOARD)" \ 
     45                PLATFORM="lantiq" \ 
    4546                clean all 
    4647 
  • trunk/target/linux/lantiq/image/lzma-loader/src/Makefile

    r36437 r36438  
    2222FLASH_OFFS      := 
    2323FLASH_MAX       := 
     24PLATFORM        := 
    2425 
    2526CC              := $(CROSS_COMPILE)gcc 
     
    3637                  -mabi=32 -march=mips32r2 \ 
    3738                  -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap 
    38 CFLAGS          += -D_LZMA_PROB32 
     39CFLAGS          += -D_LZMA_PROB32 -DARCH=$(PLATFORM) 
    3940 
    4041ASFLAGS         = $(CFLAGS) -D__ASSEMBLY__ 
     
    4546O_FORMAT        = $(shell $(OBJDUMP) -i | head -2 | grep elf32) 
    4647 
    47 OBJECTS         := head.o loader.o cache.o board.o printf.o LzmaDecode.o 
     48OBJECTS         := head.o loader.o cache.o board-$(PLATFORM).o printf.o LzmaDecode.o 
     49 
     50include $(PLATFORM).mk 
     51CFLAGS+=$(CACHE_FLAGS) 
     52ASFLAGS+=$(CACHE_FLAGS) 
    4853 
    4954ifneq ($(strip $(LOADER_DATA)),) 
  • trunk/target/linux/lantiq/image/lzma-loader/src/config.h

    r36437 r36438  
    1313#define _CONFIG_H_ 
    1414 
    15 #define CONFIG_ICACHE_SIZE      (32 * 1024) 
    16 #define CONFIG_DCACHE_SIZE      (64 * 1024) 
    17 #define CONFIG_CACHELINE_SIZE   32 
    18  
    1915#ifndef CONFIG_FLASH_OFFS 
    2016#define CONFIG_FLASH_OFFS       0 
  • trunk/target/linux/lantiq/image/lzma-loader/src/loader.c

    r36437 r36438  
    220220        board_init(); 
    221221 
    222         printf("\n\nOpenWrt kernel loader for AR7XXX/AR9XXX\n"); 
     222        printf("\n\nOpenWrt kernel loader for MIPS based SoC\n"); 
    223223        printf("Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>\n"); 
    224224 
Note: See TracChangeset for help on using the changeset viewer.