otgcontrol: add CONFIG_RM_OTGCONTROL_DEBUG
Update Makefile to build with DDEBUG only when CONFIG_RM_OTGCONTROL_DEBUG is definedpull/10/head
parent
b598f8263e
commit
b8a02fdefe
|
@ -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)"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue