forked from kofal.net/zmk
feat: Add the ability to keep/omit behaviors for a given build.
* Use defines to keep either all behaviors with omits, or selective behaviors with explicit kept behavior, before including `behavior.dtsi` in keymaps. * Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC endpoint snippet.
This commit is contained in:
committed by
Pete Johanson
parent
d77e400eb9
commit
fd28eab179
@@ -4,10 +4,15 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/behaviors.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
#if ZMK_BEHAVIOR_OMIT(BL)
|
||||
/omit-if-no-ref/
|
||||
#endif
|
||||
// Behavior can be invoked on peripherals, so name must be <= 8 characters.
|
||||
/omit-if-no-ref/ bl: bcklight {
|
||||
bl: bcklight {
|
||||
compatible = "zmk,behavior-backlight";
|
||||
#binding-cells = <2>;
|
||||
display-name = "Backlight";
|
||||
|
||||
Reference in New Issue
Block a user