diff options
Diffstat (limited to 'dynamic-layers/selinux/android-tools/android-tools/libcrypto_utils_mk_change_out_dir.patch')
-rw-r--r-- | dynamic-layers/selinux/android-tools/android-tools/libcrypto_utils_mk_change_out_dir.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/dynamic-layers/selinux/android-tools/android-tools/libcrypto_utils_mk_change_out_dir.patch b/dynamic-layers/selinux/android-tools/android-tools/libcrypto_utils_mk_change_out_dir.patch deleted file mode 100644 index 668338d..0000000 --- a/dynamic-layers/selinux/android-tools/android-tools/libcrypto_utils_mk_change_out_dir.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | libcrypto_utils.mk: modifications to make it build in yocto environment | ||
2 | |||
3 | Adding an include file that is setting the common flags. | ||
4 | Changed the cppflag to include the headers from other components | ||
5 | of android-tools | ||
6 | |||
7 | Modified LDflags so that the libraries that are coming from other android-tools | ||
8 | are searched in the output folder. | ||
9 | |||
10 | Modified the build rule so that it outputs the binary and header to the OUT_DIR | ||
11 | |||
12 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
13 | |||
14 | --- git/debian/libcrypto_utils.mk 2021-04-30 14:18:54.071379767 +0200 | ||
15 | +++ git/debian/libcrypto_utils.mk 2021-04-30 14:22:46.179047308 +0200 | ||
16 | @@ -1,15 +1,17 @@ | ||
17 | +include ../../rules_yocto.mk | ||
18 | NAME:= libcrypto_utils | ||
19 | SOURCES := android_pubkey.c | ||
20 | SOURCES := $(foreach source, $(SOURCES), libcrypto_utils/$(source)) | ||
21 | -CPPFLAGS += -Ilibcrypto_utils/include -Iinclude | ||
22 | +CPPFLAGS += -Ilibcrypto_utils/include -Iinclude -I$(OUT_DIR)/usr/include | ||
23 | LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 \ | ||
24 | -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \ | ||
25 | - -L/usr/lib/$(DEB_HOST_MULTIARCH)/android \ | ||
26 | - -lcrypto -Wl,-z,defs | ||
27 | + -L$(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android \ | ||
28 | + -l:libcrypto.so.0 -Wl,-z,defs | ||
29 | |||
30 | build: $(SOURCES) | ||
31 | - $(CC) $^ -o $(NAME).so.0 $(CPPFLAGS) $(LDFLAGS) | ||
32 | - ln -s $(NAME).so.0 $(NAME).so | ||
33 | + $(CC) $^ -o $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so.0 $(CPPFLAGS) $(LDFLAGS) | ||
34 | + ln -sf $(NAME).so.0 $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so | ||
35 | + cp -r libcrypto_utils/include/* $(OUT_DIR)/usr/include/ | ||
36 | |||
37 | clean: | ||
38 | - $(RM) $(NAME).so* | ||
39 | + $(RM) $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so* | ||