summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-07 14:08:22 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-07 14:08:22 -0600
commit81afe76294ed02087a2607ee6238317dde5a836c (patch)
tree06cac36bae9f40dff0666e4b23d544e02a380fc0
parent13f576eef83034e0159ef7b2a49b011008f34984 (diff)
downloadbusybox-w32-packaging-81afe76294ed02087a2607ee6238317dde5a836c.tar.gz
busybox-w32-packaging-81afe76294ed02087a2607ee6238317dde5a836c.tar.bz2
busybox-w32-packaging-81afe76294ed02087a2607ee6238317dde5a836c.zip
Add libraries and set flags
-rwxr-xr-xinit7
-rw-r--r--meta.lua4
2 files changed, 9 insertions, 2 deletions
diff --git a/init b/init
index cfab05a..fa3f743 100755
--- a/init
+++ b/init
@@ -5,10 +5,15 @@ apk update
5apk add build-base xz mingw-w64-gcc 5apk add build-base xz mingw-w64-gcc
6 6
7tar -xvzf include.tar.gz 7tar -xvzf include.tar.gz
8mv include/* /usr/x86_64-w64-mignw32/include 8mv include/openssl /usr/x86_64-w64-mignw32/include
9mv include/tls.h /usr/x86_64-w64-mignw32/include
9mv libtls.a /usr/x86_64-w64-mingw32/lib 10mv libtls.a /usr/x86_64-w64-mingw32/lib
11mv libssl.a /usr/x86_64-w64-mingw32/lib
12mv libcrypto.a /usr/x86_64-w64-mingw32/lib
10 13
11cd busybox-w32 14cd busybox-w32
12cp /root/busybox-w32-packaging/config .config 15cp /root/busybox-w32-packaging/config .config
16sed -i "s/CONFIG_EXTRA_CFLAGS=\"\"/CONFIG_EXTRA_CFLAGS=\"$CFLAGS\"/g" .config
17sed -i "s/CONFIG_EXTRA_LDLIBS=\"\"/CONFIG_EXTRA_LDLIBS=\"-ltls -lssl -lcrypto\"/g" .config
13make 18make
14cp busybox.exe .. 19cp busybox.exe ..
diff --git a/meta.lua b/meta.lua
index 0e7e468..20ddd48 100644
--- a/meta.lua
+++ b/meta.lua
@@ -22,7 +22,9 @@ for opti_k, opti_v, rel_k, rel_v, _, comp_v in cartesian(optimizations, debug, c
22 requires = { 22 requires = {
23 {"git","busybox-w32"}, 23 {"git","busybox-w32"},
24 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":include.tar.gz"}, 24 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":include.tar.gz"},
25 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libtls.a"} 25 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libtls.a"},
26 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libssl.a"},
27 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_v .. ":libcrypto.a"},
26 }, 28 },
27 produces = { 29 produces = {
28 ["busybox.exe"] = true 30 ["busybox.exe"] = true