Add definition based on currently-selected serial driver. (#10716)

* Add definition based on currently-selected serial driver.

* Apply suggestions from code review

Suggestions from zvecr.

Co-authored-by: Joel Challis <git@zvecr.com>

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Nick Brassel 2020-10-23 04:37:34 +11:00 committed by James Young
parent 12be012e3d
commit c1295a3557
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74

View file

@ -450,6 +450,7 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
endif
SERIAL_DRIVER ?= bitbang
OPT_DEFS += -DSERIAL_DRIVER_$(strip $(shell echo $(SERIAL_DRIVER) | tr '[:lower:]' '[:upper:]'))
ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
QUANTUM_LIB_SRC += serial.c
else