-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkpkg-70.sh
executable file
·91 lines (67 loc) · 2.48 KB
/
mkpkg-70.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/sh
buildver=$1
if [ -z "$buildver" ]; then
echo "Provide build version string: x.y.z-n"
exit
fi
tarball="`pwd`/_tarball"
build="_build"
install="$PWD/_install"
mkdir -p $tarball
###
### 7.0 section
###
## 7.0 aarch64
aprefix="$install/aarch64-7.0.0"
atargetlibdir="$build/target/qnx7/aarch64le/usr/lib/wolfssl"
atargetbindir="$build/target/qnx7/aarch64le/usr/bin/wolfssl"
atargetincdir="$build/target/qnx7/aarch64le/usr/include/wolfssl/curl"
astrip="aarch64-unknown-nto-qnx7.0.0-strip"
mkdir -p $atargetlibdir
cp -p $aprefix/lib/libcurl.a $aprefix/lib/libcurl.so* $atargetlibdir
cp -p $aprefix/lib/libcurl.so.12 $atargetlibdir/libcurl.so.12.sym
$astrip $atargetlibdir/libcurl.so.12 $atargetlibdir/libcurl.so
mkdir -p $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir/curl.sym
$astrip $atargetbindir/curl
mkdir -p $atargetincdir
cp -p $aprefix/include/curl/*.h $atargetincdir
## 7.0 armle-v7
aprefix="$install/armle-v7-7.0.0"
atargetlibdir="$build/target/qnx7/armle-v7le/usr/lib/wolfssl"
atargetbindir="$build/target/qnx7/armle-v7le/usr/bin/wolfssl"
atargetincdir="$build/target/qnx7/armle-v7le/usr/include/wolfssl/curl"
astrip="arm-unknown-nto-qnx7.0.0eabi-strip"
mkdir -p $atargetlibdir
cp -p $aprefix/lib/libcurl.a $aprefix/lib/libcurl.so* $atargetlibdir
cp -p $aprefix/lib/libcurl.so.12 $atargetlibdir/libcurl.so.12.sym
$astrip $atargetlibdir/libcurl.so.12 $atargetlibdir/libcurl.so
mkdir -p $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir/curl.sym
$astrip $atargetbindir/curl
mkdir -p $atargetincdir
cp -p $aprefix/include/curl/*.h $atargetincdir
## 7.0 x86_64
aprefix="$install/x86_64-7.0.0"
atargetlibdir="$build/target/qnx7/x86_64/usr/lib/wolfssl"
atargetbindir="$build/target/qnx7/x86_64/usr/bin/wolfssl"
atargetincdir="$build/target/qnx7/x86_64/usr/include/wolfssl/curl"
astrip="x86_64-pc-nto-qnx7.0.0-strip"
mkdir -p $atargetlibdir
cp -p $aprefix/lib/libcurl.a $aprefix/lib/libcurl.so* $atargetlibdir
cp -p $aprefix/lib/libcurl.so.12 $atargetlibdir/libcurl.so.12.sym
$astrip $atargetlibdir/libcurl.so.12 $atargetlibdir/libcurl.so
mkdir -p $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir
cp -p $aprefix/bin/curl $atargetbindir/curl.sym
$astrip $atargetbindir/curl
mkdir -p $atargetincdir
cp -p $aprefix/include/curl/*.h $atargetincdir
## 7.0 documentation
cp README-QNX.md "$build/target/qnx7/"
## build the 7.0 package
cd $build
tar czf curl-$buildver-qnxsdp7.0.tar.gz target/qnx7
mv *tar.gz $tarball