#!/bin/bash # Author: Martin Jansa # # Copyright (c) 2013 Martin Jansa # Used to detect missing dependencies or automagically # enabled dependencies which aren't explicitly enabled # or disabled. Using bash to have PIPESTATUS variable. # 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