Root/package/uboot-ifxmips/patches/110-compile_fix.patch

1--- a/cpu/mips/Makefile
2+++ b/cpu/mips/Makefile
3@@ -36,6 +36,9 @@ START := $(addprefix $(obj),$(START))
4 
5 all: $(obj).depend $(START) $(LIB)
6 
7+start.o: start.S
8+ $(CC) $(AFLAGS) -fPIC -c -o $@ $<
9+
10 $(LIB): $(OBJS)
11     $(AR) $(ARFLAGS) $@ $(OBJS)
12 
13--- a/Makefile
14+++ b/Makefile
15@@ -185,8 +185,8 @@ include $(TOPDIR)/config.mk
16 OBJS = cpu/$(CPU)/start.o
17 OBJS_BOOTSTRAP = cpu/$(CPU)/start_bootstrap.o
18 
19-cpu/$(CPU)/start_bootstrap.S: cpu/$(CPU)/start.S
20- ln -s start.S cpu/$(CPU)/start_bootstrap.S
21+cpu/$(CPU)/start_bootstrap.o: cpu/$(CPU)/start.S
22+ $(CC) $(AFLAGS) -fPIC -DCFG_BOOTSTRAP_CODE -c -o $@ $<
23 
24 ifeq ($(CPU),i386)
25 OBJS += cpu/$(CPU)/start16.o
26

Archive Download this file



interactive