devshell: Clean up devshell code so this task doesn't polute the global namespace
authorRichard Purdie <rpurdie@linux.intel.com>
Sun, 28 Nov 2010 17:42:36 +0000 (17:42 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 9 Dec 2010 13:16:32 +0000 (13:16 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/devshell.bbclass

index d08056b..4fb3e63 100644 (file)
@@ -1,15 +1,14 @@
-EXTRA_OEMAKE[export] = "1"
-
 do_devshell[dirs] = "${S}"
 do_devshell[nostamp] = "1"
 
-export DISPLAY
-export DBUS_SESSION_BUS_ADDRESS
-export XAUTHORITY ?= "${HOME}/.Xauthority"
-export FAKEROOTENV
+XAUTHORITY ?= "${HOME}/.Xauthority"
 
 devshell_do_devshell() {
+       export DISPLAY='${DISPLAY}'
+       export DBUS_SESSION_BUS_ADDRESS='${DBUS_SESSION_BUS_ADDRESS}'
+       export XAUTHORITY='${XAUTHORITY}'
        export TERMWINDOWTITLE="Bitbake Developer Shell"
+       export EXTRA_OEMAKE='${EXTRA_OEMAKE}'
        ${TERMCMD}
        if [ $? -ne 0 ]; then
            echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."