Ver código fonte

generic: relocate: make the cacheline size configurable

Different targets have different cache line sizes.

Signed-off-by: Jonas Gorski <[email protected]>

SVN-Revision: 45163
Jonas Gorski 10 anos atrás
pai
commit
8353a3bd45
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      target/linux/generic/image/relocate/Makefile

+ 3 - 1
target/linux/generic/image/relocate/Makefile

@@ -22,6 +22,7 @@ BOARD		:=
 FLASH_OFFS	:=
 FLASH_MAX	:=
 PLATFORM	:=
+CACHELINE_SIZE	:= 32
 
 CC		:= $(CROSS_COMPILE)gcc
 LD		:= $(CROSS_COMPILE)ld
@@ -36,7 +37,8 @@ CFLAGS		= -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
 		  -fno-common -ffreestanding -fhonour-copts \
 		  -mabi=32 -march=mips32r2 \
 		  -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap \
-		  -DCONFIG_CACHELINE_SIZE=32 -DKERNEL_ADDR=$(KERNEL_ADDR)
+		  -DCONFIG_CACHELINE_SIZE=$(CACHELINE_SIZE) \
+		  -DKERNEL_ADDR=$(KERNEL_ADDR)
 
 ASFLAGS		= $(CFLAGS) -D__ASSEMBLY__