Skip to content

Commit

Permalink
add libabigail
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenArsen committed Oct 23, 2023
1 parent 3fbd87f commit 0410c28
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ ARG BINUREF=tags/managarm/binutils-2_40
ARG BINUBASE=https://github.com/managarm/binutils-gdb/archive/refs
ARG LINUXSER=v6.x
ARG LINUXVER=6.4.7
ARG LIBABIGAILVER=2.4

RUN apt-get update && apt-get -y upgrade && apt-get install -y ca-certificates
RUN apt-get -y install --no-install-recommends \
build-essential git wget libgmp-dev libmpfr-dev libmpc-dev flex bison \
meson rsync
meson rsync pkg-config libdw-dev libelf-dev libdebuginfod-dev libasm-dev \
elfutils doxygen python3-sphinx libxml2-dev

RUN cd / && wget ${GCCBASE}/${GCCREF}.tar.gz
RUN cd / && wget ${BINUBASE}/${BINUREF}.tar.gz
RUN cd / && wget https://cdn.kernel.org/pub/linux/kernel/${LINUXSER}/linux-${LINUXVER}.tar.xz
RUN cd / && wget http://mirrors.kernel.org/sourceware/libabigail/libabigail-${LIBABIGAILVER}.tar.xz

RUN apt-get -y install --no-install-recommends \
file texinfo cpio

ADD tool-checksums /tool-checksums
ADD build-many-tools.bash /build-many-tools.bash
ADD build-libabigail.bash /build-libabigail.bash
ADD config.sub /config.sub
ADD config.guess /config.guess
RUN cd / && sha256sum --check --ignore-missing < tool-checksums
RUN cd / && ./build-libabigail.bash
RUN cd / && ./build-many-tools.bash
14 changes: 14 additions & 0 deletions build-libabigail.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
: "${PARALLELISM:=$(nproc)}"
set -xe

mkdir libabigail
cd libabigail
tar -xvf /libabigail-*.tar.xz --strip-components=1
mkdir _build
cd _build
../configure
make -O -j"${PARALLELISM}"
make -O -j"${PARALLELISM}" install
cd /
rm -rf /libabigail*
2 changes: 2 additions & 0 deletions tool-checksums
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
46ee4b6f5c408ee17c0415b8e61953ca6ef6bb2c3fd9d7dbdd3423593dbf269b binutils-2_40.tar.gz
de143cb61dcaa756c05f56ff35144316d810615819518a33e34754f064c4a7d8 linux-6.4.7.tar.xz
b61f55a752b329ab43dd77a1379ad3963abd65c9016073fcec96fb58f10d2c92 gcc-13.2.0.tar.gz
bc214c89f3b7ab8f20113a7c7aa40a207d41574d7ec25c2520501420d8019eb0 libabigail-2.3.tar.xz
5fe76b6344188a95f693b84e1b8731443d274a4c4b0ebee18fc00d9aedac8509 libabigail-2.4.tar.xz

0 comments on commit 0410c28

Please sign in to comment.