From f22f331e4aa9abf358aa75b815ed66f6664655ef Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 22 Nov 2018 13:02:38 -0500 Subject: [PATCH] Makefile add board rename deprecation warning --- Makefile | 14 +++++++++++++- appveyor.yml | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9b6566446..f5d25d4dd7 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,19 @@ $(CONFIG_TARGETS_DEFAULT): all_default_targets: $(CONFIG_TARGETS_DEFAULT) posix: px4_sitl_default -posix_sitl_default: px4_sitl_default + +# board reorganization deprecation warnings (2018-11-22) +define deprecation_warning + $(warning $(1) has been deprecated and will be removed, please use $(2)!) +endef + +px4fmu-%_default: + $(call deprecation_warning, ${@},$(subst px4fmu,px4_fmu,$@)) + $(MAKE) $(subst px4fmu,px4_fmu, $@) + +posix_sitl_default: + $(call deprecation_warning, ${@},px4_sitl_default) + $(MAKE) px4_sitl_default # All targets with just dependencies but no recipe must either be marked as phony (or have the special @: as recipe). .PHONY: all posix px4_sitl_default all_nuttx_targets all_default_targets diff --git a/appveyor.yml b/appveyor.yml index fb755a90b2..a5d5429649 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -41,7 +41,7 @@ build_script: # fetch all submodules in parallel - call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10" # make SITL -- call bash --login -c "cd $repopath && make posix" +- call bash --login -c "cd $repopath && make px4_sitl_default" # make pixracer to check NuttX build - call bash --login -c "cd $repopath && make px4_fmu-v4_default" # run tests