Browse Source

Makefile add board rename deprecation warning

sbg
Daniel Agar 6 years ago committed by David Sidrane
parent
commit
f22f331e4a
  1. 14
      Makefile
  2. 2
      appveyor.yml

14
Makefile

@ -184,7 +184,19 @@ $(CONFIG_TARGETS_DEFAULT):
all_default_targets: $(CONFIG_TARGETS_DEFAULT) all_default_targets: $(CONFIG_TARGETS_DEFAULT)
posix: px4_sitl_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). # 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 .PHONY: all posix px4_sitl_default all_nuttx_targets all_default_targets

2
appveyor.yml

@ -41,7 +41,7 @@ build_script:
# fetch all submodules in parallel # fetch all submodules in parallel
- call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10" - call bash --login -c "cd $repopath && git submodule -q update --init --recursive --jobs=10"
# make SITL # 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 # make pixracer to check NuttX build
- call bash --login -c "cd $repopath && make px4_fmu-v4_default" - call bash --login -c "cd $repopath && make px4_fmu-v4_default"
# run tests # run tests

Loading…
Cancel
Save