Skip to content

Commit

Permalink
make: support buildimage to be git submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Wataru Ishida <[email protected]>
  • Loading branch information
Wataru Ishida committed Oct 30, 2018
1 parent 6a37365 commit e5965c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ OVERLAY_MODULE_CHECK := lsmod | grep "^overlay " > /dev/null 2>&1 || (echo "ERRO

BUILD_TIMESTAMP := $(shell date +%Y%m%d\.%H%M%S)

GIT_DIRECTORY := $(shell file .git | grep -q ASCII && awk '{split($$2, ary, ".git"); print ary[1]}' .git | xargs realpath || pwd )

DOCKER_RUN := docker run --rm=true --privileged \
-v $(PWD):/sonic \
-w /sonic \
-v $(GIT_DIRECTORY):$(GIT_DIRECTORY) \
-w $(PWD) \
-e "http_proxy=$(http_proxy)" \
-e "https_proxy=$(https_proxy)" \
-i$(if $(TERM),t,)
Expand Down

0 comments on commit e5965c0

Please sign in to comment.