Skip to content

Commit

Permalink
Clean up logging
Browse files Browse the repository at this point in the history
  • Loading branch information
brimstone committed Jan 15, 2017
1 parent 581c0a3 commit 5fd6c29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ PWD = $(shell pwd)
PCD_VERSION ?= $(shell git describe --tags --always --dirty)
export PCD_VERSION

LOG ?= >/dev/null 2>/dev/null
ifdef VERBOSE
LOG = >&2
endif

ifneq ($(CACHE),)
cachedir := -v /tmp/pcd/download:/buildroot/download
endif
Expand All @@ -19,7 +24,7 @@ ifneq (${DOCKER},)
.DEFAULT_GOAL := docker
.PHONY: docker_image docker
docker_image:
${DOCKER} build -t pcd:${PCD_VERSION} . >&2
${DOCKER} build -t pcd:${PCD_VERSION} . ${LOG}

docker: docker_image
@echo "Building with docker"
Expand Down Expand Up @@ -47,11 +52,6 @@ ifdef KERNEL
KVMSOURCE=-kernel output/pcd-${PCD_VERSION}.vmlinuz -append "console=ttyS0 initcall_debug"
endif

LOG ?= >/dev/null 2>/dev/null
ifdef VERBOSE
LOG = >&2
endif

.PHONY: all
all: kernel.lz

Expand Down

0 comments on commit 5fd6c29

Please sign in to comment.