mvebu: add support for the Linksys WRT3200ACM (Rango)
[openwrt-github/.git] / target / linux / generic / image / relocate / Makefile
index 500423b63b27ce631e9c122fccf346715fd49e22..62e3b32ee2e40dac429d16da4513fb4569c7de27 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile for the kernel relocation stub for MIPS devices
 #
 # Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
-# Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
+# Copyright (C) 2015 Felix Fietkau <nbd@nbd.name>
 #
 # Some parts of this file was based on the OpenWrt specific lzma-loader
 # for the BCM47xx and ADM5120 based boards:
@@ -22,13 +22,15 @@ BOARD               :=
 FLASH_OFFS     :=
 FLASH_MAX      :=
 PLATFORM       :=
+CACHELINE_SIZE := 32
 
 CC             := $(CROSS_COMPILE)gcc
 LD             := $(CROSS_COMPILE)ld
 OBJCOPY                := $(CROSS_COMPILE)objcopy
 OBJDUMP                := $(CROSS_COMPILE)objdump
 
-BIN_FLAGS      := -O binary -R .reginfo -R .note -R .comment -R .mdebug -S
+BIN_FLAGS      := -O binary -R .reginfo -R .note -R .comment -R .mdebug \
+                  -R .MIPS.abiflags -S
 
 CFLAGS         = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
                  -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
@@ -36,7 +38,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__