ARM64: fix libxl build, do not include ../../xen/include

Do not include ../../xen/include/ to build libxl_arm_acpi.c: header
files clashing against default headers under /usr/include are present in
that directory.

Link only $(XEN_ROOT)/xen/include/acpi under tools/include instead.

Build tested on ARM64 and x86_64.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Stefano Stabellini authored and Wei Liu committed 2016-10-18 12:33:09 +01:00
1 parent 44a14c95e3
commit 9c635883de
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ xen/.dir:
ln -sf ../xen-sys/$(XEN_OS) xen/sys
ln -sf $(addprefix $(XEN_ROOT)/xen/include/xen/,libelf.h elfstructs.h) xen/libelf/
ln -s ../xen-foreign xen/foreign
ln -s $(XEN_ROOT)/xen/include/acpi acpi
touch $@
# Not xen/xsm as that clashes with link to
+1 -1
View File
@@ -96,7 +96,7 @@ dsdt_anycpu_arm.c:
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR)
libxl_arm_acpi.o: libxl_arm_acpi.c
$(CC) -c $(CFLAGS) -I../../xen/include/ -o $@ libxl_arm_acpi.c
$(CC) -c $(CFLAGS) -o $@ libxl_arm_acpi.c
else
LIBXL_OBJS-$(CONFIG_ARM) += libxl_arm_no_acpi.o
endif
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.