summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-08-30 21:28:55 +0000
committerRichard Purdie <richard@openedhand.com>2006-08-30 21:28:55 +0000
commitc1ab349f631a881104cca6615c8bbe365e0ef057 (patch)
tree8223aaf758677dba99485296fca135f68a2ed6fd /meta/classes/base.bbclass
parent27e6638adc8ef10a975d6e853ef7f427ca3e5fbb (diff)
downloadopenembedded-core-c1ab349f631a881104cca6615c8bbe365e0ef057.tar.gz
openembedded-core-c1ab349f631a881104cca6615c8bbe365e0ef057.tar.bz2
openembedded-core-c1ab349f631a881104cca6615c8bbe365e0ef057.tar.xz
openembedded-core-c1ab349f631a881104cca6615c8bbe365e0ef057.zip
base.bbclass: Add devshell task. Trigger as bitbake somepackage -c devshell which will drop you into an interactive shell within the source (S) directory. The environment is as found internally to other tasks for the package (PATH includes the toolchain etc.).
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@682 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 940e7ac7a..eef0efa92 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -572,6 +572,14 @@ addtask build after do_populate_staging
do_build = ""
do_build[func] = "1"
+do_devshell[dirs] = "${S}"
+do_devshell[nostamp] = 1
+do_devshell[interactive] = 1
+base_do_devshell() {
+ bash -i
+}
+addtask devshell
+
# Functions that update metadata based on files outputted
# during the build process.
@@ -687,7 +695,7 @@ python () {
# Patch handling
inherit patch
-EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage
+EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage do_devshell
MIRRORS[func] = "0"
MIRRORS () {