2ecf89dde0ede736e3e709980e8eef313cfa45ee
[openwrt/openwrt.git] / target / linux / generic-2.6 / patches-2.6.31 / 032-mips_vmlinux_lds.patch
1 --- a/arch/mips/kernel/Makefile
2 +++ b/arch/mips/kernel/Makefile
3 @@ -2,6 +2,8 @@
4 # Makefile for the Linux/MIPS kernel.
5 #
6
7 +CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) $(EXTRA_LDSFLAGS)
8 +
9 extra-y := head.o init_task.o vmlinux.lds
10
11 obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
12 --- a/arch/mips/kernel/vmlinux.lds.S
13 +++ b/arch/mips/kernel/vmlinux.lds.S
14 @@ -10,15 +10,15 @@ PHDRS {
15 note PT_NOTE FLAGS(4); /* R__ */
16 }
17
18 -ifdef CONFIG_32BIT
19 - ifdef CONFIG_CPU_LITTLE_ENDIAN
20 +#ifdef CONFIG_32BIT
21 + #ifdef CONFIG_CPU_LITTLE_ENDIAN
22 jiffies = jiffies_64;
23 - else
24 + #else
25 jiffies = jiffies_64 + 4;
26 - endif
27 -else
28 + #endif
29 +#else
30 jiffies = jiffies_64;
31 -endif
32 +#endif
33
34 SECTIONS
35 {