add deployment logic

parent f1ac6a8c
......@@ -11,9 +11,10 @@ WRC_INCLUDES = ../include
CFLAGS += -I $(ERTM_UART_LOCATION) -I $(ERTM_BOARD_LOCATION)
CFLAGS += -I $(WRC_INCLUDES)
all: libs main
LIBS = $(TARGET).a $(TARGET).so libertm_display.so
libs: $(TARGET).a $(TARGET).so libertm_display.so
all: libs main
libs: $(LIBS)
$(TARGET).a $(TARGET).so: $(TARGET).o linux-uart-link.o common-uart-link.o
$(TARGET).so:
......@@ -38,3 +39,5 @@ libertm_display.so: display.o
clean:
rm -f *.o *.a *.so
rm -f serial ertm-serial main
include deploy.mk
VERSION = 1.0.0
DEPLOY_TARGET ?= /acc/local/L867/drv/ertm/$(VERSION)
TOOLS = ../tools/uart-bootloader/usb-bootloader.py ertm-cli
deploy: $(LIBS) libertm.h $(TOOLS) ../wrc.bin ertm-setup
mkdir -p $(DEPLOY_TARGET)/lib $(DEPLOY_TARGET)/include \
$(DEPLOY_TARGET)/tools $(DEPLOY_TARGET)/bin
install -b ../wrc.bin $(LIBS) -C $(DEPLOY_TARGET)/lib
install -b libertm.h -C $(DEPLOY_TARGET)/include
install -b $(TOOLS) -C $(DEPLOY_TARGET)/tools
(cd $(DEPLOY_TARGET)/bin ; ln -sf ../tools/* .)
install -b ertm-setup -C $(DEPLOY_TARGET)/bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment