mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Makefile: pass TOPDIR to sub-make to overcome Windows filename problem
Makefile uses toprel function to display nice short relative paths when building. But different ways of getting current path (using . or pwd or MAKEFILE_LIST, etc) give different cases for Windows drive letters. As result, some paths are not translated by toprel function and look not nice. Passing known TOPDIR value to sub-make fixes this: ... CC flight/Modules/FirmwareIAP/firmwareiap.c CC flight/Modules/Telemetry/telemetry.c CC flight/Modules/System/systemmod.c CC d:/Work/OpenPilot/toolchains/flight/targets/CopterControl/System/coptercontrol.c CC d:/Work/OpenPilot/toolchains/flight/targets/CopterControl/System/pios_board.c ... Instead of ... CC flight/Modules/FirmwareIAP/firmwareiap.c CC flight/Modules/Telemetry/telemetry.c CC flight/Modules/System/systemmod.c CC flight/targets/CopterControl/System/coptercontrol.c CC flight/targets/CopterControl/System/pios_board.c ...
This commit is contained in:
parent
27822d0cd4
commit
67d7db88f1
2
Makefile
2
Makefile
@ -452,6 +452,7 @@ fw_$(1)_%: uavobjects_flight
|
||||
BOARD_SHORT_NAME=$(3) \
|
||||
BUILD_TYPE=fw \
|
||||
HWDEFSINC=$(HWDEFS)/$(1) \
|
||||
TOPDIR=$(ROOT_DIR)/flight/targets/$(2) \
|
||||
OUTDIR=$(BUILD_DIR)/fw_$(1) \
|
||||
TARGET=fw_$(1) \
|
||||
$$*
|
||||
@ -478,6 +479,7 @@ bl_$(1)_%:
|
||||
BOARD_SHORT_NAME=$(3) \
|
||||
BUILD_TYPE=bl \
|
||||
HWDEFSINC=$(HWDEFS)/$(1) \
|
||||
TOPDIR=$(ROOT_DIR)/flight/targets/Bootloaders/$(2) \
|
||||
OUTDIR=$(BUILD_DIR)/bl_$(1) \
|
||||
TARGET=bl_$(1) \
|
||||
$$*
|
||||
|
Loading…
x
Reference in New Issue
Block a user