summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/selinux/android-tools/android-tools/libcrypto_mk_change_out_dir.patch
blob: 642d6d342961a851df561d87c7e73b85df770572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
libcrypto.mk: modifications to make it build in yocto environment

Adding an include file that is setting the common flags.

Modified the build rule so that it outputs the binary and include
to the OUT_DIR


Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com>

--- git/external/boringssl/debian/libcrypto.mk	2021-04-30 11:32:40.610312307 +0000
+++ git/external/boringssl/debian/libcrypto.mk	2021-04-30 11:36:47.738318880 +0000
@@ -1,3 +1,4 @@
+include ../../rules_yocto.mk
 include sources.mk
 
 NAME = libcrypto
@@ -26,6 +27,8 @@
 LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 -lpthread
 
 build: $(SOURCES)
-	mkdir --parents debian/out
-	$(CC) $^ -o debian/out/$(NAME).so.0 $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
-	ln -s $(NAME).so.0 debian/out/$(NAME).so
\ No newline at end of file
+	mkdir --parents $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/ 
+	mkdir --parents $(OUT_DIR)/usr/include
+	$(CC) $^ -o $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so.0 $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -DOPENSSL_NO_ASM
+	ln -sf $(NAME).so.0 $(OUT_DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/android/$(NAME).so
+	cp -r include/openssl $(OUT_DIR)/usr/include