summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/module
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-02-27 06:23:12 (EST)
committer Francis Rowe <info@gluglug.org.uk>2016-02-27 11:06:09 (EST)
commit756ee1f9eb4583b127b2233666643d16ad7fd8d2 (patch)
tree55c7e7d61b4efe1a73e27eea3acb7c9a8693a8dd /resources/scripts/helpers/build/module
parentfa2cf05665cac94ea797555e543c34222cb84dc6 (diff)
downloadlibreboot-756ee1f9eb4583b127b2233666643d16ad7fd8d2.zip
libreboot-756ee1f9eb4583b127b2233666643d16ad7fd8d2.tar.gz
libreboot-756ee1f9eb4583b127b2233666643d16ad7fd8d2.tar.bz2
use only 1 crossgcc revision in libreboot
Diffstat (limited to 'resources/scripts/helpers/build/module')
-rwxr-xr-xresources/scripts/helpers/build/module/coreboot36
1 files changed, 18 insertions, 18 deletions
diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot
index 07659cd..d3e86cd 100755
--- a/resources/scripts/helpers/build/module/coreboot
+++ b/resources/scripts/helpers/build/module/coreboot
@@ -34,24 +34,24 @@ printf "Building the utilities in coreboot\n"
for payload in coreboot/*; do
for board in "${payload}/"*; do
- if [ "${payload##*/}" = "crossgcc" ]; then # build crossgcc
-
- for architecture in i386 arm; do
- make -j$(nproc) -BC "${board}/" crossgcc-${architecture}
- done
- else # build other utils
- # cbfstool, cbmem, nvramtool
- for util in {cbfs,nvram}tool cbmem; do
- make -BC "${board}/util/${util}"
- done
- # create symlink to crossgcc
- (
- boardconfig_path="resources/libreboot/config/${payload##*/}/${board##*/}"
- cbrevision="$(cat "${boardconfig_path}/cbrevision")"
- cd "${board}/util/"
- ln -s "../../../crossgcc/${cbrevision}/util/crossgcc/" crossgcc
- )
- fi
+ # cbfstool, cbmem, nvramtool
+ for util in {cbfs,nvram}tool cbmem; do
+ make -BC "${board}/util/${util}"
+ done
+ # create symlink to crossgcc
+ (
+ boardconfig_path="resources/libreboot/config/${payload##*/}/${board##*/}"
+ cbrevision="$(cat "${boardconfig_path}/cbrevision")"
+ cd "${board}/util/"
+ ln -s "../../../../crossgcc/util/crossgcc/" crossgcc
+ )
done
done
+
+# Now build crossgcc
+(
+cd "crossgcc/"
+make crossgcc-i386
+make crossgcc-arm
+)