Skip to content

Commit

Permalink
firmware: quiet the format build rule
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Feb 10, 2021
1 parent 9aded26 commit 2de2fa2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions firmware/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def generate_build(configuration, run_generators=True):
command="python3 -m wintertools.bin_to_uf2 $in $out",
description="Create $out",
)
writer.newline()

# Rules for structy generation
writer.rule(
Expand All @@ -359,6 +360,10 @@ def generate_build(configuration, run_generators=True):
name="runcmd_arg_in", command="$cmd $in $append", description="$desc $in"
)
writer.newline()
writer.rule(
name="runcmd_arg_in_shh", command="$cmd $in $append", description="$desc"
)
writer.newline()
writer.rule(
name="runcmd_arg_out", command="$cmd $out $append", description="$desc $out"
)
Expand Down Expand Up @@ -461,11 +466,11 @@ def generate_build(configuration, run_generators=True):
format_files = list(pathlib.Path(".").glob("src/**/*.[c,h]"))
writer.build(
"format.phony",
"runcmd_arg_in",
"runcmd_arg_in_shh",
[str(path) for path in format_files],
variables=dict(
cmd="clang-format -i",
desc="Format",
desc="Format source files",
),
)
writer.newline()
Expand Down

0 comments on commit 2de2fa2

Please sign in to comment.