summaryrefslogtreecommitdiffstats
path: root/meta/classes
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
parentece438786ed034be60b8742b713ef443ff95ad8f (diff)
downloadpoky-5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b.tar.gz
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')
-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 758a7c3992..5976f42c71 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -161,6 +161,18 @@ kernel_do_configure() {
161 yes '' | oe_runmake oldconfig 161 yes '' | oe_runmake oldconfig
162} 162}
163 163
164do_menuconfig() {
165 export TERMWINDOWTITLE="${PN} Kernel Configuration"
166 export SHELLCMDS="make menuconfig"
167 ${TERMCMDRUN}
168 if [ $? -ne 0 ]; then
169 echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
170 exit 1
171 fi
172}
173do_menuconfig[nostamp] = "1"
174addtask menuconfig after do_patch
175
164pkg_postinst_kernel () { 176pkg_postinst_kernel () {
165 cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true 177 cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
166} 178}