aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-03-28 16:42:57 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-03-28 16:53:27 +0200
commitf8ab9197d8e167f38486b8230dd73f47f8e19c1f (patch)
tree4822f8fcf9ad6cf642fb386b3ee866ba4763b6f1 /Android.mk
parent104c221f4a30be0245fcf6a4f0237d8ed8f4ed23 (diff)
downloadhardware_replicant_libsamsung-ipc-f8ab9197d8e167f38486b8230dd73f47f8e19c1f.tar.gz
hardware_replicant_libsamsung-ipc-f8ab9197d8e167f38486b8230dd73f47f8e19c1f.tar.bz2
hardware_replicant_libsamsung-ipc-f8ab9197d8e167f38486b8230dd73f47f8e19c1f.zip
Android.mk: enable to build libsamsung-ipc for all devices
For now -DIPC_DEVICE_NAME is only used to force to use a specific device driver instead of trying to find out automatically which driver to use. So with it all the drivers are still compiled in and there is only one string that changes between builds with different -DIPC_DEVICE_NAME. There are some advantages in being able to not use -DIPC_DEVICE_NAME: - If one day, only the relevant driver(s) are compiled with -DIPC_DEVICE_NAME, we would still be able to compile-test all the code by not setting -DIPC_DEVICE_NAME. - Not hardcoding the device name would be a good step toward having Android images that work on multiple devices. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 985b3b3..aef5ce8 100644
--- a/Android.mk
+++ b/Android.mk
@@ -113,9 +113,11 @@ libsamsung_ipc_local_c_includes := \
$(LOCAL_PATH)/samsung-ipc \
external/openssl/include
-libsamsung_local_cflags := \
- -DIPC_DEVICE_NAME=\"$(ipc_device_name)\" \
- -DDEBUG
+libsamsung_local_cflags := -DDEBUG
+
+ifneq ($(TARGET_DEVICE),)
+libsamsung_local_cflags += -DIPC_DEVICE_NAME=\"$(ipc_device_name)\"
+endif # ifneq ($(TARGET_DEVICE),)
libsamsung_ipc_local_shared_libraries := \
libutils \