From a2b3c9e01c871a395a93e162731db77a618306cb Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sat, 6 Jul 2013 15:43:00 +0200 Subject: test-dependencies: add simple script to detect missing or autoenabled dependencies Signed-off-by: Martin Jansa Signed-off-by: Saul Wold --- scripts/test-dependencies.sh | 256 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100755 scripts/test-dependencies.sh (limited to 'scripts') diff --git a/scripts/test-dependencies.sh b/scripts/test-dependencies.sh new file mode 100755 index 0000000000..e4cf4d366b --- /dev/null +++ b/scripts/test-dependencies.sh @@ -0,0 +1,256 @@ +#!/bin/sh + +# Author: Martin Jansa +# +# Copyright (c) 2013 Martin Jansa + +# Used to detect missing dependencies or automagically +# enabled dependencies which aren't explicitly enabled +# or disabled. + +# It does 3 builds of +# 1st to populate sstate-cache directory and sysroot +# 2nd to rebuild each recipe with every possible +# dependency found in sysroot (which stays populated +# from 1st build +# 3rd to rebuild each recipe only with dependencies defined +# in DEPENDS +# 4th (optional) repeat build like 3rd to make sure that +# minimal versions of dependencies defined in DEPENDS +# is also enough + +# Global vars +tmpdir= +targets= +recipes= +buildhistory= +buildtype= +default_targets="world" +default_buildhistory="buildhistory" +default_buildtype="1 2 3 c" + +usage () { + cat << EOF +Welcome to utility to detect missing or autoenabled dependencies. +WARNING: this utility will completely remove your tmpdir (make sure + you don't have important buildhistory or persistent dir there). +$0