From 111132903d397551e384c101ea35720205415a58 Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Sun, 19 Feb 2017 19:17:17 -0300 Subject: support/scripts/check-package: new script Create the infra to check the style of new packages before submitting. The overall function of the script is described inside a txt file. It is designed to process the actual files and NOT the patch files generated by git format-patch. Also add the first check function, to warn if a file (Config.*, *.mk, *.hash, *.patch) has no newline at the last line of the file, see [1]. Basic usage for simple packages: support/scripts/check-package -vvv package/newpackage/* Basic usage for packages with subdirs: support/scripts/check-package -vvv $(find package/newpackage/ -type f) See "checkpackage" in [2]. [1] http://patchwork.ozlabs.org/patch/631129/ [2] http://elinux.org/Buildroot#Todo_list Signed-off-by: Ricardo Martincoski Cc: Thomas De Schampheleire Signed-off-by: Thomas Petazzoni --- support/scripts/checkpackagelib_mk.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 support/scripts/checkpackagelib_mk.py (limited to 'support/scripts/checkpackagelib_mk.py') diff --git a/support/scripts/checkpackagelib_mk.py b/support/scripts/checkpackagelib_mk.py new file mode 100644 index 0000000000..84eeef8895 --- /dev/null +++ b/support/scripts/checkpackagelib_mk.py @@ -0,0 +1,8 @@ +# See support/scripts/check-package.txt before editing this file. +# There are already dependency checks during the build, so below check +# functions don't need to check for things already checked by exploring the +# menu options using "make menuconfig" and by running "make" with appropriate +# packages enabled. + +# Notice: ignore 'imported but unused' from pyflakes for check functions. +from checkpackagelib import NewlineAtEof -- cgit v1.2.3