Merge branch 'master' of github.com:ernw/static-toolbox
This commit is contained in:
commit
8449cf65b5
2 changed files with 27 additions and 31 deletions
|
@ -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.
|
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
|
## Tools
|
||||||
|
|
||||||
|[Nmap](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22Nmap%22)||
|
|[Nmap](https://github.com/ernw/static-toolbox/actions?query=workflow%3A%22Nmap%22)||
|
||||||
|
|
|
@ -14,50 +14,41 @@ build_gdb() {
|
||||||
fetch "$GIT_BINUTILS_GDB" "${BUILD_DIRECTORY}/binutils-gdb" git
|
fetch "$GIT_BINUTILS_GDB" "${BUILD_DIRECTORY}/binutils-gdb" git
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/" || { echo "Cannot cd to ${BUILD_DIRECTORY}/binutils-gdb/"; exit 1; }
|
cd "${BUILD_DIRECTORY}/binutils-gdb/" || { echo "Cannot cd to ${BUILD_DIRECTORY}/binutils-gdb/"; exit 1; }
|
||||||
git clean -fdx
|
git clean -fdx
|
||||||
git checkout gdb-8.3.1-release
|
git checkout gdb-9.2-release
|
||||||
|
|
||||||
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
CMD="CFLAGS=\"${GCC_OPTS}\" "
|
||||||
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
CMD+="CXXFLAGS=\"${GXX_OPTS}\" "
|
||||||
CMD+="LDFLAGS=\"-static -pthread\" "
|
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+="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++\" "
|
CMD+="CPP_FOR_BUILD=\"/x86_64-linux-musl-cross/bin/x86_64-linux-musl-g++\" "
|
||||||
fi
|
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"
|
CMD+="--disable-shared --enable-static"
|
||||||
|
|
||||||
GDB_CMD="${CMD} --disable-interprocess-agent"
|
GDB_CMD="${CMD} --disable-interprocess-agent"
|
||||||
|
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/bfd"
|
cd "${BUILD_DIRECTORY}/binutils-gdb/"
|
||||||
eval "$CMD"
|
mkdir build
|
||||||
make -j4
|
cd build
|
||||||
|
eval "$GDB_CMD"
|
||||||
|
ls -la
|
||||||
|
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/readline"
|
cd "${BUILD_DIRECTORY}/binutils-gdb/"
|
||||||
eval "$CMD"
|
MAKE_PROG="${MAKE-make}"
|
||||||
make -j4
|
MAKE="${MAKE_PROG} AR=true LINK=true"
|
||||||
|
export MAKE
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/opcodes"
|
${MAKE} $* all-libiberty
|
||||||
eval "$CMD"
|
${MAKE} $* all-intl
|
||||||
make -j4
|
${MAKE} $* all-bfd
|
||||||
|
cd binutils
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/libiberty"
|
MAKE="${MAKE_PROG}"
|
||||||
eval "$CMD"
|
export MAKE
|
||||||
make -j4
|
${MAKE} $* ar_DEPENDENCIES= ar_LDADD='../bfd/*.o ../libiberty/*.o `if test -f ../intl/gettext.o; then echo '../intl/*.o'; fi`' ar
|
||||||
|
ls -la
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/libdecnumber"
|
cp ar /usr/bin
|
||||||
eval "$CMD"
|
|
||||||
make -j4
|
|
||||||
|
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/zlib"
|
|
||||||
eval "$CMD"
|
|
||||||
make -j4
|
|
||||||
|
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/gdb"
|
cd "${BUILD_DIRECTORY}/binutils-gdb/build"
|
||||||
eval "$GDB_CMD"
|
|
||||||
make -j4
|
|
||||||
|
|
||||||
cd "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver"
|
|
||||||
eval "$GDB_CMD"
|
|
||||||
make -j4
|
make -j4
|
||||||
|
|
||||||
strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver"
|
strip "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdb" "${BUILD_DIRECTORY}/binutils-gdb/gdb/gdbserver/gdbserver"
|
||||||
|
|
Loading…
Reference in a new issue