How do I install a prebuilt module?

112 views
Skip to first unread message

Bret Joseph

unread,
Nov 15, 2021, 2:41:00 PM11/15/21
to Android Building
I have in device/foo/bar/module/Android.bpp
```
cc_prebuilt_library_shared {
    name: "foo",
    srcs: ["foo"],
    vendor: true,
}
```
I include PRODUCT_PACKAGES += foo in device/foo/bar/device.mk

when I run mka foo it says module in unknown

Wesolowski, Krzysztof

unread,
Nov 16, 2021, 5:16:00 PM11/16/21
to android-...@googlegroups.com
Do you actually have double "p" in Android.bpp?

Other explanation would be that there is soong namespace defined above and not added to PRODUCT_SOONG_NAMESPACES.

BR, 

K.


From: android-...@googlegroups.com <android-...@googlegroups.com> on behalf of Bret Joseph <bretj...@gmail.com>
Sent: Monday, November 15, 2021 06:47
To: Android Building <android-...@googlegroups.com>
Subject: [android-building] How do I install a prebuilt module?
 
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/b0a10fe7-9962-4cd7-8bc2-45a59a39de2bn%40googlegroups.com.

Bret Joseph

unread,
Dec 4, 2021, 3:20:40 PM12/4/21
to Android Building
no I had Android.bp. I gain tried.

```
prebuilt_kernel_modules {
    name: "foo",
    srcs: ["foo.ko"],
    vendor: true,
}
```
Its still not found I resorted to using `BOARD_VENDOR_KERNEL_MODULES := $(LOCAL_DIR)/foo.ko`

Reply all
Reply to author
Forward
0 new messages