mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-483: add install target for bootloaders
This commit is contained in:
parent
37868a4c10
commit
45c609100a
@ -389,6 +389,15 @@ size: $(OUTDIR)/$(TARGET).elf_size
|
|||||||
docs:
|
docs:
|
||||||
doxygen $(DOXYGENDIR)/doxygen.cfg
|
doxygen $(DOXYGENDIR)/doxygen.cfg
|
||||||
|
|
||||||
|
# Install: install binary file with prefix/suffix into install directory
|
||||||
|
install: $(OUTDIR)/$(TARGET).bin
|
||||||
|
ifneq ($(INSTALL_DIR),)
|
||||||
|
@echo $(MSG_INSTALLING) $(call toprel, $<)
|
||||||
|
$(V1) $(INSTALL) -D $< $(INSTALL_DIR)/$(INSTALL_PFX)$(TARGET)$(INSTALL_SFX).bin
|
||||||
|
else
|
||||||
|
$(error INSTALL_DIR must be specified for $@)
|
||||||
|
endif
|
||||||
|
|
||||||
# Target: clean project.
|
# Target: clean project.
|
||||||
clean: clean_list
|
clean: clean_list
|
||||||
|
|
||||||
@ -426,4 +435,4 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all build clean clean_list program
|
.PHONY : all build clean clean_list program install
|
||||||
|
@ -428,10 +428,6 @@ $(eval $(call PARTIAL_COMPILE_TEMPLATE, SRC))
|
|||||||
# Compile: create assembler files from C source files. ARM only
|
# Compile: create assembler files from C source files. ARM only
|
||||||
$(eval $(call PARTIAL_COMPILE_ARM_TEMPLATE, SRCARM))
|
$(eval $(call PARTIAL_COMPILE_ARM_TEMPLATE, SRCARM))
|
||||||
|
|
||||||
# Generate Doxygen documents
|
|
||||||
docs:
|
|
||||||
doxygen $(DOXYGENDIR)/doxygen.cfg
|
|
||||||
|
|
||||||
$(OUTDIR)/$(TARGET).bin.o: $(OUTDIR)/$(TARGET).bin
|
$(OUTDIR)/$(TARGET).bin.o: $(OUTDIR)/$(TARGET).bin
|
||||||
|
|
||||||
.PHONY: elf lss sym hex bin bino
|
.PHONY: elf lss sym hex bin bino
|
||||||
@ -447,6 +443,19 @@ $(eval $(call SIZE_TEMPLATE, $(OUTDIR)/$(TARGET).elf))
|
|||||||
.PHONY: size
|
.PHONY: size
|
||||||
size: $(OUTDIR)/$(TARGET).elf_size
|
size: $(OUTDIR)/$(TARGET).elf_size
|
||||||
|
|
||||||
|
# Generate Doxygen documents
|
||||||
|
docs:
|
||||||
|
doxygen $(DOXYGENDIR)/doxygen.cfg
|
||||||
|
|
||||||
|
# Install: install binary file with prefix/suffix into install directory
|
||||||
|
install: $(OUTDIR)/$(TARGET).bin
|
||||||
|
ifneq ($(INSTALL_DIR),)
|
||||||
|
@echo $(MSG_INSTALLING) $(call toprel, $<)
|
||||||
|
$(V1) $(INSTALL) -D $< $(INSTALL_DIR)/$(INSTALL_PFX)$(TARGET)$(INSTALL_SFX).bin
|
||||||
|
else
|
||||||
|
$(error INSTALL_DIR must be specified for $@)
|
||||||
|
endif
|
||||||
|
|
||||||
# Target: clean project.
|
# Target: clean project.
|
||||||
clean: clean_list
|
clean: clean_list
|
||||||
|
|
||||||
@ -484,4 +493,4 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all build clean clean_list program
|
.PHONY : all build clean clean_list program install
|
||||||
|
@ -450,6 +450,15 @@ size: $(OUTDIR)/$(TARGET).elf_size
|
|||||||
docs:
|
docs:
|
||||||
doxygen $(DOXYGENDIR)/doxygen.cfg
|
doxygen $(DOXYGENDIR)/doxygen.cfg
|
||||||
|
|
||||||
|
# Install: install binary file with prefix/suffix into install directory
|
||||||
|
install: $(OUTDIR)/$(TARGET).bin
|
||||||
|
ifneq ($(INSTALL_DIR),)
|
||||||
|
@echo $(MSG_INSTALLING) $(call toprel, $<)
|
||||||
|
$(V1) $(INSTALL) -D $< $(INSTALL_DIR)/$(INSTALL_PFX)$(TARGET)$(INSTALL_SFX).bin
|
||||||
|
else
|
||||||
|
$(error INSTALL_DIR must be specified for $@)
|
||||||
|
endif
|
||||||
|
|
||||||
# Target: clean project.
|
# Target: clean project.
|
||||||
clean: clean_list
|
clean: clean_list
|
||||||
|
|
||||||
@ -487,4 +496,4 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all build clean clean_list program
|
.PHONY : all build clean clean_list program install
|
||||||
|
@ -446,6 +446,15 @@ size: $(OUTDIR)/$(TARGET).elf_size
|
|||||||
docs:
|
docs:
|
||||||
doxygen $(DOXYGENDIR)/doxygen.cfg
|
doxygen $(DOXYGENDIR)/doxygen.cfg
|
||||||
|
|
||||||
|
# Install: install binary file with prefix/suffix into install directory
|
||||||
|
install: $(OUTDIR)/$(TARGET).bin
|
||||||
|
ifneq ($(INSTALL_DIR),)
|
||||||
|
@echo $(MSG_INSTALLING) $(call toprel, $<)
|
||||||
|
$(V1) $(INSTALL) -D $< $(INSTALL_DIR)/$(INSTALL_PFX)$(TARGET)$(INSTALL_SFX).bin
|
||||||
|
else
|
||||||
|
$(error INSTALL_DIR must be specified for $@)
|
||||||
|
endif
|
||||||
|
|
||||||
# Target: clean project.
|
# Target: clean project.
|
||||||
clean: clean_list
|
clean: clean_list
|
||||||
|
|
||||||
@ -483,5 +492,4 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Listing of phony targets.
|
# Listing of phony targets.
|
||||||
.PHONY : all build clean clean_list program
|
.PHONY : all build clean clean_list program install
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user