From 638f8ca4085fc9519a8b1bc9fb212951e7635975 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 22 Jul 2011 16:38:50 +0100 Subject: bitbake/cooker: show a warning when -b is specified Too many people are using -b because they think it is the normal way of specifying a target to be built, and then get confused when the build fails due to a missing dependency; so show a warning about dependencies not being handled when this option is used. (Bitbake rev: c470f3f36aef24c46d9722593422286340be296b) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7cf43a04ae..b0ddb2e112 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -906,6 +906,10 @@ class BBCooker: Build the file matching regexp buildfile """ + # Too many people use -b because they think it's how you normally + # specify a target to be built, so show a warning + bb.warn("Buildfile specified, dependencies will not be handled. If this is not what you want, do not use -b / --buildfile.") + # Parse the configuration here. We need to do it explicitly here since # buildFile() doesn't use the cache self.parseConfiguration() -- cgit v1.2.3-54-g00ecf