aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-05-15 09:41:33 +0200
committerStephane Desneux <stephane.desneux@iot.bzh>2017-05-15 09:41:33 +0200
commita10118ef3bd50dc146452d7b2f0c6cd9c7d08b22 (patch)
treea9e535a2e3e252cfaebd96f7e1b5390359676385
parentce833be819475cc2eeac8c90ea6587ea1b808b91 (diff)
add output log build_xxxxx.log
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 701b867..ae73342 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.*.sw*
INSTALL/DEBUG
+build*.log
diff --git a/Makefile b/Makefile
index 3771756..c1a92ba 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ build-debug: INSTALL/flavours/$(FLAVOUR).tasks
@echo "------------------- Building image $(NAME)-$(FLAVOUR) (debug mode) -------------------"
@touch INSTALL/DEBUG
@echo "FLAVOUR=$(FLAVOUR)" >INSTALL/flavour.conf
- @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) .
+ @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | tee build_$(FLAVOUR)_debug.log
@rm -f INSTALL/DEBUG INSTALL/flavour.conf
@docker images
@@ -89,7 +89,7 @@ build: INSTALL/flavours/$(FLAVOUR).tasks
@echo "------------------- Building image $(NAME)-$(FLAVOUR) -------------------"
@rm -f INSTALL/DEBUG
@echo "FLAVOUR=$(FLAVOUR)" >INSTALL/flavour.conf
- @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) .
+ @docker build --no-cache=true --rm --pull -t $(IMAGE_NAME) . | tee build_$(FLAVOUR).log
@rm -f INSTALL/flavour.conf
@docker images