diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-02-01 17:50:27 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-02-01 18:22:43 +0100 |
commit | 43537bd6dd73d03a93a0fd5128a15fad27175a74 (patch) | |
tree | 93a71afb7ad13cfb786211955314178c814ab864 /bin | |
parent | 5c6dc16430a1b2046e712c97df2567c09c80f258 (diff) | |
download | ptxdist-43537bd6dd73d03a93a0fd5128a15fad27175a74.tar.gz ptxdist-43537bd6dd73d03a93a0fd5128a15fad27175a74.tar.xz |
ptxdist: add new command 'lint'
For now it contains the following checks:
- unused patch directories
- use of undefined symbols in menu files
- use of undefined kconfig symbols in rule files and other makefiles
- use of undefined macros in rule files and other makefiles
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index b3bb43a2b..37c3c7aaa 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -774,6 +774,7 @@ Misc: printnext <var> assumes that the contents of <var> is another variable and print the contents of this variable licensecheck check md5sums of license files for all packages + lint run some basic checks for the bsp and PTXdist list-packages print a list of all selected packages local-src <pkg> [<directory>] overwrite a package source with a locally provided directory containing the sourcecode. @@ -1821,6 +1822,11 @@ EOF fi exit ;; + lint) + export PTXDIST_GEN_ALL=1 + check_premake_compiler && + ptxd_make_log ptxdist-lint + ;; list-packages) check_config && check_deps || return |