summaryrefslogtreecommitdiffstats
path: root/hardware.c
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2014-02-16 10:07:15 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2014-02-16 10:07:15 -0800
commit86389d10801bce4bff457f602f1cb686df513dfb (patch)
tree9fab5797fb5f8979cabe610acb5eb3624d449621 /hardware.c
parentf77bd7d005e27364e233c92ac7f6c06a18d1f128 (diff)
downloadhardware_libhardware-86389d10801bce4bff457f602f1cb686df513dfb.tar.gz
hardware_libhardware-86389d10801bce4bff457f602f1cb686df513dfb.tar.bz2
hardware_libhardware-86389d10801bce4bff457f602f1cb686df513dfb.zip
Use /(vendor|system)/lib64/hw for 64-bit HAL libraries
Change-Id: Ib905e079b1e88977fb3408671301904c58f35d3c
Diffstat (limited to 'hardware.c')
-rw-r--r--hardware.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hardware.c b/hardware.c
index f835fda..6713ea0 100644
--- a/hardware.c
+++ b/hardware.c
@@ -28,8 +28,13 @@
#include <utils/Log.h>
/** Base path of the hal modules */
+#if defined(__LP64__)
+#define HAL_LIBRARY_PATH1 "/system/lib64/hw"
+#define HAL_LIBRARY_PATH2 "/vendor/lib64/hw"
+#else
#define HAL_LIBRARY_PATH1 "/system/lib/hw"
#define HAL_LIBRARY_PATH2 "/vendor/lib/hw"
+#endif
/**
* There are a set of variant filename for modules. The form of the filename