csv: Add header
This commit is contained in:
parent
da6631189e
commit
7b80d8415a
|
|
@ -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,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,3 +1,5 @@
|
||||||
|
OS,Dist,Arch
|
||||||
|
|
||||||
debian,stretch,armhf
|
debian,stretch,armhf
|
||||||
debian,stretch,arm64
|
debian,stretch,arm64
|
||||||
|
|
||||||
|
|
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
|
||||||
|
|
@ -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 \
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue