devshell: Convert to its own class and add to poky.conf by default. Export EXTRA_OEMA...
authorRichard Purdie <richard@openedhand.com>
Wed, 30 Aug 2006 22:11:12 +0000 (22:11 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 30 Aug 2006 22:11:12 +0000 (22:11 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@683 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/base.bbclass
meta/classes/devshell.bbclass [new file with mode: 0644]
meta/conf/distro/poky.conf

index eef0efa..940e7ac 100644 (file)
@@ -572,14 +572,6 @@ 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.
 
@@ -695,7 +687,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 do_devshell
+EXPORT_FUNCTIONS do_clean do_mrproper do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_stage
 
 MIRRORS[func] = "0"
 MIRRORS () {
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
new file mode 100644 (file)
index 0000000..7948b65
--- /dev/null
@@ -0,0 +1,13 @@
+EXTRA_OEMAKE[export] = 1
+
+do_devshell[dirs] = "${S}"
+do_devshell[nostamp] = 1
+do_devshell[interactive] = 1
+devshell_do_devshell() {
+       bash -i
+}
+addtask devshell
+
+
+EXPORT_FUNCTIONS do_devshell
+
index c326314..148124e 100644 (file)
@@ -9,7 +9,7 @@ DISTRO_TYPE ?= "release"
 
 MAINTAINER_poky = "OpenedHand <poky@openedhand.com>"
 
-INHERIT += " package_ipk debian multimachine poky "
+INHERIT += " package_ipk debian multimachine poky devshell "
 # For some reason, this doesn't work
 # TARGET_OS ?= "linux"
 TARGET_OS = "linux"