How to add anonymous data file in Android.bp

1,933 views
Skip to first unread message

ardda

unread,
Jun 20, 2018, 12:50:13 PM6/20/18
to Android Building
Hello

I'm trying to convert Android.mk to Android.bp.
Android.mk used LOCAL_MODULE_PATH to copy data files in system and/or vendor partitions, for example /system/usr/... .
Using cc_prebuilt_binary in Android.bp, files are copied into /system/bin. It can't be located in other path.
When searching Android.bp and Android.mk files in other modules to copy data files into other location in system partition, they all seem using Android.mk not Android.bp.
Is it possible to copy data files using Android.bp and golang? or should I keep using Andorid.mk?

Thanks
ardda




Dan Willemsen

unread,
Jun 28, 2018, 3:51:28 PM6/28/18
to Android Building
Soong (Android.bp) does not have extensive prebuilt support yet, it's limited to some common cases that are useful to be in Soong.

cc_* are intended to be C/C++ shared libraries or executables. We've recently added "prebuilt_etc" and "prebuilt_etc_xml" to install configuration files into the various configuration directories for each partition. There isn't anything in Android.bp that can install into /system/usr currently -- we'd want to consider how to properly model that as a concept, rather than allowing arbitrary path definitions like Android.mk files can do.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ardda

unread,
Jul 2, 2018, 10:25:26 AM7/2/18
to Android Building
Dear Dan

Thank you for your reply. I've check "prebuilt_etc" module type works.
I have one more question.
Won't you have plan to allow arbitrary path for vendor partition in future release?
I guess each vendor might want to use its specific path.

Thank you in advance.
ardda
Reply all
Reply to author
Forward
0 new messages