From a3205086cb4df50258b8accff9f7bee70566ea9c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 11 Jun 2015 08:12:27 -0400 Subject: flashrom: Reduce enabled CONFIG_* options This reduces the dependencies (e.g. libusb is no longer needed), the size of flashrom binaries, and the flashrom build time. --- (limited to 'resources/scripts/helpers/build') diff --git a/resources/scripts/helpers/build/module/flashrom b/resources/scripts/helpers/build/module/flashrom index 0d2d1bf..88b2772 100755 --- a/resources/scripts/helpers/build/module/flashrom +++ b/resources/scripts/helpers/build/module/flashrom @@ -24,6 +24,38 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e +config=' + CONFIG_INTERNAL=yes + CONFIG_SERPROG=no + CONFIG_RAYER_SPI=no + CONFIG_PONY_SPI=no + CONFIG_NIC3COM=no + CONFIG_GFXNVIDIA=no + CONFIG_SATASII=no + CONFIG_ATAHPT=no + CONFIG_ATAVIA=no + CONFIG_FT2232_SPI=no + CONFIG_USBBLASTER_SPI=no + CONFIG_MSTARDDC_SPI=no + CONFIG_PICKIT2_SPI=no + CONFIG_DUMMY=no + CONFIG_DRKAISER=no + CONFIG_NICREALTEK=no + CONFIG_NICNATSEMI=no + CONFIG_NICINTEL=no + CONFIG_NICINTEL_SPI=no + CONFIG_NICINTEL_EEPROM=no + CONFIG_OGP_SPI=no + CONFIG_BUSPIRATE_SPI=no + CONFIG_DEDIPROG=no + CONFIG_SATAMV=no + CONFIG_LINUX_SPI=yes + CONFIG_IT8212=no + CONFIG_PRINT_WIKI=no + CONFIG_EVERYTHING=no + CONFIG_BITBANG_SPI=no + ' + # Build "flashrom" (utility for flashing/dumping ROM's) # -------------------------------------------------------------------- @@ -33,12 +65,12 @@ cd "flashrom/" make clean if (( $# != 1 )); then - make + make ${config} else if [ "${1}" = "static" ]; then - make SHARED=0 CC='gcc -static' + make ${config} SHARED=0 CC='gcc -static' else - make + make ${config} fi fi @@ -59,12 +91,12 @@ do make clean if (( $# != 1 )); then - make + make ${config} else if [ "${1}" = "static" ]; then - make SHARED=0 CC='gcc -static' + make ${config} SHARED=0 CC='gcc -static' else - make + make ${config} fi fi -- cgit v0.9.1