Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools: hv: Fix cross-compilation

Use the native ARCH only in case it is not set, this will allow the
cross-compilation where ARCH is explicitly set.

Additionally, simplify the ARCH check to build the fcopy daemon only
for x86 and x86_64.

Fixes: 82b0945ce2c2 ("tools: hv: Add new fcopy application based on uio driver")
Reported-by: Adrian Vladu <avladu@cloudbasesolutions.com>
Closes: https://lore.kernel.org/linux-hyperv/PR3PR09MB54119DB2FD76977C62D8DD6AB04D2@PR3PR09MB5411.eurprd09.prod.outlook.com/
Co-developed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Aditya Garg <gargaditya@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>

authored by

Aditya Garg and committed by
Wei Liu
ca5ee0e9 0d5acba6

+2 -2
+2 -2
tools/hv/Makefile
··· 2 2 # Makefile for Hyper-V tools 3 3 include ../scripts/Makefile.include 4 4 5 - ARCH := $(shell uname -m 2>/dev/null) 5 + ARCH ?= $(shell uname -m 2>/dev/null) 6 6 sbindir ?= /usr/sbin 7 7 libexecdir ?= /usr/libexec 8 8 sharedstatedir ?= /var/lib ··· 20 20 override CFLAGS += -Wno-address-of-packed-member 21 21 22 22 ALL_TARGETS := hv_kvp_daemon hv_vss_daemon 23 - ifneq ($(ARCH), aarch64) 23 + ifneq ($(filter x86_64 x86,$(ARCH)),) 24 24 ALL_TARGETS += hv_fcopy_uio_daemon 25 25 endif 26 26 ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))