Skip to content

Commit 13a6d57

Browse files
authored
Makefile/cmake remove legacy target naming transition helpers
1 parent c6c7f96 commit 13a6d57

File tree

2 files changed

+2
-32
lines changed

2 files changed

+2
-32
lines changed

Makefile

+2-12
Original file line numberDiff line numberDiff line change
@@ -209,23 +209,13 @@ $(CONFIG_TARGETS_DEFAULT):
209209
all_config_targets: $(ALL_CONFIG_TARGETS)
210210
all_default_targets: $(CONFIG_TARGETS_DEFAULT)
211211

212-
posix: px4_sitl_default
213-
214212
# board reorganization deprecation warnings (2018-11-22)
215213
define deprecation_warning
216214
$(warning $(1) has been deprecated and will be removed, please use $(2)!)
217215
endef
218216

219-
px4fmu-%_default:
220-
$(call deprecation_warning, ${@},$(subst px4fmu,px4_fmu,$@))
221-
$(MAKE) $(subst px4fmu,px4_fmu, $@)
222-
223-
posix_sitl_default:
224-
$(call deprecation_warning, ${@},px4_sitl_default)
225-
$(MAKE) px4_sitl_default
226-
227217
# All targets with just dependencies but no recipe must either be marked as phony (or have the special @: as recipe).
228-
.PHONY: all posix px4_sitl_default all_config_targets all_default_targets
218+
.PHONY: all px4_sitl_default all_config_targets all_default_targets
229219

230220
# Multi- config targets.
231221
eagle_default: atlflight_eagle_default atlflight_eagle_qurt
@@ -287,7 +277,7 @@ sizes:
287277
# All default targets that don't require a special build environment
288278
check: check_px4_sitl_default px4fmu_firmware misc_qgc_extra_firmware alt_firmware tests check_format
289279

290-
# quick_check builds a single nuttx and posix target, runs testing, and checks the style
280+
# quick_check builds a single nuttx and SITL target, runs testing, and checks the style
291281
quick_check: check_px4_sitl_test check_px4_fmu-v5_default tests check_format
292282

293283
check_%:

cmake/px4_config.cmake

-20
Original file line numberDiff line numberDiff line change
@@ -73,27 +73,7 @@ if(NOT PX4_CONFIG_FILE)
7373
set(PX4_CONFIG_FILE "${PX4_SOURCE_DIR}/boards/${filename}" CACHE FILEPATH "path to PX4 CONFIG file" FORCE)
7474
break()
7575
endif()
76-
77-
78-
# LEGACY form
79-
# <OS>_<BOARD>_<LABEL> (eg nuttx_px4_fmu-v2_default)
80-
string(REGEX REPLACE "^nuttx_|^posix_|^qurt_" "" config_no_os ${CONFIG}) # ignore OS prefix
81-
82-
if ((${config_no_os} MATCHES "${board}_${label}"))
83-
set(PX4_CONFIG_FILE "${PX4_SOURCE_DIR}/boards/${filename}" CACHE FILEPATH "path to PX4 CONFIG file" FORCE)
84-
break()
85-
endif()
86-
87-
88-
# LEGACY form special case to ease board layout transition (2018-11-18)
89-
# match board with model and label only: eg sitl_default -> px4_sitl_default
90-
if ((${config_no_os} MATCHES "${model}_${label}"))
91-
set(PX4_CONFIG_FILE "${PX4_SOURCE_DIR}/boards/${filename}" CACHE FILEPATH "path to PX4 CONFIG file" FORCE)
92-
break()
93-
endif()
94-
9576
endif()
96-
9777
endforeach()
9878
endif()
9979

0 commit comments

Comments
 (0)