summaryrefslogtreecommitdiffstats
path: root/meta-microblaze
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@kernel.crashing.org>2022-07-28 21:48:28 -0500
committerMark Hatle <mark.hatle@kernel.crashing.org>2022-08-31 19:54:11 -0500
commitb5884e27e2527a9f42d1983c71c841cd2984275f (patch)
tree84a520349687dc2508532c8ba8093e597877c12f /meta-microblaze
parent1d9dfa06a7d275249504a6dc21a6b8bb161555a2 (diff)
downloadmeta-xilinx-b5884e27e2527a9f42d1983c71c841cd2984275f.tar.gz
meta-microblaze: openssl: Use -latomic for microblaze
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Diffstat (limited to 'meta-microblaze')
-rw-r--r--meta-microblaze/recipes-connectivity/openssl/openssl-microblaze.inc89
-rw-r--r--meta-microblaze/recipes-connectivity/openssl/openssl_3.0.5.bbappend4
2 files changed, 93 insertions, 0 deletions
diff --git a/meta-microblaze/recipes-connectivity/openssl/openssl-microblaze.inc b/meta-microblaze/recipes-connectivity/openssl/openssl-microblaze.inc
new file mode 100644
index 00000000..766c8eeb
--- /dev/null
+++ b/meta-microblaze/recipes-connectivity/openssl/openssl-microblaze.inc
@@ -0,0 +1,89 @@
1# Adjust for microblaze...
2do_configure () {
3 # When we upgrade glibc but not uninative we see obtuse failures in openssl. Make
4 # the issue really clear that perl isn't functional due to symbol mismatch issues.
5 cat <<- EOF > ${WORKDIR}/perltest
6 #!/usr/bin/env perl
7 use POSIX;
8 EOF
9 chmod a+x ${WORKDIR}/perltest
10 ${WORKDIR}/perltest
11
12 os=${HOST_OS}
13 case $os in
14 linux-gnueabi |\
15 linux-gnuspe |\
16 linux-musleabi |\
17 linux-muslspe |\
18 linux-musl )
19 os=linux
20 ;;
21 *)
22 ;;
23 esac
24 target="$os-${HOST_ARCH}"
25 case $target in
26 linux-arc | linux-microblaze*)
27 target=linux-latomic
28 ;;
29 linux-arm*)
30 target=linux-armv4
31 ;;
32 linux-aarch64*)
33 target=linux-aarch64
34 ;;
35 linux-i?86 | linux-viac3)
36 target=linux-x86
37 ;;
38 linux-gnux32-x86_64 | linux-muslx32-x86_64 )
39 target=linux-x32
40 ;;
41 linux-gnu64-x86_64)
42 target=linux-x86_64
43 ;;
44 linux-mips | linux-mipsel)
45 # specifying TARGET_CC_ARCH prevents openssl from (incorrectly) adding target architecture flags
46 target="linux-mips32 ${TARGET_CC_ARCH}"
47 ;;
48 linux-gnun32-mips*)
49 target=linux-mips64
50 ;;
51 linux-*-mips64 | linux-mips64 | linux-*-mips64el | linux-mips64el)
52 target=linux64-mips64
53 ;;
54 linux-nios2* | linux-sh3 | linux-sh4 | linux-arc*)
55 target=linux-generic32
56 ;;
57 linux-powerpc)
58 target=linux-ppc
59 ;;
60 linux-powerpc64)
61 target=linux-ppc64
62 ;;
63 linux-powerpc64le)
64 target=linux-ppc64le
65 ;;
66 linux-riscv32)
67 target=linux-generic32
68 ;;
69 linux-riscv64)
70 target=linux-generic64
71 ;;
72 linux-sparc | linux-supersparc)
73 target=linux-sparcv9
74 ;;
75 mingw32-x86_64)
76 target=mingw64
77 ;;
78 esac
79
80 useprefix=${prefix}
81 if [ "x$useprefix" = "x" ]; then
82 useprefix=/
83 fi
84 # WARNING: do not set compiler/linker flags (-I/-D etc.) in EXTRA_OECONF, as they will fully replace the
85 # environment variables set by bitbake. Adjust the environment variables instead.
86 HASHBANGPERL="/usr/bin/env perl" PERL=perl PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
87 perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS} ${DEPRECATED_CRYPTO_FLAGS} --prefix=$useprefix --openssldir=${libdir}/ssl-3 --libdir=${libdir} $target
88 perl ${B}/configdata.pm --dump
89}
diff --git a/meta-microblaze/recipes-connectivity/openssl/openssl_3.0.5.bbappend b/meta-microblaze/recipes-connectivity/openssl/openssl_3.0.5.bbappend
new file mode 100644
index 00000000..1f6f25cc
--- /dev/null
+++ b/meta-microblaze/recipes-connectivity/openssl/openssl_3.0.5.bbappend
@@ -0,0 +1,4 @@
1MICROBLAZEPATCHES = ""
2MICROBLAZEPATCHES:microblaze = "openssl-microblaze.inc"
3
4require ${MICROBLAZEPATCHES}