blob: e2b170e1464b2050d1faf4573024f912f5eb2ef3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Index: git/tools/Makefile
===================================================================
--- git.orig/tools/Makefile
+++ git/tools/Makefile
@@ -23,7 +23,7 @@ KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$
-D__LINUX_COMPILER_TYPES_H \
-DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS)
# prior to 4.19
-LDFLAGS :=
+#LDFLAGS :=
# since 4.19
KBUILD_LDFLAGS :=
@@ -101,7 +101,7 @@ endef
targets += jailhouse.o
$(obj)/jailhouse: $(obj)/jailhouse.o
- $(call if_changed,ld)
+ $(LD) $(LDFLAGS) -o $@ $^
CFLAGS_jailhouse-gcov-extract.o := -I$(src)/../hypervisor/include \
-I$(src)/../hypervisor/arch/$(SRCARCH)/include
@@ -112,10 +112,11 @@ targets += jailhouse-gcov-extract.o
always += jailhouse-gcov-extract
$(obj)/jailhouse-gcov-extract: $(obj)/jailhouse-gcov-extract.o
- $(call if_changed,ld)
+ $(LD) $(LDFLAGS) -o $@ $^
$(obj)/jailhouse-config-collect: $(src)/jailhouse-config-create $(src)/jailhouse-config-collect.tmpl
- $(call if_changed,gen_collect)
+ $< -g $@; \
+ chmod +x $@
targets += $(MAN8_PAGES)
always += $(MAN8_PAGES)
|