Commit 0b9bf0db authored by Dimitris Lampridis's avatar Dimitris Lampridis

sw/fw: use standard Make variables for install

parent 65d4ea0c
......@@ -21,7 +21,9 @@ ifndef OBJS
endif
# and don't touch the rest unless you know what you're doing.
INSTALL_PREFIX ?= .
DESTDIR ?=
prefix ?= /lib
firmwaredir ?= $(prefix)/firmware
PATH_COMMON_RT ?= .
PATH_COMMON_H ?= ../include
TRTL ?= ../..
......@@ -189,7 +191,8 @@ clean-dot-config:
cleanall: clean clean-dot-config
install:
@cp $(build_output).bin $(INSTALL_PREFIX)
mkdir -m 0775 -p $(DESTDIR)$(firmwaredir)
install -D -t $(DESTDIR)$(firmwaredir) -m 0644 $(build_output).{bin,elf,bram}
# inlude *.d files from the build directory
include $(wildcard $(patsubst %,%/.d/*.d,$(basename $(OBJDIR_BUILD))))
......
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