summaryrefslogtreecommitdiffstats
path: root/keyboards/system76/launch_1/post_rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/system76/launch_1/post_rules.mk')
-rw-r--r--keyboards/system76/launch_1/post_rules.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/keyboards/system76/launch_1/post_rules.mk b/keyboards/system76/launch_1/post_rules.mk
new file mode 100644
index 0000000000..3751a8b8c3
--- /dev/null
+++ b/keyboards/system76/launch_1/post_rules.mk
@@ -0,0 +1,12 @@
+# System76 EC
+# remove the RESET HID command
+VALID_SYSTEM76_EC_TYPES := yes
+SYSTEM76_EC_ENABLE ?= no
+ifneq ($(strip $(SYSTEM76_EC_ENABLE)),no)
+ ifeq ($(filter $(SYSTEM76_EC_ENABLE),$(VALID_SYSTEM76_EC_TYPES)),)
+ $(error SYSTEM76_EC_EN="$(strip $(SYSTEM76_EC_ENABLE))" is not a valid type for the System76 EC option)
+ endif
+ ifneq ($(strip $(SYSTEM76_EC_ENABLE)),no)
+ OPT_DEFS += -DSYSTEM76_EC
+ endif
+endif