[coreboot-gerrit] Patch set updated for coreboot: Set up 3rdparty/libhwbase

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Mon Oct 10 16:01:34 CEST 2016


Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16948

-gerrit

commit b87b93c999b901fb11add318895edd580b53ab69
Author: Nico Huber <nico.huber at secunet.com>
Date:   Sun Oct 9 12:12:52 2016 +0200

    Set up 3rdparty/libhwbase
    
    `libhwbase` is a SPARK library that contains some basic support for i/o
    access, debugging, timers. Just what I put around `libgfxinit`, to make
    it build standalone.
    
    Change-Id: I1918680c14696215522e1c5dae072235bb4e71a3
    Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
 .gitmodules        |  3 +++
 3rdparty/libhwbase |  1 +
 Makefile.inc       | 24 ++++++++++++++++--------
 3 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index ad6b899..c545ccd 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -15,3 +15,6 @@
 [submodule "3rdparty/chromeec"]
 	path = 3rdparty/chromeec
 	url = ../chrome-ec.git
+[submodule "libhwbase"]
+	path = 3rdparty/libhwbase
+	url = ../libhwbase.git
diff --git a/3rdparty/libhwbase b/3rdparty/libhwbase
new file mode 160000
index 0000000..5e9b1b5
--- /dev/null
+++ b/3rdparty/libhwbase
@@ -0,0 +1 @@
+Subproject commit 5e9b1b50e7ac90f68ca2ea798ef656ac863c2851
diff --git a/Makefile.inc b/Makefile.inc
index c7f1d04..69b71a2 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -562,14 +562,22 @@ gitconfig:
 			chmod +x .git/hooks/$$hook;		     \
 		fi;						     \
 	done
-	# Now set up thehooks for 3rdparty/blobs
-	if [ -d .git/modules/3rdparty/blobs/hooks -a \
-	\( util/gitconfig/commit-msg -nt .git/modules/3rdparty/blobs/hooks/commit-msg -o \
-	! -x .git/modules/3rdparty/blobs/hooks/commit-msg \) ]; then \
-		sed -e "s,%MAKE%,$(MAKE),g" util/gitconfig/commit-msg > .git/modules/3rdparty/blobs/hooks/commit-msg; \
-		chmod +x .git/modules/3rdparty/blobs/hooks/commit-msg; \
-	fi
-	[ -d 3rdparty/blobs ] && cd 3rdparty/blobs && git config remote.origin.push HEAD:refs/for/master
+	# Now set up thehooks for 3rdparty/
+	for hooks in .git/modules/{3rdparty/blobs,libhwbase}/hooks; do					\
+		if [ -d $$hooks -a									\
+		\( util/gitconfig/commit-msg -nt $$hooks/commit-msg -o					\
+			! -x $$hooks/commit-msg \) ]; then						\
+			sed -e "s,%MAKE%,$(MAKE),g" util/gitconfig/commit-msg > $$hooks/commit-msg; 	\
+			chmod +x $$hooks/commit-msg; 							\
+		fi											\
+	done
+	for d in 3rdparty/{blobs,libhwbase}; do 				\
+		if [ -d $$d ]; then						\
+			cd $$d;							\
+			git config remote.origin.push HEAD:refs/for/master; 	\
+			cd ../..;						\
+		fi;								\
+	done
 	git config remote.origin.push HEAD:refs/for/master
 	git config alias.sup '!git submodule update --remote --rebase && git submodule update --init --checkout'
 	git config alias.sup-destroy '!git submodule deinit --force "$$(git rev-parse --show-toplevel)"; git submodule init && git submodule update --checkout'



More information about the coreboot-gerrit mailing list