Android.mk add binary into /system/bin

760 Views Asked by At

I have a binary, with Android.mk as below.


include $(CLEAR_VARS)

LOCAL_MODULE := binary_test
LOCAL_LDLIBS := libs
LOCAL_CFLAGS := -O3 -UNDEBUG

LOCAL_C_INCLUDES += tools/
LOCAL_SRC_FILES := main.c

include $(BUILD_EXECUTABLE) 

And I want to add the binary_test into android /system/bin how this can be done?

Thanks.

1

There are 1 best solutions below

0
Yong On BEST ANSWER

Android use PRODUCT_PACKAGES to include all modules to be installed.

Add the following lines to your product makefiles.

PRODUCT_PACKAGES += binary_test