diff options
author | Richard Purdie <richard@openedhand.com> | 2006-08-30 21:28:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-08-30 21:28:55 +0000 |
commit | c1ab349f631a881104cca6615c8bbe365e0ef057 (patch) | |
tree | 8223aaf758677dba99485296fca135f68a2ed6fd /meta | |
parent | 27e6638adc8ef10a975d6e853ef7f427ca3e5fbb (diff) | |
download | poky-c1ab349f631a881104cca6615c8bbe365e0ef057.tar.gz |
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')
-rw-r--r-- | meta/classes/base.bbclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 940e7ac7a4..eef0efa926 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -572,6 +572,14 @@ addtask build after do_populate_staging | |||
572 | do_build = "" | 572 | do_build = "" |
573 | do_build[func] = "1" | 573 | do_build[func] = "1" |
574 | 574 | ||
575 | do_devshell[dirs] = "${S}" | ||
576 | do_devshell[nostamp] = 1 | ||
577 | do_devshell[interactive] = 1 | ||
578 | base_do_devshell() { | ||
579 | bash -i | ||
580 | } | ||
581 | addtask devshell | ||
582 | |||
575 | # Functions that update metadata based on files outputted | 583 | # Functions that update metadata based on files outputted |
576 | # during the build process. | 584 | # during the build process. |
577 | 585 | ||
@@ -687,7 +695,7 @@ python () { | |||
687 | # Patch handling | 695 | # Patch handling |
688 | inherit patch | 696 | inherit patch |
689 | 697 | ||
690 | EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage | 698 | 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 |
691 | 699 | ||
692 | MIRRORS[func] = "0" | 700 | MIRRORS[func] = "0" |
693 | MIRRORS () { | 701 | MIRRORS () { |