aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-24 21:26:27 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-07-24 21:42:09 +0200
commitde952de91dfd883cee3283e19197b00aaf18092c (patch)
treece31e8053bd4e78612179dcd982fd9c757be25e2
parent73aa86f31bb004c48c5250ea43cca9ed9d51cb17 (diff)
downloadhardware_replicant_libsamsung-ipc-de952de91dfd883cee3283e19197b00aaf18092c.tar.gz
hardware_replicant_libsamsung-ipc-de952de91dfd883cee3283e19197b00aaf18092c.tar.bz2
hardware_replicant_libsamsung-ipc-de952de91dfd883cee3283e19197b00aaf18092c.zip
Android.mk: add nv_data-md5
The nv_data-md5 tool can be used to create the nv_data.md5 or .nv_data.md5 files. This tool is already integrated in the Autotools build system, so it's a good idea to also add it to the Android.mk to enable to build it in Android as well if needed. As libsamsung-ipc is not packaged yet in most common GNU/Linux distributions, it might be useful to add it in the resulting Android images, but it's up to the Android distributions using libsamsung-ipc to decide that, for instance by adding nv_data-md5 to PRODUCT_PACKAGES in the repositories of various devices. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Android.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index a433f58..b1aabbd 100644
--- a/Android.mk
+++ b/Android.mk
@@ -179,3 +179,19 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SHARED_LIBRARIES := libsamsung-ipc
include $(BUILD_EXECUTABLE)
+
+####################
+# nv_data-md5 tool #
+####################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := nv_data-md5
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SRC_FILES := tools/nv_data-md5.c
+
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+
+LOCAL_SHARED_LIBRARIES := libsamsung-ipc
+
+include $(BUILD_EXECUTABLE)