Android: Fix vc4 build since XML changes.
authorRob Herring <robh@kernel.org>
Wed, 5 Jul 2017 18:19:58 +0000 (11:19 -0700)
committerRob Herring <robh@kernel.org>
Wed, 12 Jul 2017 21:47:10 +0000 (16:47 -0500)
Since commit 7f80a9ff1312 ("vc4: Introduce XML-based packet header
generation like Intel's."), the vc4 build on Android is broken:

out/target/product/linaro_x86_64/gen/STATIC_LIBRARIES/libmesa_broadcom_genxml_intermediates/broadcom/cle/v3d_packet_v21_pack.h:12:10: fatal error: 'v3d_packet_helpers.h' file not found
external/mesa3d/src/gallium/drivers/vc4/vc4_cl_dump.c:28:10: fatal error: 'vc4_packet.h' file not found

The path of the generated header needs to be fixed since we build out of
tree.

Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Rob Herring <robh@kernel.org>
src/broadcom/Android.genxml.mk
src/gallium/drivers/vc4/vc4_cl_dump.c

index df44b2ec0b79a713ebf85aac85e9db2444254ecb..a504326135c52118dd042c9cdcc10ec24c777ecf 100644 (file)
@@ -37,7 +37,7 @@ $(intermediates)/dummy.c:
        $(hide) touch $@
 
 # This is the list of auto-generated files headers
-LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, $(BROADCOM_GENXML_GENERATED_FILES))
+LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/broadcom/, $(BROADCOM_GENXML_GENERATED_FILES))
 
 define header-gen
        @mkdir -p $(dir $@)
@@ -45,13 +45,13 @@ define header-gen
        $(hide) $(PRIVATE_SCRIPT) $(PRIVATE_SCRIPT_FLAGS) $(PRIVATE_XML) > $@
 endef
 
-$(intermediates)/cle/v3d_packet_v21_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(LOCAL_PATH)/cle/gen_pack_header.py
-$(intermediates)/cle/v3d_packet_v21_pack.h: PRIVATE_XML := $(LOCAL_PATH)/cle/v3d_packet_v21.xml
-$(intermediates)/cle/v3d_packet_v21_pack.h: $(LOCAL_PATH)/cle/v3d_packet_v21.xml $(LOCAL_PATH)/cle/gen_pack_header.py
+$(intermediates)/broadcom/cle/v3d_packet_v21_pack.h: PRIVATE_SCRIPT := $(MESA_PYTHON2) $(LOCAL_PATH)/cle/gen_pack_header.py
+$(intermediates)/broadcom/cle/v3d_packet_v21_pack.h: PRIVATE_XML := $(LOCAL_PATH)/cle/v3d_packet_v21.xml
+$(intermediates)/broadcom/cle/v3d_packet_v21_pack.h: $(LOCAL_PATH)/cle/v3d_packet_v21.xml $(LOCAL_PATH)/cle/gen_pack_header.py
        $(call header-gen)
 
 LOCAL_EXPORT_C_INCLUDE_DIRS := \
-       $(MESA_TOP)/src/broadcom \
+       $(MESA_TOP)/src/broadcom/cle \
        $(intermediates)
 
 include $(MESA_COMMON_MK)
index cbe35b0208e7d899adf11ea9d3e9af8221f95045..b14cf387d1e489946104ad1d4aa78ea57c0eabdf 100644 (file)
@@ -25,7 +25,7 @@
 #include "util/u_prim.h"
 #include "util/macros.h"
 #include "vc4_cl_dump.h"
-#include "vc4_packet.h"
+#include "kernel/vc4_packet.h"
 
 #define __gen_user_data void
 #define __gen_address_type uint32_t