csv: Add header

This commit is contained in:
Johan Gunnarsson 2019-06-01 14:28:14 +02:00
parent da6631189e
commit 7b80d8415a
6 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,5 @@
Board ID,Board name,Board maker,Chip ID,U-Boot defconfig,Build tuple,Boot type,Device tree
raspberrypi_2b,Raspberry Pi 2 B,Raspberry Pi Foundation,bcm2836,rpi_2_defconfig,arm-linux-gnueabihf,rpi,bcm2836-rpi-2-b raspberrypi_2b,Raspberry Pi 2 B,Raspberry Pi Foundation,bcm2836,rpi_2_defconfig,arm-linux-gnueabihf,rpi,bcm2836-rpi-2-b
raspberrypi_3b,Raspberry Pi 3 B,Raspberry Pi Foundation,bcm2837,rpi_3_defconfig,aarch64-linux-gnu,rpi,bcm2837-rpi-3-b raspberrypi_3b,Raspberry Pi 3 B,Raspberry Pi Foundation,bcm2837,rpi_3_defconfig,aarch64-linux-gnu,rpi,bcm2837-rpi-3-b
raspberrypi_3a_plus,Raspberry Pi 3 A+,Raspberry Pi Foundation,bcm2837,rpi_3_defconfig,aarch64-linux-gnu,rpi,bcm2837-rpi-3-a-plus raspberrypi_3a_plus,Raspberry Pi 3 A+,Raspberry Pi Foundation,bcm2837,rpi_3_defconfig,aarch64-linux-gnu,rpi,bcm2837-rpi-3-a-plus

1 raspberrypi_2b Board ID Raspberry Pi 2 B Board name Raspberry Pi Foundation Board maker bcm2836 Chip ID rpi_2_defconfig U-Boot defconfig arm-linux-gnueabihf Build tuple rpi Boot type bcm2836-rpi-2-b Device tree
1 Board ID Board name Board maker Chip ID U-Boot defconfig Build tuple Boot type Device tree
2 raspberrypi_2b Raspberry Pi 2 B Raspberry Pi Foundation bcm2836 rpi_2_defconfig arm-linux-gnueabihf rpi bcm2836-rpi-2-b
3 raspberrypi_2b raspberrypi_3b Raspberry Pi 2 B Raspberry Pi 3 B Raspberry Pi Foundation Raspberry Pi Foundation bcm2836 bcm2837 rpi_2_defconfig rpi_3_defconfig arm-linux-gnueabihf aarch64-linux-gnu rpi bcm2836-rpi-2-b bcm2837-rpi-3-b
4 raspberrypi_3b raspberrypi_3a_plus Raspberry Pi 3 B Raspberry Pi 3 A+ Raspberry Pi Foundation Raspberry Pi Foundation bcm2837 bcm2837 rpi_3_defconfig rpi_3_defconfig aarch64-linux-gnu aarch64-linux-gnu rpi bcm2837-rpi-3-b bcm2837-rpi-3-a-plus
5 raspberrypi_3a_plus raspberrypi_3b_plus Raspberry Pi 3 A+ Raspberry Pi 3 B+ Raspberry Pi Foundation Raspberry Pi Foundation bcm2837 bcm2837 rpi_3_defconfig rpi_3_defconfig aarch64-linux-gnu aarch64-linux-gnu rpi bcm2837-rpi-3-a-plus bcm2837-rpi-3-b-plus

View File

@ -1,3 +1,5 @@
Chip ID,Chip name,Chip maker,CPU,CPU architecture
bcm2836,BCM2836,Broadcom,ARM Cortex A7,armv7 bcm2836,BCM2836,Broadcom,ARM Cortex A7,armv7
bcm2837,BCM2837,Broadcom,ARM Cortex A53,armv8 bcm2837,BCM2837,Broadcom,ARM Cortex A53,armv8

1 bcm2836 Chip ID BCM2836 Chip name Broadcom Chip maker ARM Cortex A7 CPU armv7 CPU architecture
1 Chip ID Chip name Chip maker CPU CPU architecture
2 bcm2836 BCM2836 Broadcom ARM Cortex A7 armv7
3 bcm2836 bcm2837 BCM2836 BCM2837 Broadcom ARM Cortex A7 ARM Cortex A53 armv7 armv8
4 bcm2837 allwinner-a10 BCM2837 A10 Broadcom Allwinner ARM Cortex A53 ARM Cortex A8 armv8 armv7
5 allwinner-a10 allwinner-a10s A10 A10s Allwinner ARM Cortex A8 ARM Cortex A8 armv7 armv7

View File

@ -1,3 +1,5 @@
OS,Dist,Arch
debian,stretch,armhf debian,stretch,armhf
debian,stretch,arm64 debian,stretch,arm64

1 debian OS stretch Dist armhf Arch
1 OS Dist Arch
2 debian stretch armhf
3 debian debian stretch stretch armhf arm64
4 debian debian stretch buster arm64 armhf
5 debian debian buster buster armhf arm64

View File

@ -14,7 +14,7 @@ mkdir -p /tmp/debimg/log || exit
D=$(mktemp -d -p "${LOG_DIR}" rebuild-boots-XXXXXX) D=$(mktemp -d -p "${LOG_DIR}" rebuild-boots-XXXXXX)
IFS=, IFS=,
grep -vE "^#|^\s*$" boards.csv | while read BOARD_ID MODEL MAKE CHIP DEFCONFIG TUPLE TYPE DTB _ grep -vE "^#|^\s*$" boards.csv | tail -n +2 | while read BOARD_ID MODEL MAKE CHIP DEFCONFIG TUPLE TYPE DTB _
do do
docker run --rm \ docker run --rm \
-v "${ARTIFACTS_DIR}":/artifacts \ -v "${ARTIFACTS_DIR}":/artifacts \

View File

@ -12,7 +12,7 @@ mkdir -p /tmp/debimg/log || exit
D=$(mktemp -d -p "${LOG_DIR}" rebuild-debians-XXXXXX) D=$(mktemp -d -p "${LOG_DIR}" rebuild-debians-XXXXXX)
IFS=, IFS=,
grep -vE "^#|^\s*$" debians.csv | while read OS DIST ARCH _ grep -vE "^#|^\s*$" debians.csv | tail -n +2 | while read OS DIST ARCH _
do do
docker run --rm \ docker run --rm \
-v "${ARTIFACTS_DIR}":/artifacts \ -v "${ARTIFACTS_DIR}":/artifacts \

View File

@ -9,6 +9,7 @@ isa_to_arch = {
} }
with open("chips.csv") as csvfile: with open("chips.csv") as csvfile:
chipsf = csv.reader(csvfile) chipsf = csv.reader(csvfile)
next(chipsf)
for row in chipsf: for row in chipsf:
if not row: if not row:
continue continue
@ -17,6 +18,7 @@ with open("chips.csv") as csvfile:
chips[row[0]] = row chips[row[0]] = row
with open("boards.csv") as csvfile: with open("boards.csv") as csvfile:
boardsf = csv.reader(csvfile) boardsf = csv.reader(csvfile)
next(boardsf)
for row in boardsf: for row in boardsf:
if not row: if not row:
continue continue