diff options
author | Klemens Nanni <contact@autoboot.org> | 2015-11-05 18:17:26 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-11-05 17:46:05 +0000 |
commit | 58caf14937c73246b1b2aca31b5c92c49332fb01 (patch) | |
tree | 5775506b5e64c505a04dec8229facb757001118e /resources/scripts/helpers | |
parent | 03196594ba97c9b3a29e3ebf4f0ce1af218b80ee (diff) | |
download | librebootfr-58caf14937c73246b1b2aca31b5c92c49332fb01.tar.gz librebootfr-58caf14937c73246b1b2aca31b5c92c49332fb01.zip |
Simplify ./build module routines
Diffstat (limited to 'resources/scripts/helpers')
-rwxr-xr-x | resources/scripts/helpers/build/module/coreboot | 25 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/module/flashrom | 6 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/module/grub | 13 | ||||
-rwxr-xr-x | resources/scripts/helpers/build/module/memtest86plus | 17 |
4 files changed, 17 insertions, 44 deletions
diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot index 756ca1cc..cfca2538 100755 --- a/resources/scripts/helpers/build/module/coreboot +++ b/resources/scripts/helpers/build/module/coreboot @@ -20,7 +20,7 @@ # # This script assumes that the working directory is the root -# of libreboot_src or git +# of git or release archive [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e @@ -30,20 +30,11 @@ set -u -e printf "Building the utilities in coreboot\n" -cd "coreboot/" +# crossgcc +# coreboot is 32-bit, so only build for i386 +make -j$(nproc) -BC coreboot crossgcc-i386 -# ----------------------------------------- -# Build the utilities required by libreboot -# ----------------------------------------- - -# cbfstool -cd "util/cbfstool/" -make -j"$(nproc)" - -# done. go back to coreboot dir -cd "../../" - -# done. go back to main libreboot_src directory -cd "../" - -printf "\n\n" +# cbfstool, ifdtool, cbmem, nvramtool +for util in {cbfs,ifd,nvram}tool cbmem; do + make -j$(nproc) -BC coreboot/util/${util} +done diff --git a/resources/scripts/helpers/build/module/flashrom b/resources/scripts/helpers/build/module/flashrom index c4cb3805..920b77dc 100755 --- a/resources/scripts/helpers/build/module/flashrom +++ b/resources/scripts/helpers/build/module/flashrom @@ -20,12 +20,12 @@ # # This script assumes that the working directory is the root -# of libreboot_src or git +# of git or release archive [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -# Build "flashrom" (utility for flashing/dumping ROM's) +# Build "flashrom" (utility for flashing/dumping ROMs) # -------------------------------------------------------------------- printf "Building flashrom\n" @@ -80,5 +80,3 @@ done mv "flashrom_normal" "flashrom" cd "../" - -printf "\n\n" diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub index 47589d54..030dd952 100755 --- a/resources/scripts/helpers/build/module/grub +++ b/resources/scripts/helpers/build/module/grub @@ -20,12 +20,12 @@ # # This script assumes that the working directory is the root -# of libreboot_src or git +# of git or release archive [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -# Build utilies needed for building GRUB payloads +# Build GRUB as coreboot payload # --------------------------------------------------------------------- printf "Building GRUB\n" @@ -33,14 +33,9 @@ printf "Building GRUB\n" cd "grub/" # clean it first -[ -f Makefile ] && make distclean +make distclean # build grub ./autogen.sh ./configure --with-platform=coreboot -make -j"$(nproc)" - -printf "\n\n" - -# done. go back to main directory -cd "../" +make -j$(nproc) diff --git a/resources/scripts/helpers/build/module/memtest86plus b/resources/scripts/helpers/build/module/memtest86plus index 772acf18..bcc7fbf8 100755 --- a/resources/scripts/helpers/build/module/memtest86plus +++ b/resources/scripts/helpers/build/module/memtest86plus @@ -20,25 +20,14 @@ # # This script assumes that the working directory is the root -# of libreboot_src or git +# of git or release archive [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -# Build MemTest86+ payload (for GRUB) +# Build MemTest86+ payload # -------------------------------------------------------------------- printf "Building MemTest86+\n" -cd "memtest86plus/" - -# clean it first -make clean - -# build memtest86+ -make -j"$(nproc)" - -# done. go back to main directory -cd "../" - -printf "\n\n" +make -j$(nproc) -BC memtest86plus |