由网友(你送她回家却忘记我也怕黑)分享简介:我一直试图在Android版本引入新的命令。 I have been trying to introduce new command in the android build. 我所做的: 在在AOSP源代码树:In In AOSP Source Tree:1)在安卓/外部目录创建新的目录执行的话: NEW...
我一直试图在Android版本引入新的命令。
I have been trying to introduce new command in the android build.
我所做的:
在在AOSP源代码树:
In In AOSP Source Tree:
1)在安卓/外部目录创建新的目录执行的话: NEWCMD / newCmd.c,NEWCMD / Android.mk
1) In android/External Directory create new Directory Say: newCmd/newCmd.c, newCmd/Android.mk
In the Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES:= newCmd.c
LOCAL_MODULE := newCmd
LOCAL_STATIC_LIBRARIES := libcutils libc
include $(BUILD_EXECUTABLE)
2)之上,我跑了M命令。 我的程序编译了,并得到了下面的输出。
2) at Top, i ran 'm' command. My program got compiled, and got below output.
target Executable: newCmd (out/target/product/generic/obj/EXECUTABLES/newCmd_intermediates/LINKED/newCmd)
target Symbolic: newCmd (out/target/product/generic/symbols/system/bin/newCmd)
Export includes file: external/newCmd/Android.mk -- out/target/product/generic/obj/EXECUTABLES/newCmd_intermediates/export_includes
target Strip: newCmd (out/target/product/generic/obj/EXECUTABLES/newCmd_intermediates/newCmd)
Target ram disk: out/target/product/generic/ramdisk.img
问:
当我启动模拟器,我没有看到的NEWCMD在/ system / bin目录。
When i launch emulator, i dont see the newCmd in the /system/bin directory.
我错过了什么?
请咨询。
推荐答案
确定。
我找到了解决办法。这所买得到解决,在我包括下PRODUCT_PACKAGES标签core.mk文件的包名。
I found the solution. it hast got resolved, after i include the package name in the core.mk file under PRODUCT_PACKAGES tag.
总之感谢所有。
相关推荐
最新文章