mk rules: Improve behaviour when DEVICE is set to family. Improved Warning

The warning now uses family instead of subfamily, which is available
sooner.
This commit is contained in:
Jonas Meyer
2016-02-18 20:20:51 +01:00
committed by Karl Palsson
parent 60ca09c61e
commit 6aeb55c5d7
2 changed files with 5 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ else
ifneq (,$(wildcard $(OPENCM3_DIR)/lib/libopencm3_$(genlink_subfamily).a))
LDLIBS += -lopencm3_$(genlink_subfamily)
else
$(warning $(OPENCM3_DIR)/lib/libopencm3_$(genlink_subfamily).a library variant for the selected device does not exist.)
$(warning $(OPENCM3_DIR)/lib/libopencm3_$(genlink_family).a library variant for the selected device does not exist.)
endif
endif