Parameterize builds better
This commit is contained in:
parent
1311da63ca
commit
10906e46a7
|
|
@ -0,0 +1,6 @@
|
|||
# Raspberry Pi boards
|
||||
rpi_2b,Raspberry Pi 2 B,Raspberry Pi Foundation,bcm2836,rpi_2_defconfig,arm-linux-gnueabihf,rpi
|
||||
rpi_3b,Raspberry Pi 3 B,Raspberry Pi Foundation,bcm2837,rpi_3_defconfig,aarch64-linux-gnu,rpi
|
||||
|
||||
# Allwinner A20 (sun7i) boards
|
||||
bananapi_m1,Banana Pi M1,Sinovoip,sun7i,Bananapi_defconfig,arm-linux-gnueabihf,allwinner
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
# Broadcom
|
||||
bcm2836,BCM2836,Broadcom,ARM Cortex A7,armv7
|
||||
bcm2837,BCM2837,Broadcom,ARM Cortex A53,armv8
|
||||
|
||||
# Allwinner
|
||||
sun7i,A20,Allwinner,ARM Cortex A7,armv7
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# Stable
|
||||
stretch,armhf
|
||||
stretch,arm64
|
||||
|
||||
# Testing
|
||||
buster,armhf
|
||||
buster,arm64
|
||||
|
21
rebuild
21
rebuild
|
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Rebuild everything
|
||||
|
||||
DOCKEROPTS1="--rm -v /tmp/artifacts:/artifacts"
|
||||
DOCKEROPTS2="--privileged $DOCKEROPTS1"
|
||||
|
||||
mkdir -p /tmp/artifacts || exit
|
||||
|
||||
# Build Docker image
|
||||
docker build -t debimg .
|
||||
|
||||
# Build bootloaders
|
||||
docker run $DOCKEROPTS1 debimg build-boot-allwinner "/artifacts/boot-bananapi" "Bananapi_defconfig" "arm-linux-gnueabihf"
|
||||
docker run $DOCKEROPTS1 debimg build-boot-rpi "/artifacts/boot-rpi2" "rpi_2_defconfig" "arm-linux-gnueabihf"
|
||||
docker run $DOCKEROPTS1 debimg build-boot-rpi "/artifacts/boot-rpi3" "rpi_3_defconfig" "aarch64-linux-gnu"
|
||||
|
||||
# Build root filesystems
|
||||
docker run $DOCKEROPTS2 debimg build-debian "/artifacts/debian-stretch-armhf" "armhf" "stretch"
|
||||
docker run $DOCKEROPTS2 debimg build-debian "/artifacts/debian-buster-armhf" "armhf" "buster"
|
||||
docker run $DOCKEROPTS2 debimg build-debian "/artifacts/debian-stretch-arm64" "arm64" "stretch"
|
||||
docker run $DOCKEROPTS2 debimg build-debian "/artifacts/debian-buster-arm64" "arm64" "buster"
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# Rebuilds boot images
|
||||
|
||||
docker build -t debimg .
|
||||
|
||||
mkdir -p /tmp/debimg/artifacts || exit
|
||||
|
||||
IFS=,
|
||||
grep -vE "^#|^\s*$" boards.csv | while read BOARD_ID MODEL MAKE CHIP DEFCONFIG TUPLE TYPE
|
||||
do
|
||||
docker run --rm \
|
||||
-v /tmp/debimg/artifacts:/artifacts \
|
||||
-v /tmp/debimg/u-boot.git:/tmp/debimg/u-boot.git \
|
||||
debimg \
|
||||
build-boot-"${TYPE}" /artifacts/boot-"${BOARD_ID}" "${DEFCONFIG}" "${TUPLE}"
|
||||
done
|
||||
unset IFS
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
# Rebuilds Debian images
|
||||
|
||||
docker build -t debimg .
|
||||
|
||||
mkdir -p /tmp/debimg/artifacts || exit
|
||||
|
||||
IFS=,
|
||||
grep -vE "^#|^\s*$" debians.csv | while read DIST ARCH
|
||||
do
|
||||
docker run --rm \
|
||||
-v /tmp/debimg/artifacts:/artifacts \
|
||||
--privileged \
|
||||
debimg \
|
||||
build-debian /artifacts/debian-"${DIST}"-"${ARCH}" "${ARCH}" "${DIST}"
|
||||
done
|
||||
unset IFS
|
||||
Loading…
Reference in New Issue