[android-building] Build a image Android 11 with Vendor settings

1,705 views
Skip to first unread message

Eduard K

unread,
Sep 14, 2020, 12:37:40 PM9/14/20
to android-...@googlegroups.com
Hello,

I am a little new on this topic developer. And start with Build an Image for a Sony XZ1 (G8342) device.
Now i see some problems on pre build with android 11 sources. Who can me say which point  can start with searching for the issue and delivering feedback?

At this file (\system\libhidl\Android.bp) contains fellows lines. This start on the line 112.
// WARNING: deprecated
// This library is no longer required, and dependencies should be taken
// on libhidlbase instead.
cc_library {
    name: "libhidltransport",
    vendor_available: true,

    visibility: [":__subpackages__"],
}

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=aosp_g8342
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.19.104-microsoft-standard-x86_64-Ubuntu-20.04.1-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RP1A.200720.009
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/sony/yoshino vendor/qcom/opensource/core-utils
============================================
[100% 180/180] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
error: vendor/qcom/opensource/display-commonsys-intf/libdisplayconfig/Android.bp:1:1: module "libdisplayconfig" variant "android_vendor.30_arm_armv8-a_cortex-a73_shared": depends on //system/libhidl:libhidltransport which is not visible to this module
21:38:08 soong bootstrap failed with: exit status 1

#### failed to build some targets (02:17 (mm:ss)) ####

Kind regards
Eduard

Gent Binaku

unread,
Sep 15, 2020, 10:37:21 AM9/15/20
to android-...@googlegroups.com
Scratch that.

Actually seems like libhidltransport is no longer needed, libhidlbase, so go this module Android.mk or Android.bp file and change the shared libraries to include libhidlbase, and unlink with libhidltransport

On Mon, Sep 14, 2020 at 11:10 PM Gent Binaku <binak...@gmail.com> wrote:
Try to add this module to vendor partition 

Please read this:

https://source.android.com/devices/architecture/vndk/build-system#module-definition

--
--
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/CAJVOyYUSTApi8o9AVxPYxJGgaBmyB8c%3Dh4dmgfNuDpdPpCRPMg%40mail.gmail.com.

Gent Binaku

unread,
Sep 15, 2020, 10:37:23 AM9/15/20
to android-...@googlegroups.com
Try to add this module to vendor partition 

Please read this:

https://source.android.com/devices/architecture/vndk/build-system#module-definition

On Mon, Sep 14, 2020 at 6:37 PM Eduard K <ed21...@gmail.com> wrote:
--
Reply all
Reply to author
Forward
0 new messages