-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.patch
24 lines (22 loc) · 913 Bytes
/
Makefile.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index baaa2fbe4d..1b1ac155ad 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -63,7 +63,9 @@ LIBCOBJS = stubs.o
LIBOBJS = $(addprefix $(obj),$(LIBAOBJS) $(LIBCOBJS))
SRCS := $(COBJS:.o=.c) $(LIBCOBJS:.o=.c) $(LIBAOBJS:.o=.S)
-OBJS := $(addprefix $(obj),$(COBJS))
+
+CACHE_OBJS := /build/Caraboot-ipq/arch/arm/cpu/armv7/cache_v7.o
+OBJS := $(addprefix $(obj),$(COBJS)) $(CACHE_OBJS)
ELF := $(addprefix $(obj),$(ELF))
BIN := $(addprefix $(obj),$(BIN))
SREC := $(addprefix $(obj),$(SREC))
@@ -97,7 +99,7 @@ $(LIB): $(obj).depend $(LIBOBJS)
$(ELF):
$(obj)%: $(obj)%.o $(LIB)
$(LD) $(LDFLAGS) -g -Ttext $(CONFIG_STANDALONE_LOAD_ADDR) \
- -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \
+ -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) $(CACHE_OBJS) \
-L$(gcclibdir) -lgcc
$(SREC):