summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Homescu <ahomescu@google.com>2024-02-16 04:12:24 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2024-02-16 04:12:24 +0000
commit7f4c51b75d7c0b032da549c3b39387c6eb009dbb (patch)
treed0453328826c6da5ce1f8864830fcd75840ef41a
parent9e8a90dcbcfd49c9a94a53d13cff7fe1238052b2 (diff)
parentb49a63102288d1d74c5c3459f8648068674ecd19 (diff)
downloadgeneric-arm64-7f4c51b75d7c0b032da549c3b39387c6eb009dbb.tar.gz
project/qemu: Add new capstone header include directory am: b49a631022
Original change: https://android-review.googlesource.com/c/trusty/device/arm/generic-arm64/+/2751245 Change-Id: Ied4a6673497cf233d707c373b833c1c2232c4282 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--project/qemu-qemu-inc.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/project/qemu-qemu-inc.mk b/project/qemu-qemu-inc.mk
index 974ab50..3b04155 100644
--- a/project/qemu-qemu-inc.mk
+++ b/project/qemu-qemu-inc.mk
@@ -62,17 +62,20 @@ QEMU_AOSP_DISABLES := \
# Warnings which pollute the build output and which can make us miss
# warnings in non-external code that we should be paying attention to.
-QEMU_SUPPRESSED_WARNINGS := \
+QEMU_EXTRA_CFLAGS := \
-Wno-address-of-packed-member \
-Wno-format-truncation \
-Wno-stringop-truncation \
-Wno-array-bounds \
+# Newer capstone releases have the headers under include/capstone
+QEMU_EXTRA_CFLAGS += -I$(TRUSTY_TOP)/$(QEMU_ROOT)/capstone/include/capstone
+
$(QEMU_MAKEFILE): QEMU_ROOT:=$(QEMU_ROOT)
$(QEMU_MAKEFILE): QEMU_BUILD_BASE:=$(QEMU_BUILD_BASE)
$(QEMU_MAKEFILE): QEMU_TARGET:=$(QEMU_TARGET)
$(QEMU_MAKEFILE): QEMU_AOSP_DISABLES:=$(QEMU_AOSP_DISABLES)
-$(QEMU_MAKEFILE): QEMU_SUPPRESSED_WARNINGS:=$(QEMU_SUPPRESSED_WARNINGS)
+$(QEMU_MAKEFILE): QEMU_EXTRA_CFLAGS:=$(QEMU_EXTRA_CFLAGS)
$(QEMU_MAKEFILE):
mkdir -p $(QEMU_BUILD_BASE)
#--with-git=true sets the "git" program to /bin/true - it essentially disables git
@@ -82,7 +85,7 @@ $(QEMU_MAKEFILE):
# some hosts compiler will complain about stringop truncation.
cd $(QEMU_BUILD_BASE) && $(abspath $(QEMU_ROOT)/configure) \
--target-list=$(QEMU_TARGET) --with-git=true --disable-werror \
- --extra-cflags="$(QEMU_SUPPRESSED_WARNINGS)" \
+ --extra-cflags="$(QEMU_EXTRA_CFLAGS)" \
--disable-gcrypt --disable-vnc-png $(QEMU_AOSP_DISABLES) \
--python=$(BUILDTOOLS_BINDIR)/py3-cmd
@@ -97,4 +100,4 @@ QEMU_ARCH:=
QEMU_ROOT:=
QEMU_TARGET:=
QEMU_AOSP_DISABLES:=
-QEMU_SUPPRESSED_WARNINGS:= \ No newline at end of file
+QEMU_EXTRA_CFLAGS:=