xref: /DragonOS/user/port/binutils/2.38/Dockerfile (revision 40314b30ab2a7e1fd06a05a00f693e644e446035)
1# 本Dockerfile用于构建binutils 2.38的交叉编译环境
2
3FROM ubuntu:jammy
4
5# Install dependencies
6RUN apt-get update && apt-get install -y \
7    autoconf2.69 \
8    automake \
9    bison \
10    build-essential \
11    flex \
12    gawk \
13    gettext \
14    git \
15    libgmp-dev \
16    libmpc-dev \
17    libmpfr-dev \
18    libncurses5-dev \
19    libtool \
20    m4 \
21    make \
22    ninja-build \
23    python3 \
24    texinfo \
25    wget \
26    xz-utils \
27    zlib1g-dev \
28    wget \
29    && rm /usr/bin/autoconf && ln -s /usr/bin/autoconf2.69 /usr/bin/autoconf
30
31WORKDIR /opt
32
33# download automake 1.15.1
34RUN wget http://mirrors.ustc.edu.cn/gnu/automake/automake-1.15.1.tar.xz && \
35    tar -xvf automake-1.15.1.tar.xz && \
36    cd automake-1.15.1 && \
37    ./configure --prefix=/usr && \
38    make && \
39    make install && \
40    cd .. && \
41    rm -rf automake-1.15.1 automake-1.15.1.tar.xz
42