[coreboot-gerrit] Change in coreboot[master]: util/docker: Attach docker-build-coreboot target to top level make

Martin Roth (Code Review) gerrit at coreboot.org
Mon May 28 01:38:43 CEST 2018


Martin Roth has uploaded this change for review. ( https://review.coreboot.org/26596


Change subject: util/docker: Attach docker-build-coreboot target to top level make
......................................................................

util/docker: Attach docker-build-coreboot target to top level make

This allows users to build coreboot targets inside the coreboot-sdk
docker container.

Change-Id: I587b7d3cfce490c0b5b71928d90fbc1f4037d002
Signed-off-by: Martin Roth <martinroth at google.com>
---
M Makefile
M Makefile.inc
A util/docker/Makefile.inc
3 files changed, 28 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/96/26596/1

diff --git a/Makefile b/Makefile
index 4aa179d..951f723 100644
--- a/Makefile
+++ b/Makefile
@@ -130,6 +130,7 @@
 include $(TOPLEVEL)/Makefile.inc
 include $(TOPLEVEL)/payloads/Makefile.inc
 include $(TOPLEVEL)/util/testing/Makefile.inc
+include $(TOPLEVEL)/util/docker/Makefile.inc
 -include $(TOPLEVEL)/site-local/Makefile.inc
 real-all:
 	@echo "Error: Expected config file ($(DOTCONFIG)) not present." >&2
diff --git a/Makefile.inc b/Makefile.inc
index ec086b9..e156a38 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -100,7 +100,7 @@
 subdirs-y += payloads payloads/external
 
 subdirs-y += site-local
-subdirs-y += util/checklist util/testing
+subdirs-y += util/checklist util/testing util/docker
 
 #######################################################################
 # Add source classes and their build options
diff --git a/util/docker/Makefile.inc b/util/docker/Makefile.inc
new file mode 100644
index 0000000..133aec5
--- /dev/null
+++ b/util/docker/Makefile.inc
@@ -0,0 +1,26 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2016 Google, Inc.
+##
+## 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; version 2 of the License.
+##
+## 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.
+##
+
+DOCKER_DIR = $(top)/util/docker
+
+help-docker help::
+	@echo  '*** Docker targets ***'
+	@echo  '  docker-build-coreboot  - Run coreboot build under coreboot-sdk docker image.'
+	@echo  '    Set the BUILD_CMD="target var=val" variable to build different targets.'
+	@echo  '      Example:  make docker-build-coreboot BUILD_CMD="test-basic V=1"'
+	@echo
+
+docker-build-coreboot:
+	$(MAKE) -C $(DOCKER_DIR) docker-build-coreboot

-- 
To view, visit https://review.coreboot.org/26596
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I587b7d3cfce490c0b5b71928d90fbc1f4037d002
Gerrit-Change-Number: 26596
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180527/5ee8a146/attachment-0001.html>


More information about the coreboot-gerrit mailing list