summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-11-07 12:51:36 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-11-07 12:51:36 -0600
commitff625e7287c6210a4b0e841eacfc58db38992623 (patch)
tree5c0c685a6e86060bc9385641d7e50de8af9132a1
parent393798fbc8768c499c7523c45dc48ff8df3013b1 (diff)
downloadbusybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.gz
busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.bz2
busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.zip
Work on multiple builds
-rwxr-xr-xinit4
-rw-r--r--meta.lua31
2 files changed, 31 insertions, 4 deletions
diff --git a/init b/init
index 21a6635..cfab05a 100755
--- a/init
+++ b/init
@@ -4,6 +4,10 @@ rc-service networking start
4apk update 4apk update
5apk add build-base xz mingw-w64-gcc 5apk add build-base xz mingw-w64-gcc
6 6
7tar -xvzf include.tar.gz
8mv include/* /usr/x86_64-w64-mignw32/include
9mv libtls.a /usr/x86_64-w64-mingw32/lib
10
7cd busybox-w32 11cd busybox-w32
8cp /root/busybox-w32-packaging/config .config 12cp /root/busybox-w32-packaging/config .config
9make 13make
diff --git a/meta.lua b/meta.lua
index b7f257c..9b6d799 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,12 +1,35 @@
1return { 1local optimizations = {
2 ["busybox-w32"] = { 2--[[
3 tiny = "-Oz",
4 size = "-Os",
5 debug = "-Og",
6 zero = "-O0",
7 one = "-O1",
8 two = "-O2",
9]]
10 three = "-O3",
11}
12local debug = {
13-- release = "",
14 debug = "-g",
15}
16local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
17local builds = {}
18for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do
19 builds["busybox-w32-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = {
3 timeout=600, 20 timeout=600,
4 image="image-mingw64", 21 image="image-" .. comp_v,
5 requires = { 22 requires = {
6 {"git","busybox-w32"}, 23 {"git","busybox-w32"},
24 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k .. ":include.tar.gz"},
25 {"cicd","libressl-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k .. ":libtls.a"}
7 }, 26 },
8 produces = { 27 produces = {
9 ["busybox.exe"] = true 28 ["busybox.exe"] = true
10 }, 29 },
30 env = {
31 CFLAGS = opti_v .. " " .. rel_v,
32 }
11 } 33 }
12} 34end
35return builds