summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-pkgdata-util3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util
index 93220e3617..75dd23efa3 100755
--- a/scripts/oe-pkgdata-util
+++ b/scripts/oe-pkgdata-util
@@ -598,6 +598,9 @@ def main():
598 logger.error("Unable to find bitbake by searching parent directory of this script or PATH") 598 logger.error("Unable to find bitbake by searching parent directory of this script or PATH")
599 sys.exit(1) 599 sys.exit(1)
600 logger.debug('Found bitbake path: %s' % bitbakepath) 600 logger.debug('Found bitbake path: %s' % bitbakepath)
601 if not os.environ.get('BUILDDIR', ''):
602 logger.error("This script can only be run after initialising the build environment (e.g. by using oe-init-build-env)")
603 sys.exit(1)
601 tinfoil = tinfoil_init() 604 tinfoil = tinfoil_init()
602 try: 605 try:
603 args.pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR') 606 args.pkgdata_dir = tinfoil.config_data.getVar('PKGDATA_DIR')