blob: ea041a9e5e9179fa6bb1857611342336e4e09ffb (
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
@@ -19,7 +19,7 @@ LINUXINCLUDE := -I$(src)/../driver
KBUILD_CFLAGS := -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \
-Wall -Wextra -Wmissing-declarations -Wmissing-prototypes -Werror \
-DJAILHOUSE_VERSION=\"$(shell cat $(src)/../VERSION)\" $(EXTRA_CFLAGS)
-LDFLAGS :=
+
GCOV_PROFILE := n
BINARIES := jailhouse
@@ -57,7 +57,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
@@ -68,10 +68,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 $@
install-bin: $(BINARIES) $(DESTDIR)$(sbindir)
$(INSTALL_PROGRAM) $^
|