diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 12:51:36 -0600 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-11-07 12:51:36 -0600 |
commit | ff625e7287c6210a4b0e841eacfc58db38992623 (patch) | |
tree | 5c0c685a6e86060bc9385641d7e50de8af9132a1 | |
parent | 393798fbc8768c499c7523c45dc48ff8df3013b1 (diff) | |
download | busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.gz busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.tar.bz2 busybox-w32-packaging-ff625e7287c6210a4b0e841eacfc58db38992623.zip |
Work on multiple builds
-rwxr-xr-x | init | 4 | ||||
-rw-r--r-- | meta.lua | 31 |
2 files changed, 31 insertions, 4 deletions
@@ -4,6 +4,10 @@ rc-service networking start | |||
4 | apk update | 4 | apk update |
5 | apk add build-base xz mingw-w64-gcc | 5 | apk add build-base xz mingw-w64-gcc |
6 | 6 | ||
7 | tar -xvzf include.tar.gz | ||
8 | mv include/* /usr/x86_64-w64-mignw32/include | ||
9 | mv libtls.a /usr/x86_64-w64-mingw32/lib | ||
10 | |||
7 | cd busybox-w32 | 11 | cd busybox-w32 |
8 | cp /root/busybox-w32-packaging/config .config | 12 | cp /root/busybox-w32-packaging/config .config |
9 | make | 13 | make |
@@ -1,12 +1,35 @@ | |||
1 | return { | 1 | local 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 | } | ||
12 | local debug = { | ||
13 | -- release = "", | ||
14 | debug = "-g", | ||
15 | } | ||
16 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
17 | local builds = {} | ||
18 | for 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 | } | 34 | end |
35 | return builds | ||