Build a image Android 11 with Vendor settings

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Build a image Android 11 with Vendor settings

Eduard K
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

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAJVOyYUSTApi8o9AVxPYxJGgaBmyB8c%3Dh4dmgfNuDpdPpCRPMg%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Build a image Android 11 with Vendor settings

Gent Binaku
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 <[hidden email]> wrote:
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

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAJVOyYUSTApi8o9AVxPYxJGgaBmyB8c%3Dh4dmgfNuDpdPpCRPMg%40mail.gmail.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CA%2Bhh7DS9jZq5c4uQSguraWZdDV%3D77juoezkrXOD27%3DxK-Bokcw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Build a image Android 11 with Vendor settings

Gent Binaku
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 <[hidden email]> wrote:
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 <[hidden email]> wrote:
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

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAJVOyYUSTApi8o9AVxPYxJGgaBmyB8c%3Dh4dmgfNuDpdPpCRPMg%40mail.gmail.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CA%2Bhh7DS2h-BOYCM5oWr-WYCuD5%3D6g-n4%3DowkCxUQiu4ooU9H-w%40mail.gmail.com.