summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-06-11 08:12:27 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-06-11 08:18:58 (EDT)
commita3205086cb4df50258b8accff9f7bee70566ea9c (patch)
treece86fbc1e8f875cbeb9201f736f133a3a819f8ec /resources/scripts/helpers/build
parent32de3d015c4c419946d405afdbeb94d96872e64a (diff)
downloadlibreboot-a3205086cb4df50258b8accff9f7bee70566ea9c.zip
libreboot-a3205086cb4df50258b8accff9f7bee70566ea9c.tar.gz
libreboot-a3205086cb4df50258b8accff9f7bee70566ea9c.tar.bz2
flashrom: Reduce enabled CONFIG_* optionsfeature/flashrom-reduce-options
This reduces the dependencies (e.g. libusb is no longer needed), the size of flashrom binaries, and the flashrom build time.
Diffstat (limited to 'resources/scripts/helpers/build')
-rwxr-xr-xresources/scripts/helpers/build/module/flashrom44
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