diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch b/dynamic-layers/selinux/android-tools/android-tools/core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch new file mode 100644 index 0000000..1281caa --- /dev/null +++ b/dynamic-layers/selinux/android-tools/android-tools/core/0002-libadb.mk-modifications-to-make-it-build-in-yocto-en.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From f802e7685cfbdd66d74da2975b3a1c6d77f1a2de Mon Sep 17 00:00:00 2001 | ||
2 | From: Etienne Cordonnier <ecordonnier@snap.com> | ||
3 | Date: Fri, 3 Mar 2023 12:28:10 +0100 | ||
4 | Subject: [PATCH 02/15] libadb.mk: modifications to make it build in yocto | ||
5 | environment | ||
6 | |||
7 | Adding an include file that is setting the common flags. | ||
8 | Changed the cppflag to include the headers from other components | ||
9 | of android-tools | ||
10 | |||
11 | Modified LDflags so that the libraries that are coming from other android-tools | ||
12 | are searched in the output folder. | ||
13 | |||
14 | Modified the build rule so that it outputs the binary to the OUT_DIR | ||
15 | |||
16 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
17 | --- | ||
18 | debian/libadb.mk | 11 ++++++----- | ||
19 | 1 file changed, 6 insertions(+), 5 deletions(-) | ||
20 | |||
21 | diff --git a/debian/libadb.mk b/debian/libadb.mk | ||
22 | index ae240c98..db5da353 100644 | ||
23 | --- a/debian/libadb.mk | ||
24 | +++ b/debian/libadb.mk | ||
25 | @@ -1,3 +1,4 @@ | ||
26 | +include ../../rules_yocto.mk | ||
27 | NAME := libadb | ||
28 | |||
29 | LIBADB_SRC_FILES := \ | ||
30 | @@ -43,18 +44,18 @@ CPPFLAGS += \ | ||
31 | -Ibase/include \ | ||
32 | -Idiagnose_usb/include \ | ||
33 | -Ilibcrypto_utils/include \ | ||
34 | - -Iinclude \ | ||
35 | + -Iinclude -I$(OUT_DIR)/usr/include \ | ||
36 | -DPLATFORM_TOOLS_VERSION='"$(PLATFORM_TOOLS_VERSION)"' \ | ||
37 | -DADB_HOST=1 -DADB_VERSION='"$(DEB_VERSION)"' | ||
38 | |||
39 | LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 \ | ||
40 | -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \ | ||
41 | - -L/usr/lib/$(DEB_HOST_MULTIARCH)/android -lcrypto \ | ||
42 | - -lpthread -L. -lbase -lcutils -lcrypto_utils -lusb-1.0 | ||
43 | + -L$(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android -lcrypto \ | ||
44 | + -lpthread -lbase -lcutils -lcrypto_utils -lusb-1.0 | ||
45 | |||
46 | $(NAME).so: $(SOURCES) | ||
47 | - $(CXX) $^ -o $(NAME).so.0 $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) | ||
48 | - ln -s $(NAME).so.0 $(NAME).so | ||
49 | + $(CXX) $^ -o $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so.0 $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) | ||
50 | + ln -sf $(NAME).so.0 $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so | ||
51 | |||
52 | transport_mdns_unsupported.cpp: | ||
53 | echo 'void init_mdns_transport_discovery(void) {}' > transport_mdns_unsupported.cpp | ||
54 | -- | ||
55 | 2.36.1.vfs.0.0 | ||
56 | |||