Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/68067 )
Change subject: [WIP] test_build.sh: Rework selection of programmers using Make ......................................................................
[WIP] test_build.sh: Rework selection of programmers using Make
Signed-off-by: Felix Singer felixsinger@posteo.net Change-Id: I18c3c9eb17e13168a51364cee2eff74c2cc0badf --- M test_build.sh 1 file changed, 18 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/67/68067/1
diff --git a/test_build.sh b/test_build.sh index 717df00..3733640 100755 --- a/test_build.sh +++ b/test_build.sh @@ -5,13 +5,6 @@
is_scan_build_env=0
-make_programmer_opts="INTERNAL INTERNAL_X86 SERPROG RAYER_SPI RAIDEN_DEBUG_SPI PONY_SPI NIC3COM \ - GFXNVIDIA SATASII ATAHPT ATAVIA ATAPROMISE FT2232_SPI USBBLASTER_SPI MSTARDDC_SPI \ - PICKIT2_SPI STLINKV3_SPI PARADE_LSPCON MEDIATEK_I2C_SPI REALTEK_MST_I2C_SPI DUMMY \ - DRKAISER NICREALTEK NICNATSEMI NICINTEL NICINTEL_SPI NICINTEL_EEPROM OGP_SPI \ - BUSPIRATE_SPI DEDIPROG DEVELOPERBOX_SPI SATAMV LINUX_MTD LINUX_SPI IT8212 \ - CH341A_SPI DIGILENT_SPI JLINK_SPI" - meson_programmer_opts="all auto group_ftdi group_i2c group_jlink group_pci group_serial group_usb \ atahpt atapromise atavia buspirate_spi ch341a_spi dediprog developerbox_spi \ digilent_spi drkaiser dummy ft2232_spi gfxnvidia internal it8212 \ @@ -27,6 +20,13 @@
build_make () { + excluded_option_list="CONFIG_NI845X_SPI CONFIG_INTERNAL_DMI CONFIG_PRINT_WIKI" + option_list=$(make print-configs | sed -n 's/^(CONFIG_.*)=(yes|no)$/\1/p') + + for option in ${excluded_option_list}; do + option_list=$(echo ${option_list} | sed "s/${option}//") + done + make clean make -j $(nproc) CONFIG_EVERYTHING=yes
@@ -36,7 +36,7 @@ return fi
- for option in ${make_programmer_opts}; do + for option in ${option_list}; do echo "Building ${option}" make clean make -j $(nproc) CONFIG_NOTHING=yes CONFIG_${option}=yes