From 5e9e4969004d51c90253b988fcbfd0631eab97bc Mon Sep 17 00:00:00 2001 From: takeshix Date: Fri, 9 Oct 2020 11:26:28 +0200 Subject: [PATCH 1/8] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9826e39..a81379e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,11 @@ The Linux versions are compiled with the musl-cross toolchain and the openssl-pm Compilation is done automatically with GitHub Actions. +## Current Limitations + +* Downloading of build artifacts in GitHub Ations currently requires a GitHub account +* Blobs in build artifacts are zipped by the GitHub frontend by default, even zip files themselves! Build artifact zips may contain other zip files. + ## Tools || x86 | x86_64 | ARMHF | AARCH64 | From 78f9fd02ec27ca7ac84e139e0702e6d9cf5c6824 Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:01:35 +0200 Subject: [PATCH 2/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index 8c1bc60..c9a8b69 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -19,7 +19,7 @@ build_gdb() { CMD="CFLAGS=\"${GCC_OPTS}\" " CMD+="CXXFLAGS=\"${GXX_OPTS}\" " CMD+="LDFLAGS=\"-static -pthread\" " - if [ "$CURRENT_ARCH" != "x86" ] && "$CURRENT_ARCH" != "x86_64" ];then + if [ "$CURRENT_ARCH" != "x86" ] && [ "$CURRENT_ARCH" != "x86_64" ];then CMD+="CC_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc\" " CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" " fi From 9451cae95c2721cb9e03a4d4868d5043ce6dff7a Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:08:13 +0200 Subject: [PATCH 3/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index c9a8b69..10980c8 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -14,7 +14,7 @@ build_gdb() { fetch "$GIT_BINUTILS_GDB" "${BUILD_DIRECTORY}/binutils-gdb" git cd "${BUILD_DIRECTORY}/binutils-gdb/" || { echo "Cannot cd to ${BUILD_DIRECTORY}/binutils-gdb/"; exit 1; } git clean -fdx - git checkout gdb-8.3.1-release + git checkout gdb-9.2-release CMD="CFLAGS=\"${GCC_OPTS}\" " CMD+="CXXFLAGS=\"${GXX_OPTS}\" " From 440c56b2efeebce9ea0b172719dbe2dc9af860bc Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:28:58 +0200 Subject: [PATCH 4/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index 10980c8..0fd86f6 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -51,6 +51,10 @@ build_gdb() { cd "${BUILD_DIRECTORY}/binutils-gdb/zlib" eval "$CMD" make -j4 + + cd "${BUILD_DIRECTORY}/binutils-gdb/gnulib" + eval "$CMD" + make -j4 cd "${BUILD_DIRECTORY}/binutils-gdb/gdb" eval "$GDB_CMD" From 19ae03413e14ac488976ad77e2a606c02732851a Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:36:19 +0200 Subject: [PATCH 5/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index 0fd86f6..fe24699 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -28,39 +28,7 @@ build_gdb() { GDB_CMD="${CMD} --disable-interprocess-agent" - cd "${BUILD_DIRECTORY}/binutils-gdb/bfd" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/readline" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/opcodes" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/libiberty" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/libdecnumber" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/zlib" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/gnulib" - eval "$CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/gdb" - eval "$GDB_CMD" - make -j4 - - cd "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver" + cd "${BUILD_DIRECTORY}/binutils-gdb/" eval "$GDB_CMD" make -j4 From 4284ed35a8ad5c7f5ca1b153047e4a4d3c8b11e5 Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:41:49 +0200 Subject: [PATCH 6/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index fe24699..55bf623 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -23,12 +23,14 @@ build_gdb() { CMD+="CC_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc\" " CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" " fi - CMD+="./configure --target=$(get_host_triple) --host=x86_64-unknown-linux-musl " + CMD+="${BUILD_DIRECTORY}/binutils-gdb/configure --target=$(get_host_triple) --host=x86_64-unknown-linux-musl " CMD+="--disable-shared --enable-static" GDB_CMD="${CMD} --disable-interprocess-agent" cd "${BUILD_DIRECTORY}/binutils-gdb/" + mkdir build + cd build eval "$GDB_CMD" make -j4 From 5400f0350f318b819434d575df7f962198b1142a Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 18:49:29 +0200 Subject: [PATCH 7/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index 55bf623..90eeb3b 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -32,6 +32,7 @@ build_gdb() { mkdir build cd build eval "$GDB_CMD" + ls -la make -j4 strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver" From 9a2da7f51c33ff8dfaf84cb7286dc68878bc8341 Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 12 Oct 2020 19:09:44 +0200 Subject: [PATCH 8/8] Update build_gdb.sh --- build/targets/build_gdb.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build/targets/build_gdb.sh b/build/targets/build_gdb.sh index 90eeb3b..f26e9b3 100755 --- a/build/targets/build_gdb.sh +++ b/build/targets/build_gdb.sh @@ -33,6 +33,22 @@ build_gdb() { cd build eval "$GDB_CMD" ls -la + + cd "${BUILD_DIRECTORY}/binutils-gdb/" + MAKE_PROG="${MAKE-make}" + MAKE="${MAKE_PROG} AR=true LINK=true" + export MAKE + ${MAKE} $* all-libiberty + ${MAKE} $* all-intl + ${MAKE} $* all-bfd + cd binutils + MAKE="${MAKE_PROG}" + export MAKE + ${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o ../libiberty/*.o `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar + ls -la + cp ar /usr/bin + + cd "${BUILD_DIRECTORY}/binutils-gdb/build" make -j4 strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver"