mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
bitbake-dev: Improve showEnvironment functionality
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -203,16 +203,25 @@ class CommandsAsync:
|
|||||||
command.finishAsyncCommand()
|
command.finishAsyncCommand()
|
||||||
showVersions.needcache = True
|
showVersions.needcache = True
|
||||||
|
|
||||||
def showEnvironment(self, command, params):
|
def showEnvironmentPackage(self, command, params):
|
||||||
"""
|
"""
|
||||||
Print the environment
|
Print the environment of a recipe
|
||||||
"""
|
"""
|
||||||
bfile = params[0]
|
bfile = params[0]
|
||||||
pkg = params[1]
|
pkg = params[1]
|
||||||
|
|
||||||
command.cooker.showEnvironment(bfile, pkg)
|
command.cooker.showEnvironment(bfile, pkg)
|
||||||
command.finishAsyncCommand()
|
command.finishAsyncCommand()
|
||||||
showEnvironment.needcache = True
|
showEnvironmentPackage.needcache = True
|
||||||
|
|
||||||
|
def showEnvironment(self, command, params):
|
||||||
|
"""
|
||||||
|
Print the standard environment
|
||||||
|
"""
|
||||||
|
|
||||||
|
command.cooker.showEnvironment()
|
||||||
|
command.finishAsyncCommand()
|
||||||
|
showEnvironment.needcache = False
|
||||||
|
|
||||||
def parseFiles(self, command, params):
|
def parseFiles(self, command, params):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -141,8 +141,10 @@ class BBCooker:
|
|||||||
bb.error("Only one target can be used with the --environment option.")
|
bb.error("Only one target can be used with the --environment option.")
|
||||||
elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0:
|
elif self.configuration.buildfile and len(self.configuration.pkgs_to_build) > 0:
|
||||||
bb.error("No target should be used with the --environment and --buildfile options.")
|
bb.error("No target should be used with the --environment and --buildfile options.")
|
||||||
|
elif self.configuration.buildfile is not None or len(self.configuration.pkgs_to_build) > 0:
|
||||||
|
self.commandlineAction = ["showEnvironmentPackage", self.configuration.buildfile, self.configuration.pkgs_to_build]
|
||||||
else:
|
else:
|
||||||
self.commandlineAction = ["showEnvironment", self.configuration.buildfile, self.configuration.pkgs_to_build]
|
self.commandlineAction = ["showEnvironment"]
|
||||||
elif self.configuration.buildfile is not None:
|
elif self.configuration.buildfile is not None:
|
||||||
self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd]
|
self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd]
|
||||||
elif self.configuration.show_versions:
|
elif self.configuration.show_versions:
|
||||||
|
|||||||
Reference in New Issue
Block a user