summaryrefslogtreecommitdiffstats
path: root/Android.common.mk
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-09-15 08:50:09 -0500
committerRob Herring <[email protected]>2017-10-10 21:37:16 -0500
commitc3f75d483c72d4ceb22d32561f8d08bf3e0c8a0b (patch)
tree583ec64285c1d2c2cd3979d89260036e3df3b801 /Android.common.mk
parent6f5abf31466aedd63234aa318f8d2d0e4cb35570 (diff)
Android: move libraries to /vendor
As part of Treble project in Android O, all the device specific files have to be located in a separate vendor partition. This is done by setting LOCAL_PROPRIETARY_MODULE (the name is misleading). This change will not break existing platforms without a vendor partition as it will just move files to /system/vendor. Reviewed-by: Tapani Pälli <[email protected]> Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 483f6c5be2e..5671c1c1a59 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -97,8 +97,9 @@ LOCAL_CFLAGS += -DHAVE_LIBDRM
LOCAL_SHARED_LIBRARIES += libdrm
endif
-LOCAL_CFLAGS_32 += -DDEFAULT_DRIVER_DIR=\"/system/lib/$(MESA_DRI_MODULE_REL_PATH)\"
-LOCAL_CFLAGS_64 += -DDEFAULT_DRIVER_DIR=\"/system/lib64/$(MESA_DRI_MODULE_REL_PATH)\"
+LOCAL_CFLAGS_32 += -DDEFAULT_DRIVER_DIR=\"/vendor/lib/$(MESA_DRI_MODULE_REL_PATH)\"
+LOCAL_CFLAGS_64 += -DDEFAULT_DRIVER_DIR=\"/vendor/lib64/$(MESA_DRI_MODULE_REL_PATH)\"
+LOCAL_PROPRIETARY_MODULE := true
# uncomment to keep the debug symbols
#LOCAL_STRIP_MODULE := false