Skip to contentSkip to conversation

drm_hwcomposer: Mark tests as vendor, fix build

PATCH In review Alistair Strachan 2 participants 2 messages May 2, 2018 – May 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm_hwcomposer: Mark tests as vendor, fix build

After commit 94bb596, the tests for drm_hwcomposer no longer build, because the build system detects that they are linking other vendor modules (but installing themselves elsewhere).

This change also adds the libhardware include path explicitly, as the implicit include of hardware/libhardware/include is going away.

Cc John Stultz <[email protected]>
Cc Rob Herring <[email protected]>
Cc Sumit Semwal <[email protected]>
Cc Sean Paul <[email protected]>
Cc Robert Foss <[email protected]>
---
 tests/Android.mk | 2 ++
 1 file changed, 2 insertions(+)
tests/Android.mk +2 -0
index 3b9e0a2..c6a0afa 100644
@@ -7,6 +7,8 @@ LOCAL_SRC_FILES := \
 	worker_test.cpp
 
 LOCAL_MODULE := hwc-drm-tests
+LOCAL_VENDOR_MODULE := true
+LOCAL_HEADER_LIBRARIES := libhardware_headers
 LOCAL_STATIC_LIBRARIES := libdrmhwc_utils
 LOCAL_SHARED_LIBRARIES := hwcomposer.drm
 LOCAL_C_INCLUDES := external/drm_hwcomposer
Signature · 6 lines
2.17.0.441.gb46fe60e1d-goog

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Alistair Strachan

After commit 94bb596, the tests for drm_hwcomposer no longer build, because the build system detects that they are linking other vendor modules (but installing themselves elsewhere).

This change also adds the libhardware include path explicitly, as the implicit include of hardware/libhardware/include is going away.

Quoted 6 lines
Cc John Stultz <[email protected]>
Cc Rob Herring <[email protected]>
Cc Sumit Semwal <[email protected]>
Cc Sean Paul <[email protected]>
Cc Robert Foss <[email protected]>

Thanks for catching this!

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel