generic: relocate: make the cacheline size configurable
Different targets have different cache line sizes. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45163
This commit is contained in:
		| @@ -22,6 +22,7 @@ BOARD		:= | |||||||
| FLASH_OFFS	:= | FLASH_OFFS	:= | ||||||
| FLASH_MAX	:= | FLASH_MAX	:= | ||||||
| PLATFORM	:= | PLATFORM	:= | ||||||
|  | CACHELINE_SIZE	:= 32 | ||||||
|  |  | ||||||
| CC		:= $(CROSS_COMPILE)gcc | CC		:= $(CROSS_COMPILE)gcc | ||||||
| LD		:= $(CROSS_COMPILE)ld | LD		:= $(CROSS_COMPILE)ld | ||||||
| @@ -36,7 +37,8 @@ CFLAGS		= -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \ | |||||||
| 		  -fno-common -ffreestanding -fhonour-copts \ | 		  -fno-common -ffreestanding -fhonour-copts \ | ||||||
| 		  -mabi=32 -march=mips32r2 \ | 		  -mabi=32 -march=mips32r2 \ | ||||||
| 		  -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap \ | 		  -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__ | ASFLAGS		= $(CFLAGS) -D__ASSEMBLY__ | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonas Gorski
					Jonas Gorski