Question about PRODUCT_HOST_PACKAGES and PRODUCT_PACKAGES

516 views
Skip to first unread message

Po Hu

unread,
Mar 18, 2019, 10:28:34 AM3/18/19
to Android Building
When I try to add a target binary called badblocks (defined https://android.googlesource.com/platform/external/e2fsprogs/+/refs/heads/master/misc/Android.bp#157) into image.
"PRODUCT_PACKAGES += badblocks" will show this error:
build/make/core/main.mk:1182: warning: Missing modules from PRODUCT_HOST_PACKAGES
build/make/core/main.mk:1184: warning: _ badblocks
build/make/core/main.mk:1185: error: stop. 

Because badblocks happens to be a "host_supported" binary too.
How to make only the target one installed ?
I don't want to use "PRODUCT_HOST_PACKAGES += badblocks" to generate extra host binary.

Dan Willemsen

unread,
Mar 18, 2019, 1:26:54 PM3/18/19
to Android Building
The behavior up until a few weeks ago was to build everything in PRODUCT_PACKAGES for both host and device. I'm in the process of splitting them up, but right now that means that you need to add them to both PRODUCT_PACKAGES and PRODUCT_HOST_PACKAGES. I hope to fully disconnect them this week, so that you can add it to PRODUCT_PACKAGES, but not PRODUCT_HOST_PACKAGES, and get it installed only for the device.

Sorry for the complication,
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.

Po Hu

unread,
Mar 19, 2019, 12:40:41 AM3/19/19
to Android Building
Got it.
Thanks for your quick response.

在 2019年3月18日星期一 UTC+8下午10:28:34,Po Hu写道:
Reply all
Reply to author
Forward
0 new messages