diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-28 16:42:57 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2022-03-28 16:53:27 +0200 |
commit | f8ab9197d8e167f38486b8230dd73f47f8e19c1f (patch) | |
tree | 4822f8fcf9ad6cf642fb386b3ee866ba4763b6f1 /Android.mk | |
parent | 104c221f4a30be0245fcf6a4f0237d8ed8f4ed23 (diff) | |
download | hardware_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.mk | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 \ |