1
0
Fork 0

otgcontrol: add CONFIG_RM_OTGCONTROL_DEBUG

Update Makefile to build with DDEBUG only when CONFIG_RM_OTGCONTROL_DEBUG
is defined
pull/10/head
Steinar Bakkemo 2019-08-20 19:58:26 +02:00
parent b598f8263e
commit b8a02fdefe
2 changed files with 8 additions and 1 deletions

View File

@ -2,3 +2,10 @@ config RM_OTGCONTROL
tristate "reMarkable OTG control"
help
Add reMarkable OTG control module, required to control access to/from external equipment
config RM_OTGCONTROL_DEBUG
bool "reMarkable OTG control debug"
depends on RM_OTGCONTROL
help
"Enable extensive debug output (useful when debugging FSM type of errors to see what is going on)"

View File

@ -6,4 +6,4 @@ otgcontrol-objs += otgcontrol_onewire.o
otgcontrol-objs += otgcontrol_charging_ctrl.o
otgcontrol-objs += otgcontrol_dr_mode.o
ccflags-$(CONFIG_RM_OTGCONTROL) += -DDEBUG
ccflags-$(CONFIG_RM_OTGCONTROL_DEBUG) += -DDEBUG