[英]Adding a custom etc file to aosp build
I have a set of custom etc files including text files, binary data files that I want to see populated into aosp's system/etc folder. 我有一组自定义的etc文件,包括文本文件,二进制数据文件,我希望这些文件填充到aosp的system / etc文件夹中。
I saw the previous question Add custom.xml file to AOSP etc folder which is similar but isn't what I want to do. 我看到了前面的问题, 将custom.xml文件添加到AOSP等文件夹中 ,这是相似的,但不是我想要的。
I tried: mkdir external/mydata 我试过了:mkdir external / mydata
then in the android.mk, i put: 然后在android.mk中,我输入:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := mydata.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
# This will install the file in /system/etc/permissions
#
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/
LOCAL_SRC_FILES := $(LOCAL_MODULE)
include $(BUILD_PREBUILT)
In the above example just as a starting point, I wanted to add mydata.xml to system/etc/ . 在上面的示例中,作为起点,我想将mydata.xml添加到system / etc /中。 Then I did the build using my normal m -j1 iso_img
然后我使用普通的m -j1 iso_img进行了构建
I can see that ninja picks up the change Running kati to generate build-android_x86.ninja... ./external/mydata/Android.mk was modified, regenerating... 我可以看到忍者拿起了正在运行的kati更改以生成build-android_x86.ninja...。/ external / mydata / Android.mk已修改,正在重新生成...
But I do not see mydata.mxl get populated anywhere. 但是我看不到mydata.mxl随处可见。
$ find out/ -name mydata.xml $查找/ -name mydata.xml
Comes back empty... 回来空了...
Any ideas? 有任何想法吗? I'm using android-x86 aosp build.
我正在使用android-x86 aosp构建。
You are missing permissions
text in your module path 您在模块路径中缺少
permissions
文本
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
plus you can add configuration to just add it for specific platform 另外,您可以添加配置,仅针对特定平台添加配置
LOCAL_MODULE_TARGET_ARCH := x86_64
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.