Skip to content

CONG2019/script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

A scripts repository that provides some docker build scripts for ARM.

Docker env

Providing some scripts that help for use docker images

build_uboot

build_uboot is a docker build script that build uboot for rpi-zero.

  1. Download uboot source code
git clone https://github.com/u-boot/u-boot.git
  1. Download docker_build script
git clone https://github.com/CONG2019/script.git
  1. Copy build_uboot script to uboot's root directory and entering uboot root directory
cp script/docker_env/build_uboot uboot/; cd uboot
  1. 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
exit

build_arm

build_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.

  1. Download build_arm script
git clone https://github.com/CONG2019/script.git
  1. Copy build_arm script to your working directory
cp script/docker_env/build_arm your_work_dir; cd your_work_dir
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages