Skip to content

Commit f22f331

Browse files
dagarDavid Sidrane
authored andcommitted
Makefile add board rename deprecation warning
1 parent ec4c9da commit f22f331

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,19 @@ $(CONFIG_TARGETS_DEFAULT):
184184
all_default_targets: $(CONFIG_TARGETS_DEFAULT)
185185

186186
posix: px4_sitl_default
187-
posix_sitl_default: px4_sitl_default
187+
188+
# board reorganization deprecation warnings (2018-11-22)
189+
define deprecation_warning
190+
$(warning $(1) has been deprecated and will be removed, please use $(2)!)
191+
endef
192+
193+
px4fmu-%_default:
194+
$(call deprecation_warning, ${@},$(subst px4fmu,px4_fmu,$@))
195+
$(MAKE) $(subst px4fmu,px4_fmu, $@)
196+
197+
posix_sitl_default:
198+
$(call deprecation_warning, ${@},px4_sitl_default)
199+
$(MAKE) px4_sitl_default
188200

189201
# All targets with just dependencies but no recipe must either be marked as phony (or have the special @: as recipe).
190202
.PHONY: all posix px4_sitl_default all_nuttx_targets all_default_targets

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build_script:
4141
# fetch all submodules in parallel
4242
- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10"
4343
# make SITL
44-
- call bash --login -c "cd $repopath && make posix"
44+
- call bash --login -c "cd $repopath && make px4_sitl_default"
4545
# make pixracer to check NuttX build
4646
- call bash --login -c "cd $repopath && make px4_fmu-v4_default"
4747
# run tests

0 commit comments

Comments
 (0)