Skip to content

Commit 3eb2094

Browse files
Bjarke Istrup Pedersengregkh
authored andcommitted
Adding makefile for tools/hv
Currently, there is no makefile for the Hyper-V tools. This patch adds the missing makefile, and adds it to the main tools makefile. Signed-off-by: Bjarke Istrup Pedersen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a7155f4 commit 3eb2094

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

tools/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ help:
77
@echo ' cgroup - cgroup tools'
88
@echo ' cpupower - a tool for all things x86 CPU power'
99
@echo ' firewire - the userspace part of nosy, an IEEE-1394 traffic sniffer'
10+
@echo ' hv - tools used when in Hyper-V clients'
1011
@echo ' lguest - a minimal 32-bit x86 hypervisor'
1112
@echo ' perf - Linux performance measurement and analysis tool'
1213
@echo ' selftests - various kernel selftests'
@@ -40,7 +41,7 @@ acpi: FORCE
4041
cpupower: FORCE
4142
$(call descend,power/$@)
4243

43-
cgroup firewire guest usb virtio vm net: FORCE
44+
cgroup firewire hv guest usb virtio vm net: FORCE
4445
$(call descend,$@)
4546

4647
libapikfs: FORCE
@@ -64,7 +65,7 @@ acpi_install:
6465
cpupower_install:
6566
$(call descend,power/$(@:_install=),install)
6667

67-
cgroup_install firewire_install lguest_install perf_install usb_install virtio_install vm_install net_install:
68+
cgroup_install firewire_install hv_install lguest_install perf_install usb_install virtio_install vm_install net_install:
6869
$(call descend,$(@:_install=),install)
6970

7071
selftests_install:
@@ -76,7 +77,7 @@ turbostat_install x86_energy_perf_policy_install:
7677
tmon_install:
7778
$(call descend,thermal/$(@:_install=),install)
7879

79-
install: acpi_install cgroup_install cpupower_install firewire_install lguest_install \
80+
install: acpi_install cgroup_install cpupower_install hv_install firewire_install lguest_install \
8081
perf_install selftests_install turbostat_install usb_install \
8182
virtio_install vm_install net_install x86_energy_perf_policy_install \
8283
tmon
@@ -87,7 +88,7 @@ acpi_clean:
8788
cpupower_clean:
8889
$(call descend,power/cpupower,clean)
8990

90-
cgroup_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
91+
cgroup_clean hv_clean firewire_clean lguest_clean usb_clean virtio_clean vm_clean net_clean:
9192
$(call descend,$(@:_clean=),clean)
9293

9394
libapikfs_clean:
@@ -105,7 +106,7 @@ turbostat_clean x86_energy_perf_policy_clean:
105106
tmon_clean:
106107
$(call descend,thermal/tmon,clean)
107108

108-
clean: acpi_clean cgroup_clean cpupower_clean firewire_clean lguest_clean \
109+
clean: acpi_clean cgroup_clean cpupower_clean hv_clean firewire_clean lguest_clean \
109110
perf_clean selftests_clean turbostat_clean usb_clean virtio_clean \
110111
vm_clean net_clean x86_energy_perf_policy_clean tmon_clean
111112

tools/hv/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Makefile for Hyper-V tools
2+
3+
CC = $(CROSS_COMPILE)gcc
4+
PTHREAD_LIBS = -lpthread
5+
WARNINGS = -Wall -Wextra
6+
CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)
7+
8+
all: hv_kvp_daemon hv_vss_daemon
9+
%: %.c
10+
$(CC) $(CFLAGS) -o $@ $^
11+
12+
clean:
13+
$(RM) hv_kvp_daemon hv_vss_daemon

0 commit comments

Comments
 (0)