diff options
-rwxr-xr-x | examples/mswin-build/mkprerelease | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/examples/mswin-build/mkprerelease b/examples/mswin-build/mkprerelease index 1cace46a3..1bdf886d9 100755 --- a/examples/mswin-build/mkprerelease +++ b/examples/mswin-build/mkprerelease | |||
@@ -2,7 +2,7 @@ | |||
2 | # | 2 | # |
3 | # Build busybox prerelease binaries | 3 | # Build busybox prerelease binaries |
4 | # | 4 | # |
5 | TARGETS="build_pre_32 build_pre_64 build_pre_64u" | 5 | TARGETS="build_pre_32 build_pre_64 build_pre_64a build_pre_64u" |
6 | 6 | ||
7 | # If an argument is supplied it overrides the default source directory. | 7 | # If an argument is supplied it overrides the default source directory. |
8 | SRC=busybox-w32 | 8 | SRC=busybox-w32 |
@@ -27,18 +27,26 @@ done | |||
27 | # apply default configuration | 27 | # apply default configuration |
28 | for i in $TARGETS | 28 | for i in $TARGETS |
29 | do | 29 | do |
30 | if [ $i = "build_pre_64" ] | 30 | ( |
31 | then | 31 | if [ $i = "build_pre_64" ] |
32 | CONFIG=mingw64_defconfig | 32 | then |
33 | elif [ $i = "build_pre_64u" ] | 33 | CONFIG=mingw64_defconfig |
34 | then | 34 | elif [ $i = "build_pre_64u" ] |
35 | CONFIG=mingw64u_defconfig | 35 | then |
36 | elif [ $i = "build_pre_32" ] | 36 | CONFIG=mingw64u_defconfig |
37 | then | 37 | elif [ $i = "build_pre_64a" ] |
38 | CONFIG=mingw32_defconfig | 38 | then |
39 | fi | 39 | CONFIG=mingw64a_defconfig |
40 | PATH="/data2/llvm/current/bin:$PATH" | ||
41 | elif [ $i = "build_pre_32" ] | ||
42 | then | ||
43 | CONFIG=mingw32_defconfig | ||
44 | fi | ||
40 | 45 | ||
41 | (cd $i; git checkout master; make ${CONFIG}) | 46 | cd $i |
47 | git checkout master | ||
48 | make ${CONFIG} | ||
49 | ) | ||
42 | done | 50 | done |
43 | 51 | ||
44 | # perform build | 52 | # perform build |
@@ -52,8 +60,23 @@ do | |||
52 | 60 | ||
53 | ( | 61 | ( |
54 | cd $i | 62 | cd $i |
55 | GCCV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-gcc) | 63 | if [ $i = "build_pre_64a" ] |
56 | CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt) | 64 | then |
57 | make -j $(nproc) EXTRAVERSION="-$(git describe --match=FRP | sed 's/FRP/PRE/')" MINGW_VER="$GCCV; $CRTV" | 65 | # /data2/llvm/current should be a symlink |
66 | PATH="/data2/llvm/current/bin:$PATH" | ||
67 | VERSION=$(readlink /data2/llvm/current) | ||
68 | else | ||
69 | GCCV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-gcc) | ||
70 | CRTV=$(rpm -q --qf '%{name} %{version}-%{release}\n' mingw${BITS}-crt) | ||
71 | VERSION="$GCCV; $CRTV" | ||
72 | fi | ||
73 | make -j $(nproc) EXTRAVERSION="-$(git describe --match=FRP | sed 's/FRP/PRE/')" MINGW_VER="$VERSION" | ||
58 | ) | 74 | ) |
59 | done | 75 | done |
76 | |||
77 | # Check the expected binaries exist | ||
78 | echo | ||
79 | for i in $TARGETS | ||
80 | do | ||
81 | ls -l $i/busybox.exe | ||
82 | done | ||