From c04cd275893baa41f7f30cc3ccbd7f10a2ae2044 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 13 Feb 2015 20:07:02 -0500 Subject: bucts: Make it build without git --- 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 +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 + -- cgit v0.9.1