From eeb7b00f603fbc9209f0d1afe05c090e104f234e Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 25 Oct 2022 10:41:53 -0300 Subject: [PATCH] Allow flash and cloning without build --- examples/ti/ti-ek-tm4c1294xl-http-server/Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/ti/ti-ek-tm4c1294xl-http-server/Makefile b/examples/ti/ti-ek-tm4c1294xl-http-server/Makefile index eb0f5b12..1b420010 100644 --- a/examples/ti/ti-ek-tm4c1294xl-http-server/Makefile +++ b/examples/ti/ti-ek-tm4c1294xl-http-server/Makefile @@ -1,10 +1,17 @@ NAME = ti-ek-tm4c1294xl-http-server -DOCKER ?= docker run -v $(CURDIR):/workspace mdashnet/ccs +DOCKER ?= docker run --rm $(DOCKER_ARGS) -v $(CURDIR):/workspace mdashnet/ccs -build: +$(NAME): git clone --depth 1 https://github.com/mongoose-examples/$(NAME) + +build: | $(NAME) cp ./../../../mongoose.[ch] $(NAME)/ $(DOCKER) /opt/ti/ccs/eclipse/eclipse -noSplash -data /workspace -application com.ti.ccstudio.apps.projectBuild -ccs.autoImport -ccs.projects $(NAME) -ccs.configuration Release clean: - rm -rf $(NAME) + $(DOCKER) rm -rf /workspace/$(NAME) + +flash: DOCKER_ARGS = -it --privileged -v /dev/bus/usb/:/dev/bus/usb -w /workspace +flash: + $(DOCKER) /opt/ti/ccs/ccs_base/scripting/examples/loadti/loadti.sh -c $(NAME)/ek-tm4c1294xl.ccxml $(NAME)/Release/$(NAME).out +