0

I am using AOSP Nougat source code. I want to build avahi module for my custom hardware to support mdns. I can build it using mma command.

I want to include this module in build when I use make command.

Can anyone suggest the way to do it.

  • 2
    Add it to the `PRODUCT_PACKAGES` of your device. Grep `PRODUCT_PACKAGES` in this page https://source.android.com/setup/develop/new-device – Hugo y Sep 26 '19 at 09:05
  • Hi Hugo,The issue is that the binary file (at out/target/product/BOARD/system/bin )is not generated when I use make command. but Instead when I use mma( Build with dependency) command it is generated. – Hiren Bhuva Sep 26 '19 at 09:18
  • 2
    Yes that's what I'm saying. Your avahi module have an Android.mk get the LOCAL_MODULE value and put it in the PRODUCT_PACKAGES variable of your device. Like this PRODUCT_PACKAGES += your_avahi_name . – Hugo y Sep 26 '19 at 11:59
  • @Hugoy is correct. And should make that an answer, not comment. – Rick Sanchez Sep 29 '19 at 19:52
  • @Hugoy Please write this as an answer so that I can mark it as answered. Thanks – Hiren Bhuva Sep 30 '19 at 09:50
  • Ok, it's done . – Hugo y Oct 01 '19 at 06:42

1 Answers1

2

Your avahi module have an Android.mk get the LOCAL_MODULE value and put it in the PRODUCT_PACKAGES variable of your device.

Like this PRODUCT_PACKAGES += your_avahi_name .

More info on PRODUCT_PACKAGES on this page (search for PRODUCT_PACKAGES).

Hugo y
  • 1,421
  • 10
  • 20