2018-02-26 12:47:29 +00:00
|
|
|
FROM debian:9
|
|
|
|
|
|
|
|
WORKDIR /home/rb
|
|
|
|
ENV HOME /home/rb
|
|
|
|
|
|
|
|
# Install tools needed
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
git \
|
|
|
|
perl \
|
|
|
|
curl \
|
|
|
|
texinfo \
|
|
|
|
flex \
|
|
|
|
bison \
|
|
|
|
bzip2 \
|
|
|
|
gzip \
|
|
|
|
zip \
|
|
|
|
patch \
|
|
|
|
automake \
|
|
|
|
libtool \
|
|
|
|
libtool-bin \
|
|
|
|
autoconf \
|
|
|
|
libmpc-dev \
|
|
|
|
gawk \
|
|
|
|
python \
|
|
|
|
python-lzo \
|
|
|
|
python-setuptools \
|
|
|
|
mtd-utils \
|
|
|
|
xorriso && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Clone rockbox repository
|
|
|
|
RUN cd /home/rb && \
|
2018-06-13 11:28:38 +00:00
|
|
|
git clone http://gerrit.rockbox.org/p/rockbox
|
2018-02-26 12:47:29 +00:00
|
|
|
|
|
|
|
# Build cross toolchain (It takes quite long)
|
2018-06-13 11:28:38 +00:00
|
|
|
RUN cd /home/rb/rockbox && \
|
2018-02-26 12:47:29 +00:00
|
|
|
./tools/rockboxdev.sh --target=y
|
|
|
|
|
|
|
|
# Install tools for unpacking ubifs
|
|
|
|
RUN cd /home/rb && \
|
|
|
|
git clone https://github.com/jrspruitt/ubi_reader.git && \
|
|
|
|
cd /home/rb/ubi_reader && \
|
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
# Copy build script
|
2018-06-13 11:28:38 +00:00
|
|
|
RUN cp /home/rb/rockbox/tools/agptek_rocker/bootloader_install.sh /usr/local/bin && \
|
2018-02-26 12:47:29 +00:00
|
|
|
chmod 755 /usr/local/bin/bootloader_install.sh
|