summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-10-11 17:46:10 -0500
committerRob Herring <[email protected]>2017-10-12 09:06:09 -0500
commit137b32b81500e243a91ea71dc699b38bf2567624 (patch)
tree4ebc6d07fc4e722c3c081853028aedd5345844ae
parent78ade659569ee6fe9bd244170956139f19dd8c6c (diff)
Android: disable i9x5 drivers on non-x86 builds
The i965 driver has become dependent on x86 specific compiler builtin functions, so ensure it's disabled for non-x86 builds. Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Rob Herring <[email protected]>
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 9dc0bbd1d7d..72a9b04be1e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -75,6 +75,10 @@ $(foreach d, $(BOARD_GPU_DRIVERS), \
MESA_BUILD_CLASSIC := $(strip $(foreach d, $(BOARD_GPU_DRIVERS), $(patsubst $(d).%,%, $(filter $(d).%, $(classic_drivers)))))
MESA_BUILD_GALLIUM := $(strip $(foreach d, $(BOARD_GPU_DRIVERS), $(patsubst $(d).%,%, $(filter $(d).%, $(gallium_drivers)))))
endif
+ifeq ($(filter x86%,$(TARGET_ARCH)),)
+ MESA_BUILD_CLASSIC :=
+endif
+
$(foreach d, $(MESA_BUILD_CLASSIC) $(MESA_BUILD_GALLIUM), $(eval $(d) := true))
# host and target must be the same arch to generate matypes.h