summaryrefslogtreecommitdiff
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-09-17 13:39:15 +0000
committerRichard Purdie <richard@openedhand.com>2007-09-17 13:39:15 +0000
commit5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b (patch)
tree226107b0762501eba8b6ea104cbeb9e27fbb8731 /meta/classes/kernel.bbclass
parentece438786ed034be60b8742b713ef443ff95ad8f (diff)
downloadopenembedded-core-5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b.tar.gz
openembedded-core-5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b.tar.bz2
openembedded-core-5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b.tar.xz
openembedded-core-5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b.zip
kernel.bbclass: Add menuconfig task
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2746 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 758a7c399..5976f42c7 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -161,6 +161,18 @@ kernel_do_configure() {
yes '' | oe_runmake oldconfig
}
+do_menuconfig() {
+ export TERMWINDOWTITLE="${PN} Kernel Configuration"
+ export SHELLCMDS="make menuconfig"
+ ${TERMCMDRUN}
+ if [ $? -ne 0 ]; then
+ echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
+ exit 1
+ fi
+}
+do_menuconfig[nostamp] = "1"
+addtask menuconfig after do_patch
+
pkg_postinst_kernel () {
cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
}