summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rwxr-xr-xbuild-release8
-rw-r--r--docs/git/index.html13
-rwxr-xr-xmkextbuild61
4 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 4a14491..bfd4b59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,3 +28,5 @@
/mkgbe.h
/ich9fdgbe_8m.bin
/ich9fdgbe_4m.bin
+/tobuild/
+/tobuild.tar.xz
diff --git a/build-release b/build-release
index 379086c..d8cac16 100755
--- a/build-release
+++ b/build-release
@@ -377,6 +377,10 @@ rm -f libreboot_src/mkgbe.h
rm -f libreboot_src/ich9fdgbe_8m.bin
rm -f libreboot_src/ich9fdgbe_4m.bin
+# delete the "tobuild"
+rm -rf libreboot_src/tobuild/
+rm -f libreboot_src/tobuild.tar.xz
+
echo "Creating compressed libreboot_src release archive"
# create lzma compressed src archive
@@ -399,4 +403,8 @@ echo "DONE. See libreboot_src.tar.xz and libreboot_bin.tar.xz"
echo "NOTE FOR FCHMMR: don't forget to add ARM binaries for flashrom"
echo "NOTE FOR FCHMMR: don't forget to add i386 binaries for flashrom/bucts"
+# For those utilities that have to be built on the target
+./mkextbuild
+echo "The tarball tobuild.tar.xz has been created with everything needed to build these utilities"
+
# ------------------- DONE ----------------------
diff --git a/docs/git/index.html b/docs/git/index.html
index 34a694a..7aa2c6a 100644
--- a/docs/git/index.html
+++ b/docs/git/index.html
@@ -518,6 +518,19 @@
$ <b>./builddeps-flashrom static</b><br/>
$ <b>./builddeps-bucts static</b>
</p>
+
+ <p>
+ The same as above applies for ARM (except, building bucts on ARM is pointless, and for flashrom
+ you only need the normal executable since the lenovobios_sst and _macronix executables are meant
+ to run on an X60/T60 while lenovo bios is present, working around the security restrictions).
+ </p>
+
+ <p>
+ The script <b>mkextbuild</b> will generate a small source tarball called <b>tobuild.tar.xz</b> that
+ contains everything you need (including source) with which to build flashrom/bucts on these hosts.
+ The <b>build-release</b> script will have already executed this script for you, so the archive should
+ already exist.
+ </p>
<p>
You'll find that the files libreboot_bin.tar.xz and libreboot_src.tar.xz have been created.
diff --git a/mkextbuild b/mkextbuild
new file mode 100755
index 0000000..087e639
--- /dev/null
+++ b/mkextbuild
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+# mkextbuild script: prepare a small source archive for those utils
+# that don't easily cross-compile. Then the tarball can be extracted
+# on those machines with the target architecture, and compiled.
+#
+# Copyright (C) 2014 Francis Rowe <info@gluglug.org.uk>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+set -u -e -v
+
+# delete the old data
+rm -rf tobuild
+rm -f tobuild.tar.xz
+
+# this is where they will go
+mkdir tobuild
+
+# for reference (build dependencies)
+cp deps-trisquel tobuild/
+
+# flashrom
+cp -r flashrom tobuild/
+cd tobuild/flashrom/
+rm -f flashrom_lenovobios_sst flashrom_lenovobios_macronix
+make clean
+cd ../../
+mkdir tobuild/resources
+mkdir tobuild/resources/flashrom
+mkdir tobuild/resources/flashrom/patch
+cp -r resources/flashrom/patch/* tobuild/resources/flashrom/patch/
+cp builddeps-flashrom tobuild/
+
+# bucts
+cp -r bucts tobuild/
+cd tobuild/bucts/
+make clean
+cd ../../
+mkdir tobuild/resources/bucts
+mkdir tobuild/resources/bucts/patch
+cp -r resources/bucts/patch/* tobuild/resources/bucts/patch
+cp -r builddeps-bucts tobuild/
+
+# that is all. now tar it up
+tar cfJ tobuild.tar.xz tobuild
+
+# and delete the directory
+rm -rf tobuild/