summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-02-13 20:07:02 (EST)
committer Francis Rowe <info@gluglug.org.uk>2015-02-13 20:07:02 (EST)
commitc04cd275893baa41f7f30cc3ccbd7f10a2ae2044 (patch)
tree6235827bb8b69a551d485bfbbf989c8916328b39
parent419164f39279d29163f29e6ac1bb94144805ceae (diff)
downloadlibreboot-c04cd275893baa41f7f30cc3ccbd7f10a2ae2044.zip
libreboot-c04cd275893baa41f7f30cc3ccbd7f10a2ae2044.tar.gz
libreboot-c04cd275893baa41f7f30cc3ccbd7f10a2ae2044.tar.bz2
bucts: Make it build without git
-rwxr-xr-xbuild-release13
-rwxr-xr-xgetbucts1
-rw-r--r--resources/bucts/patch/0001-Makefile-don-t-use-git.patch24
3 files changed, 29 insertions, 9 deletions
diff --git a/build-release b/build-release
index 5e5f323..dbee700 100755
--- a/build-release
+++ b/build-release
@@ -88,15 +88,10 @@ cd libreboot_src/
# remove .git for libreboot project itself
rm -rf .git*
-# # bucts needs .git to stay, otherwise it won't compile
-# # We don't need .git* (please submit all upstreamable changes directly to bucts upstream)
-# # removing them, to reduce the size of the archive
-# cd bucts
-# rm -rf .git
-# rm -rf .gitignore
-# cd ../
-# # it was found to cause issues when deleting:
-# # GIT_DISCOVERY_ACROSS_FILESYSTEM not set
+# remove .git for bucts
+cd bucts/
+rm -rf .git*
+cd ../
# coreboot:
# the instructions for coreboot remain in getgb script
diff --git a/getbucts b/getbucts
index 03216ed..3c7205c 100755
--- a/getbucts
+++ b/getbucts
@@ -42,6 +42,7 @@ cd bucts
# -----------------------------------------------------------
git reset --hard dc27919d7a66a6e8685ce07c71aefa4f03ef7c07
+git am "../resources/bucts/patch/0001-Makefile-don-t-use-git.patch"
# we're done
cd ../
diff --git a/resources/bucts/patch/0001-Makefile-don-t-use-git.patch b/resources/bucts/patch/0001-Makefile-don-t-use-git.patch
new file mode 100644
index 0000000..6828520
--- /dev/null
+++ b/resources/bucts/patch/0001-Makefile-don-t-use-git.patch
@@ -0,0 +1,24 @@
+From 63312528ea81207865077ab2c75963e3660859f0 Mon Sep 17 00:00:00 2001
+From: Francis Rowe <info@gluglug.org.uk>
+Date: Sat, 14 Feb 2015 00:56:43 +0000
+Subject: [PATCH] Makefile: don't use git
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 68541e6..b5f43d5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+ CC:=gcc
+ OBJ:=bucts.o
+-VERSION:=$(shell git describe)
++VERSION:=withoutgit
+
+ ifeq ($(shell uname), FreeBSD)
+ CFLAGS = -I/usr/local/include
+--
+1.9.1
+