summaryrefslogtreecommitdiff
path: root/openwrt/package/linux/kernel-patches/003-arch_mips_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-26 10:33:32 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-03-26 10:33:32 +0000
commitc7bb195f082128a83997ded060ed676d81014f73 (patch)
treeb1a6b2b8bf2ee89d8a00610f25347828df4846fb /openwrt/package/linux/kernel-patches/003-arch_mips_Makefile
parent4118e1fc1868cd8111bfc87fa62bcf2602f4b494 (diff)
downloadmtk-20170518-c7bb195f082128a83997ded060ed676d81014f73.zip
mtk-20170518-c7bb195f082128a83997ded060ed676d81014f73.tar.gz
mtk-20170518-c7bb195f082128a83997ded060ed676d81014f73.tar.bz2
uncompress patches, requested by Kaloz
SVN-Revision: 460
Diffstat (limited to 'openwrt/package/linux/kernel-patches/003-arch_mips_Makefile')
-rw-r--r--openwrt/package/linux/kernel-patches/003-arch_mips_Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/openwrt/package/linux/kernel-patches/003-arch_mips_Makefile b/openwrt/package/linux/kernel-patches/003-arch_mips_Makefile
new file mode 100644
index 0000000..8e4c4f5
--- /dev/null
+++ b/openwrt/package/linux/kernel-patches/003-arch_mips_Makefile
@@ -0,0 +1,42 @@
+--- linux-mips-cvs/arch/mips/Makefile 2005-01-31 12:59:28.000000000 +0100
++++ linux-broadcom/arch/mips/Makefile 2005-01-31 13:13:14.000000000 +0100
+@@ -47,9 +47,9 @@
+ GCCFLAGS += -G 0 -mno-abicalls -fno-pic -pipe
+ GCCFLAGS += $(call check_gcc, -finline-limit=100000,)
+ LINKFLAGS += -G 0 -static -n
+-MODFLAGS += -mlong-calls
++MODFLAGS += -mlong-calls -fno-common
+
+-ifdef CONFIG_DEBUG_INFO
++ifdef CONFIG_REMOTE_DEBUG
+ GCCFLAGS += -g
+ ifdef CONFIG_SB1XXX_CORELIS
+ GCCFLAGS += -mno-sched-prolog -fno-omit-frame-pointer
+@@ -174,6 +174,7 @@
+ endif
+
+ AFLAGS += $(GCCFLAGS)
++ASFLAGS += $(GCCFLAGS)
+ CFLAGS += $(GCCFLAGS)
+
+ LD += -m $(ld-emul)
+@@ -727,6 +728,19 @@
+ endif
+
+ #
++# Broadcom BCM947XX variants
++#
++ifdef CONFIG_BCM947XX
++LIBS += arch/mips/brcm-boards/generic/brcm.o arch/mips/brcm-boards/bcm947xx/bcm947xx.o
++SUBDIRS += arch/mips/brcm-boards/generic arch/mips/brcm-boards/bcm947xx
++LOADADDR := 0x80001000
++
++zImage: vmlinux
++ $(MAKE) -C arch/$(ARCH)/brcm-boards/bcm947xx/compressed
++export LOADADDR
++endif
++
++#
+ # Choosing incompatible machines durings configuration will result in
+ # error messages during linking. Select a default linkscript if
+ # none has been choosen above.