aboutsummaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* utils/genrandconfig: test per-package directoriesGravatar Thomas Petazzoni9 days1-0/+4
| | | | | | | | | | Now that the support for per-package directories has been merged, it is time to get some exposure for it in the autobuilders, so let's build 1 out of 15 builds with this feature enabled, at least as an initial step. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* utils/scancpan: follow Perl versionGravatar Francois Perrad10 days1-4/+4
| | | | | | | linked to https://git.busybox.net/buildroot/commit?id=01134ca99a2c83932aee42984c81e51cc0428425 Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/genrandconfig: fix runtime issue with Python 3Gravatar Thomas Petazzoni10 days1-9/+1
| | | | | | | | | | | | | | With Python 3.7, genrandconfig fails with: 'str' object has no attribute 'decode' We are already working on str objects, and there is no need to decode them, so we drop the call to decode_byte_list() and its definition as it was only used there. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/scanpypi: sort alphabetically list of required packagesGravatar Bartosz Bilas2019-11-081-0/+1
| | | | | | | | | | | | | | That change will alphabetically set list order of required packages in Config.in file automatically. Example below: before: ['python-pyserial', 'python-pyaes', 'python-ecdsa'] after: ['python-ecdsa', 'python-pyaes', 'python-pyserial'] Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/scancpan: handle LICENCE spellingGravatar Francois Perrad2019-10-291-1/+1
| | | | | | | License files are sometimes called LICENCE, so support that as well. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/genrandconfig: test full set of hardening optionsGravatar Matt Weber2019-10-271-0/+10
| | | | | | | | | | | This patch adds the remaining ssp and relro cases plus both of the fortify options. The randomization was left consistant between the options but the order of the conditions placed the most restrictive hardening options with more priority. Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: test configurations with BR2_SSP_ALLGravatar Fabrice Fontaine2019-10-271-0/+2
| | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: test configurations with BR2_RELRO_FULLGravatar Fabrice Fontaine2019-10-271-0/+2
| | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/check-package: report := that appends to variablesGravatar Yann E. MORIN2019-10-271-1/+3
| | | | | Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/genrandconfig: use randint instead of (undefined) randIntGravatar Asaf Kahlon2019-10-261-1/+1
| | | | | | | Fixes https://gitlab.com/buildroot.org/buildroot/-/jobs/333788455 Signed-off-by: Asaf Kahlon <asafka7@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: test configurations with BR2_PIC_PIEGravatar Fabrice Fontaine2019-10-261-0/+2
| | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* scanpypi: write every license file onceGravatar Asaf Kahlon2019-10-111-0/+2
| | | | | | | | | | | | On some cases, when the package contains multiple license files and some of them from the same type, the scanpypi script will write the same license type more than once under _LICENSE. Hence, before creating the _LICENSE variable, we'll remove every possible duplication. Signed-off-by: Asaf Kahlon <asafka7@gmail.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/test-pkg: ensure to exit with an error upon failureGravatar Heiko Thiery2019-10-101-0/+2
| | | | | | | | | | This commit modifies the main() function so that it returns the sum of build and legal errors, making sure the overall test-pkg script exists with a non-zero error code upon failure. Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com> [Thomas: improved commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: add more Config.in files ↵Gravatar Jerzy Grzegorek2019-10-071-2/+4
| | | | | | | | | | to check Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> [Arnout: remove boot/Config.in, it is not ordered correctly yet.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: initialize ↵Gravatar Jerzy Grzegorek2019-10-071-1/+1
| | | | | | | | | | | | 'menu_of_packages' array 'source' without a previous 'menu' is common in package/Config.in in br2-externals. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: initialize in before()Gravatar Jerzy Grzegorek2019-10-071-5/+4
| | | | | | | | | | | | This makes sure the state from a previous run (previous file) can never leak over into the next file. Also order the initializations alphabetically. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Acked-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: use '-' to describe stateGravatar Jerzy Grzegorek2019-10-071-1/+1
| | | | | | | Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: separate comment/if/menu ↵Gravatar Jerzy Grzegorek2019-10-071-12/+12
| | | | | | | | | | | | | | | cases The handling of 'comment...', 'if ...' and 'menu ...' lines have almost nothing in common, and subsequent patches will give them even less in common. Therefore, completely separate their handling in top-level conditions. The only code that gets duplicated in the different branches is the 'self.initialize_level_elements(text)' call. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: remove '-comment' state ↵Gravatar Jerzy Grzegorek2019-10-071-0/+3
| | | | | | | | | | | | | | before the '-menu' one A comment is considered an alternative delimiter like a menu. I.e., a menu that comes after a comment should not be considered a submenu of that comment. Therefore, remove the '-comment' state before adding the '-menu' one. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: change the type of ↵Gravatar Jerzy Grzegorek2019-09-251-3/+4
| | | | | | | | | | | | variable 'new_package' Change the type of variable 'new_package' to make it a class member. It will be used not only locally. Also initialize it. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: add functions to ↵Gravatar Jerzy Grzegorek2019-09-251-10/+15
| | | | | | | | | | | | initialize arrays elements Factor out two functions to initialize arrays elements. They will be reused by followup patches. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: get value of variable 'level'Gravatar Jerzy Grzegorek2019-09-251-1/+2
| | | | | | | | | Get value of variable 'level' only just after the state change. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: change the type of ↵Gravatar Jerzy Grzegorek2019-09-251-11/+12
| | | | | | | | | | | | | | variable 'level' Change the type of variable "level" to make it a class member. It will be used not only locally. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> [Thomas: initialize self.level in the before() method, as suggested by Ricardo] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: rename variable 'm'Gravatar Jerzy Grzegorek2019-09-251-3/+4
| | | | | | | | | Rename variable 'm' for better readability. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/scancpan: improve license file detectionGravatar Francois Perrad2019-09-171-0/+1
| | | | | | | | | MANIFEST may contains line like this: "LICENSE LICENSE file (added by Distar)" so, retains only the first word. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: only do reproducible builds with diffoscopeGravatar Thomas Petazzoni2019-08-071-2/+2
| | | | | | | | | | | | | | After a few weeks of running reproducible builds in the autobuilders, we found out that such builds without a diffoscope analysis are pretty useless: the cmp on the tarballs doesn't help us fix the reproducibility issue. So, let's only do reproducible builds when diffoscope is available. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Tested-by: Atharva Lele <itsatharva@gmail.com> Acked-by: Atharva Lele <itsatharva@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: instantiate SystemInfo() earlierGravatar Thomas Petazzoni2019-08-071-3/+4
| | | | | | | | | | | In a future patch, we are going to need a SystemInfo() instance in gen_config(), so create the SystemInfo() instance there, and pass it to fixup_config(), where we currently use it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Tested-by: Atharva Lele <itsatharva@gmail.com> Acked-by: Atharva Lele <itsatharva@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/getdeveloperlib.py: fix flake8 warningsGravatar Victor Huesca2019-08-051-2/+3
| | | | | | | Fix a weird blank-line missing and 2 trailing blank-space. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/getdeveloperlib.py: add defconfig parsingGravatar Victor Huesca2019-08-051-0/+11
| | | | | | | | | | | | | This patch extends the Developer class so that it associates each developer with the defconfigs (in configs/) is in responsible for, according to the DEVELOPERS file. It will allow using the getdeveloperlib module to find which developer is responsible for which defconfig, and send e-mail notifications of defconfig build failures. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/getdeveloperlib.py: add runtime test parsingGravatar Victor Huesca2019-08-051-0/+56
| | | | | | | | | | | | | | | | | | | This patch extends the Developer class so that it associates each developer with the runtime tests (in support/testing) is in responsible for, according to the DEVELOPERS file. The implementation relies on the unittest module to list all test cases and does some manual parsing of these test-case objects to get the actual list of test-cases per test-suite. A global variable is used to compute the list of unittest only once. This feature will allow to use the getdeveloperlib module to find which developer is responsible for which runtime test, and send e-mail notifications of runtime tests failures. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/getdeveloperlib: add some debug informationGravatar Victor Huesca2019-08-041-0/+16
| | | | | Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* check-package: ignore external.mkGravatar Ricardo Martincoski2019-08-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The external.mk file in a br2-external usually contains raw makefile targets. This file is common code and not a package recipe so it should not be tested against the code-style of a package .mk file. When using this script to check files in a br2-external tree, usually the user is responsible for not passing files that check-package do not understand. But external.mk is special because it is part of the br2-external structure, so it is likely someone expects it to be checkable by an in-tree script. Instead of adding another blob to the manual, just ignore this file. Only do that when a br2-external is being tested (so with option -b passed to the script) and also check that it is on the root path of the br2-external to allow someone to have a package called external. Reported on bug #11271. Reported-by: Vitaliy Lotorev <lotorev@gmail.com> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Arnout: wrap at 80 columns] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* check-package: fix check of file in current dir with -bGravatar Ricardo Martincoski2019-08-032-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | One of the possible usages of check-package is to first cd to the directory that contains the files to test (e.g. a package directory) and then call the script passing the files in the current dir. It already works when used for intree files, but for files in a br2-external it throws an exception because some check functions (from utils/checkpackagelib/lib_*.py) do need the name of the file being processed and assume there will be a slash before the name. Fix all check functions that assume that the full filename being checked contains a slash. Do not use regexps to extract the filename, use os.path functions instead. Notice RemoveDefaultPackageSourceVariable and TypoInPackageVariable lead to an exception in this case, but ApplyOrder instead generates a false warning. Fixes bug #11271. Reported-by: Vitaliy Lotorev <lotorev@gmail.com> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Vitaliy Lotorev <lotorev@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: properly initialize levelsGravatar Arnout Vandecappelle (Essensium/Mind)2019-08-021-3/+3
| | | | | | | | | | | | | Fix an issue introduced by Arnout while committing. Jerzy originally initialized the menu_of_packages, package and print_package_warning members like they should be, but Arnout thought it wasn't needed and removed that. It is actually needed, to make sure the top level (level 0) works. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/264383157 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/checkpackagelib: CommentsMenusPackagesOrder: use regex for sourceGravatar Arnout Vandecappelle (Essensium/Mind)2019-08-011-2/+3
| | | | | | | | | | | | | | | | The 'source' strings identify which package is incorrectly ordered. We need to extract the actual package name from that string, which is currently done with constants that assume the file is package/Config.in. In addition, only 'source' lines that are indented with a tab are checked. This kind of indentation is done in package/Config.in, but not e.g. boot/Config.in. Therefore, use a regular expression to match the 'source' lines, and to extract the directory part from it. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: append elements to arrays ↵Gravatar Jerzy Grzegorek2019-08-011-6/+12
| | | | | | | | | | | | | | if needed In the future, the nesting level of menus, comments and conditions may increase. The fixed array length used now is not appropriate. Therefore, append elements to the arrays if needed. Also change order of variables. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: fix 'menuconfig' handlingGravatar Arnout Vandecappelle (Essensium/Mind)2019-08-011-2/+2
| | | | | | | | | | | | | | | The CommentsMenusPackagesOrder check builds the 'state' to track the depth of menus and conditions. However, a menuconfig doesn't create a menu by itself - it is always followed by a condition that implies the menu. As a result, when unwinding the 'state', the level will be wrong. Fix this by checking for menu followed by a space, so it no longer matches menuconfig. For consistency, do the same for comment and if as well. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/checkpackagelib: CommentsMenusPackagesOrder: only apply to top-levelGravatar Arnout Vandecappelle (Essensium/Mind)2019-08-011-0/+5
| | | | | | | | | | | | | | | | | | | The CommentsMenusPackagesOrder test is broken in various ways for files other than package/Config.in and package/Config.in.host. Therefore, the script gives bogus errors for various other Config.in files. However, we don't really want to check those other files. Indeed, many of them have a non-alphabetical ordering for good reasons. Therefore, skip the check for files other than package/Config.in and package/Config.in.host. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/251214899 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
* checkpackagelib/lib_config.py: check packages alphabetical order in ↵Gravatar Jerzy Grzegorek2019-07-141-0/+66
| | | | | | | | | | | | | | | | {Config.in, Config.in.host} Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> [Arnout: - calculate level by counting - instead of with a static array; - new_package is only used locally, so don't make it a class member; - do indentation according to length of prefix; - don't split string in the middle of a line; - report first wrong package per menu; - do replace() only once; - add comment why we do replace(). ] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/check-package: Add a quiet flagGravatar Brandon Maier2019-07-031-2/+5
| | | | | | | | When running in a CI system, stat messages become white noise. Introduce an option to suppress non-error, non-warning, messages. Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/test-pkg: clean output dir for successful buildsGravatar Thomas De Schampheleire2019-06-231-3/+18
| | | | | | | | | | | | | | test-pkg will use gigabytes of space when testing all toolchains. Nevertheless, you are normally only interested in the actual build / host tree when there is a build failure. Do a 'make clean' for successful builds to save disk space, unless the new option '-k/--keep' is set. Note that the logfile and configuration is always retained for inspection. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/test-pkg: fix long option parsingGravatar Thomas De Schampheleire2019-06-231-2/+2
| | | | | | | | | | | | | | The long option parsing of test-pkg is broken because: - some long options are not declared - there should be a comma between long options, the colon does not replace it. This change also revealed that the declaration of 'toolchains-dir' should have been 'toolchains-csv', originally introduced in commit ed59f81a3cb4ddb. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/scancpan: fix test file creation on br-externalGravatar Francois Perrad2019-06-091-2/+5
| | | | | | | first, add the creation of the needed subdirectories Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/genrandconfing: randomly enable BR2_REPRODUCIBLE 10% of the timesGravatar Atharva Lele2019-06-081-0/+6
| | | | | | | | | | | Initial patch to start reproducibility testing. Also enable tar filesystem to compare images since diffoscope works well with tar. Signed-off-by: Atharva Lele <itsatharva@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/check-package: fix flake8 warningGravatar Peter Seiderer2019-05-201-0/+1
| | | | | | | | | | | | Fix flake 8 warning (introduced with commit [1]): utils/checkpackagelib/lib.py:56:1: E302 expected 2 blank lines, found 1 [1] https://git.buildroot.net/buildroot/commit/?id=8e352c32b0beded97a8a5c1e9edc9d618514ee7b Reported-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* utils/check-package: warn about utf-8 characters in .mk filesGravatar Peter Seiderer2019-05-182-0/+14
| | | | | | Signed-off-by: Peter Seiderer <ps.report@gmx.net> Tested-by: Titouan Christophe <titouan.christophe@railnova.eu> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: prevent selecting libffi on nds32Gravatar Thomas Petazzoni2019-04-171-0/+3
| | | | | | | | | | | libffi does not have support for the nds32 architecture, so let's disallow libffi on this CPU architecture for the moment. Fixes: http://autobuild.buildroot.net/results/12803a705586e82fdfb49013da2eb3b9879ccd45/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/genrandconfig: test configurations with BR2_SYSTEM_ENABLE_NLSGravatar Thomas Petazzoni2019-04-141-0/+2
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* utils/getdeveloperlib.py: print warnings/errors to stderrGravatar Peter Korsgaard2019-04-041-3/+8
| | | | | | | | Instead of stdout where it gets mixed with the normal output, confusing software parsing the output (E.G. get-developers -e as git sendemail.ccCmd). Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* utils/scancpan: add a check of XS dependencies in generated testGravatar Francois Perrad2019-03-311-0/+8
| | | | | | | | The XS modules have a high propability to fail (compared to Pure Perl modules), so it is valuable to check XS dependencies before the check of the main module. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>