mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
makefile: pass build type (BL/FW/BU/EF) into sub-makes
This commit is contained in:
parent
52a3cff6c6
commit
bbc3877751
4
Makefile
4
Makefile
@ -528,6 +528,7 @@ fw_$(1)_%: uavobjects_flight
|
|||||||
$(V1) cd $(ROOT_DIR)/flight/$(2) && \
|
$(V1) cd $(ROOT_DIR)/flight/$(2) && \
|
||||||
$$(MAKE) -r --no-print-directory \
|
$$(MAKE) -r --no-print-directory \
|
||||||
BOARD_NAME=$(1) \
|
BOARD_NAME=$(1) \
|
||||||
|
BUILD_TYPE=fw \
|
||||||
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
||||||
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
||||||
$$*
|
$$*
|
||||||
@ -551,6 +552,7 @@ bl_$(1)_%:
|
|||||||
$(V1) cd $(ROOT_DIR)/flight/Bootloaders/$(2) && \
|
$(V1) cd $(ROOT_DIR)/flight/Bootloaders/$(2) && \
|
||||||
$$(MAKE) -r --no-print-directory \
|
$$(MAKE) -r --no-print-directory \
|
||||||
BOARD_NAME=$(1) \
|
BOARD_NAME=$(1) \
|
||||||
|
BUILD_TYPE=bl \
|
||||||
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
||||||
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
||||||
$$*
|
$$*
|
||||||
@ -585,6 +587,7 @@ bu_$(1)_%: bl_$(1)_bino
|
|||||||
$(V1) cd $(ROOT_DIR)/flight/Bootloaders/BootloaderUpdater && \
|
$(V1) cd $(ROOT_DIR)/flight/Bootloaders/BootloaderUpdater && \
|
||||||
$$(MAKE) -r --no-print-directory \
|
$$(MAKE) -r --no-print-directory \
|
||||||
BOARD_NAME=$(1) \
|
BOARD_NAME=$(1) \
|
||||||
|
BUILD_TYPE=bu \
|
||||||
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
||||||
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
REMOVE_CMD="$(RM)" OOCD_EXE="$(OPENOCD)" \
|
||||||
$$*
|
$$*
|
||||||
@ -605,6 +608,7 @@ ef_$(1)_%: bl_$(1)_bin fw_$(1)_opfw
|
|||||||
$(V1) cd $(ROOT_DIR)/flight/EntireFlash && \
|
$(V1) cd $(ROOT_DIR)/flight/EntireFlash && \
|
||||||
$$(MAKE) -r --no-print-directory \
|
$$(MAKE) -r --no-print-directory \
|
||||||
BOARD_NAME=$(1) \
|
BOARD_NAME=$(1) \
|
||||||
|
BUILD_TYPE=ef \
|
||||||
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
TCHAIN_PREFIX="$(ARM_SDK_PREFIX)" \
|
||||||
DFU_CMD="$(DFUUTIL_DIR)/bin/dfu-util" \
|
DFU_CMD="$(DFUUTIL_DIR)/bin/dfu-util" \
|
||||||
$$*
|
$$*
|
||||||
|
Loading…
Reference in New Issue
Block a user