Hi Khem / Gyorgy & Team, This issue was specific to CLANG, and it reported the error as it was being passed header files in compilation command
I have created a fix attached below, would requires teams comment/ feedback on below before i sent RFC-V4. 1) Tested in two separate build one with gcc (default + qemuarm64) another with clang + qemuarm64 Compiled android-tools locally and the added in core-image-minimal & t ested the adb on qemu target Local.conf (for clang check) MACHINE = "qemuarm64" PREFERRED_PROVIDER_virtual/cc = "clang" PREFERRED_PROVIDER_virtual/cxx = "clang" TOOLCHAIN = "clang" #PREFERRED_PROVIDER_llvm = "clang" #PREFERRED_PROVIDER_llvm-native = "clang-native" #PREFERRED_PROVIDER_nativesdk-llvm = "nativesdk-clang" #PROVIDES:pn-clang = "llvm" #PROVIDES:pn-clang-native = "llvm-native" #PROVIDES:pn-nativesdk-clang = "nativesdk-llvm" IMAGE_INSTALL:append = " android-tools" EXTRA_IMAGE_FEATURES += "allow-empty-password empty-root-password allow-root-login" root@qemuarm64:~# /bin/adb --version Android Debug Bridge version 1.0.41 Version -debian Installed as /usr/bin/adb root@qemuarm64:~# 2) Can team please confirm if this is sufficient or there is any other test which i could do before sharing the RFC-v4 Idea is to avoid last minute build error like this coming at CI-CD? 3) Going ahead should i check with clang also for every patch which needs to be send upstream ? This could save teams/ maintainers effort Attached is the patch for team reference which if team is fine (with approach and above testing) , will share in RFC-V4 Thanks, Ashish
0001-android-tools-fix-deprecated-header-warning-from-cla.patch
Description: Binary data
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#127048): https://lists.openembedded.org/g/openembedded-devel/message/127048 Mute This Topic: https://lists.openembedded.org/mt/119162735/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
