From: "AshishKumar Mishra" <ashishkumar.mishra@bmwtechworks.in>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH v3 0/3] android-tools: migration and cleanup
Date: Mon, 18 May 2026 02:49:46 -0700 [thread overview]
Message-ID: <1690109.1779097786262242307@lists.openembedded.org> (raw)
In-Reply-To: <CAMKF1srFmVDNF=f2aU1SEYFv5MGXgZGOYc9150HDuBeTJg1V8g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1623 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 11287 bytes --]
[-- Attachment #2: 0001-android-tools-fix-deprecated-header-warning-from-cla.patch --]
[-- Type: application/octet-stream, Size: 2488 bytes --]
From 79c1f0878dc11d550be3a435eeaa601b40919ea6 Mon Sep 17 00:00:00 2001
From: Ashish Kumar Mishra <ashishkumar.mishra@bmwtechworks.in>
Date: Sun, 17 May 2026 07:54:25 +0000
Subject: [PATCH] android-tools: fix deprecated header warning from clang
Remove .h header files from the SOURCES compilation list inside adbd.mk
to resolve a Clang warning regarding treating 'c-header' input as 'c++-header'
Moved the header files into a separate HEADERS variable to act purely as a
GNU Make dependency trigger, keeping them off the direct compiler
execution string.
Signed-off-by: Ashish Kumar Mishra <ashishkumar.mishra@bmwtechworks.in>
---
.../android-tools/android-tools/adbd.mk | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/adbd.mk b/meta-oe/recipes-devtools/android-tools/android-tools/adbd.mk
index 3282216b8e..709a166887 100644
--- a/meta-oe/recipes-devtools/android-tools/android-tools/adbd.mk
+++ b/meta-oe/recipes-devtools/android-tools/android-tools/adbd.mk
@@ -5,16 +5,12 @@ SOURCES = \
adb/adbconnection/adbconnection_server.cpp \
adb/daemon/auth.cpp \
adb/daemon/file_sync_service.cpp \
- adb/daemon/file_sync_service.h \
adb/daemon/framebuffer_service.cpp \
- adb/daemon/framebuffer_service.h \
adb/daemon/jdwp_service.cpp \
adb/daemon/main.cpp \
adb/daemon/restart_service.cpp \
- adb/daemon/restart_service.h \
adb/daemon/services.cpp \
adb/daemon/shell_service.cpp \
- adb/daemon/shell_service.h \
adb/daemon/usb_ffs.cpp \
adb/daemon/usb_legacy.cpp \
adb/daemon/usb.cpp \
@@ -41,7 +37,14 @@ SOURCES = \
diagnose_usb/diagnose_usb.cpp \
libasyncio/AsyncIO.cpp \
+HEADERS = \
+ adb/daemon/file_sync_service.h \
+ adb/daemon/framebuffer_service.h \
+ adb/daemon/restart_service.h \
+ adb/daemon/shell_service.h
+
SOURCES := $(foreach source, $(SOURCES), system/core/$(source))
+HEADERS := $(foreach header, $(HEADERS), system/core/$(header))
SOURCES += \
frameworks/native/libs/adbd_auth/adbd_auth.cpp
@@ -79,9 +82,9 @@ ifneq ($(filter armel mipsel,$(DEB_HOST_ARCH)),)
LDFLAGS += -latomic
endif
-build: $(SOURCES)
+build: $(SOURCES) $(HEADERS)
mkdir --parents debian/out/system/core
- $(CXX) $^ -o debian/out/system/core/adbd $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
+ $(CXX) $(SOURCES) -o debian/out/system/core/adbd $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
clean:
$(RM) debian/out/system/core/adbd
--
2.43.0
next prev parent reply other threads:[~2026-05-18 9:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-05 15:06 [meta-oe][PATCH v3 0/3] android-tools: migration and cleanup AshishKumar Mishra
2026-05-05 15:06 ` [meta-oe][PATCH v3 1/3] android-tools: remove android-tools 5.x from meta-oe/recipes-devtools AshishKumar Mishra
2026-05-05 15:06 ` [meta-oe][PATCH v3 2/3] android-tools: move android-tools v29.x from dynamic-layers/selinux to meta-oe AshishKumar Mishra
2026-05-05 15:06 ` [meta-oe][PATCH v3 3/3] android-tools: removes selinux dependency from android-tools_29.0.6.r14.bb AshishKumar Mishra
2026-05-07 5:09 ` [meta-oe][PATCH v3 0/3] android-tools: migration and cleanup Ashish Mishra
2026-05-13 6:47 ` AshishKumar Mishra
2026-05-13 6:57 ` [oe] " Gyorgy Sarvari
2026-05-13 7:26 ` Khem Raj
2026-05-13 8:21 ` AshishKumar Mishra
2026-05-13 19:49 ` Khem Raj
2026-05-14 8:02 ` AshishKumar Mishra
2026-05-15 10:23 ` AshishKumar Mishra
2026-05-15 10:37 ` [oe] " Gyorgy Sarvari
2026-05-15 13:13 ` Khem Raj
2026-05-18 9:49 ` AshishKumar Mishra [this message]
2026-05-19 7:27 ` AshishKumar Mishra
2026-05-20 14:39 ` AshishKumar Mishra
2026-05-21 4:15 ` [oe] " Khem Raj
2026-05-21 4:25 ` AshishKumar Mishra
2026-05-24 6:58 ` AshishKumar Mishra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1690109.1779097786262242307@lists.openembedded.org \
--to=ashishkumar.mishra@bmwtechworks.in \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox