Skip to content

Commit 3339b9a

Browse files
committed
Initial commit
Signed-off-by: Antony Pavlov <[email protected]>
0 parents  commit 3339b9a

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.log

Dockerfile.debian10

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM debian:10
2+
3+
LABEL comment="barebox Debian 10 build environment" \
4+
maintainer="Antony Pavlov <[email protected]>"
5+
6+
RUN apt-get update \
7+
&& apt-get install -y --no-install-recommends \
8+
git less \
9+
make gcc libc6-dev \
10+
flex bison \
11+
inkscape \
12+
bzip2 lzop lz4 pkg-config xz-utils \
13+
libusb-1.0-0-dev libssl-dev libncursesw5-dev \
14+
wget ca-certificates \
15+
gcc-mips-linux-gnu \
16+
gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf libc6-dev-armel-cross gcc-aarch64-linux-gnu \
17+
&& apt-get clean
18+
19+
# Simple root password in case we want to customize the container
20+
RUN echo "root:root" | chpasswd
21+
22+
# Add default user
23+
ENV BUILDUSER builduser
24+
ENV WORKDIR /home/$BUILDUSER
25+
26+
RUN useradd -ms /bin/bash $BUILDUSER
27+
28+
USER $BUILDUSER
29+
30+
WORKDIR $WORKDIR
31+
32+
COPY --chown=$BUILDUSER:$BUILDUSER MKALL-barebox.sh $WORKDIR
33+
34+
ENTRYPOINT [ "/bin/bash" ]

MKALL-barebox.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/sh
2+
3+
JOBS="-j 5"
4+
5+
set -x
6+
set -e
7+
8+
git clone git://git.pengutronix.de/git/barebox.git
9+
10+
cd barebox
11+
12+
# Fake binary images
13+
# see also Documentation/boards/imx/nxp-imx8m*-evk.rst
14+
touch arch/arm/boards/globalscale-mirabox/binary.0
15+
touch arch/arm/boards/lenovo-ix4-300d/binary.0
16+
touch arch/arm/boards/marvell-armada-xp-db/binary.0
17+
touch arch/arm/boards/marvell-armada-xp-gp/binary.0
18+
touch arch/arm/boards/netgear-rn104/binary.0
19+
touch arch/arm/boards/netgear-rn2120/binary.0
20+
touch arch/arm/boards/plathome-openblocks-ax3/binary.0
21+
touch arch/arm/boards/turris-omnia/binary.0
22+
touch firmware/fsl_fman_ucode_ls1046_r1.0_106_4_18.bin
23+
touch firmware/imx8mm-bl31.bin
24+
touch firmware/imx8mq-bl31.bin
25+
touch firmware/lpddr4_pmu_train_1d_dmem.bin
26+
touch firmware/lpddr4_pmu_train_1d_imem.bin
27+
touch firmware/lpddr4_pmu_train_2d_dmem.bin
28+
touch firmware/lpddr4_pmu_train_2d_imem.bin
29+
touch firmware/ppa-ls1046a.bin
30+
31+
CROSS_COMPILE=arm-linux-gnueabi- \
32+
CROSS_COMPILE_imx_v8_defconfig=aarch64-linux-gnu- \
33+
CROSS_COMPILE_layerscape_defconfig=aarch64-linux-gnu- \
34+
CROSS_COMPILE_qemu_virt64_defconfig=aarch64-linux-gnu- \
35+
CROSS_COMPILE_zynqmp_defconfig=aarch64-linux-gnu- \
36+
./MAKEALL -a arm $JOBS
37+
38+
CROSS_COMPILE=mips-linux-gnu- ./MAKEALL -a mips $JOBS
39+
40+
./MAKEALL -a x86 $JOBS
41+
42+
./MAKEALL -a sandbox $JOBS

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# docker-barebox-mkall
2+
3+
barebox MKALL build environment in Docker.
4+
5+
# Usage
6+
7+
```
8+
IMAGE=barebox-debian10
9+
10+
docker build -t $IMAGE -f Dockerfile.debian10 .
11+
docker run -it $IMAGE MKALL-barebox.sh 2>&1 | tee $IMAGE-$(date +'%Y%m%d%H%M').log
12+
```

0 commit comments

Comments
 (0)