[poky] [PATCH 1/1] Ensure Bash is used when spawning terminals
Joshua Lock
josh at linux.intel.com
Wed Feb 23 08:36:45 PST 2011
From: Joshua Lock <josh at linux.intel.com>
We rely on Bashisms when spawning a terminal so ensure that bash is used
when using devshell and menuconfig.
Fixes [BUGID #119]
Signed-off-by: Joshua Lock <josh at linux.intel.com>
---
meta/classes/devshell.bbclass | 4 ++--
meta/classes/kernel.bbclass | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 4fb3e63..5f262f4 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -9,7 +9,8 @@ devshell_do_devshell() {
export XAUTHORITY='${XAUTHORITY}'
export TERMWINDOWTITLE="Bitbake Developer Shell"
export EXTRA_OEMAKE='${EXTRA_OEMAKE}'
- ${TERMCMD}
+ export SHELLCMDS="bash"
+ ${TERMCMDRUN}
if [ $? -ne 0 ]; then
echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
exit 1
@@ -17,6 +18,5 @@ devshell_do_devshell() {
}
addtask devshell after do_patch
-
EXPORT_FUNCTIONS do_devshell
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a1b1354..5d9b86a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -202,7 +202,7 @@ do_menuconfig() {
export DBUS_SESSION_BUS_ADDRESS='${DBUS_SESSION_BUS_ADDRESS}'
export XAUTHORITY='${XAUTHORITY}'
export TERMWINDOWTITLE="${PN} Kernel Configuration"
- export SHELLCMDS="make menuconfig"
+ export SHELLCMDS="bash make menuconfig"
${TERMCMDRUN}
if [ $? -ne 0 ]; then
echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
--
1.7.4
More information about the poky
mailing list