Skip to content

Commit 1227b1c

Browse files
committed
ci: narrow minimal bootloader variants by media
1 parent 7000f97 commit 1227b1c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/BPI-R4-Minimal-MTK-Bootloader-Test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,30 @@ jobs:
9292
9393
echo "=== Step 3: Config ==="
9494
cp -rf ../SEED/BPI-R4-MINIMAL/config.seed .config
95+
96+
echo "=== Step 3b: Narrow bootloader variants for $INPUT_MEDIA ==="
97+
case "$INPUT_MEDIA" in
98+
emmc)
99+
cat >> .config <<'EOF'
100+
# CONFIG_PACKAGE_trusted-firmware-a-mt7988-sdmmc-comb is not set
101+
# CONFIG_PACKAGE_trusted-firmware-a-mt7988-spim-nand-ubi-comb is not set
102+
# CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-sdmmc is not set
103+
# CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-snand is not set
104+
CONFIG_PACKAGE_trusted-firmware-a-mt7988-emmc-comb=y
105+
CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-emmc=y
106+
EOF
107+
;;
108+
sd|*)
109+
cat >> .config <<'EOF'
110+
# CONFIG_PACKAGE_trusted-firmware-a-mt7988-emmc-comb is not set
111+
# CONFIG_PACKAGE_trusted-firmware-a-mt7988-spim-nand-ubi-comb is not set
112+
# CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-emmc is not set
113+
# CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-snand is not set
114+
CONFIG_PACKAGE_trusted-firmware-a-mt7988-sdmmc-comb=y
115+
CONFIG_PACKAGE_u-boot-mt7988_bananapi_bpi-r4-sdmmc=y
116+
EOF
117+
;;
118+
esac
95119

96120
echo "=== Step 4: Defconfig ==="
97121
make defconfig

0 commit comments

Comments
 (0)