Framework编译实现Bin程序

RK3399

1、/system/core/新建hello

2、编译代码

3、编写Android.mk

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= hello.c

LOCAL_MODULE := hello

include $(BUILD_EXECUTABLE)

include $(call first-makefiles-under,$(LOCAL_PATH))

4、mm  生成bin,位置:/system/bin

你可能感兴趣的:(Framework编译实现Bin程序)