A scripts repository that provides some docker build scripts for ARM.
Providing some scripts that help for use docker images
build_uboot is a docker build script that build uboot for rpi-zero.
- Download
ubootsource code
git clone https://github.com/u-boot/u-boot.git- Download
docker_buildscript
git clone https://github.com/CONG2019/script.git- Copy
build_ubootscript to uboot's root directory and entering uboot root directory
cp script/docker_env/build_uboot uboot/; cd uboot- Now you can build uboot through docker
# You can build as flow.
# Every time you run a command, it will start a new container which takes some time.
./build_uboot make rpi_0_w_defconfig
./build_uboot make -j4
# Or you can start docker first and then run build command in docker
./build_uboot
make rpi_0_w_defconfig
make -j4
exitbuild_arm is a docker build script use docker image cong2021/armenv. cong/2021/armenv provides some commonly used ARM's toolchains that build by ct-ng, You can use this image build your toolschain also.
- Download
build_armscript
git clone https://github.com/CONG2019/script.git- Copy
build_armscript to your working directory
cp script/docker_env/build_arm your_work_dir; cd your_work_dir- Start with build_arm
# Download docker image
./build_arm -i
# Show help
./build_arm -h
# Check docker image is ok
./build_arm -m rpi0 "arm-linux-gcc -v"
gcc version 11.2.0 (crosstool-NG 1.25.0)
# Build hello world
./build_arm -m rpi0 'arm-linux-gcc main.c -o hello_world'
# Start docker first and then run command in docker
./build_arm -m rpi0 '/bin/bash'
run command
... ...
exit
# Build your toolchains
./build_arm '/bin/bash' # Start docker
ct-ng list-samples
ct-ng armv6-unknown-linux-gnueabihf
ct-ng menuconfig
ct-ng build
exit