diff options
Diffstat (limited to 'resources/scripts/helpers/build/module/flashrom')
-rwxr-xr-x | resources/scripts/helpers/build/module/flashrom | 44 |
1 files changed, 38 insertions, 6 deletions
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 |