Skip to content

Commit

Permalink
lambda-compiler DTS validation: extend stub to define &underglow_indi…
Browse files Browse the repository at this point in the history
…cators
  • Loading branch information
chrisandreae committed Sep 13, 2024
1 parent e4f167f commit 3fc2867
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lambda/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,15 @@ def compile_board(board, keymap_data:, kconfig_data:, include_static_rhs: false)
behaviors macros combos conditional_layers keymap underglow-indicators
].freeze

DTS_STUB = <<~EOF
/dts-v1/;
/ {
underglow_indicators: underglow-indicators {};
};
EOF

def validate_devicetree!(dtsi)
dts = "/dts-v1/;\n" + dtsi
dts = DTS_STUB + dtsi

stdout, stderr, status =
Open3.capture3({}, 'dts2yml', unsetenv_others: true, stdin_data: dts)
Expand Down

0 comments on commit 3fc2867

Please sign in to comment.