diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-17 13:39:15 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-17 13:39:15 +0000 |
commit | 5b5ae6bec9fe3350bf9808d9ed7236a4517ae88b (patch) | |
tree | 226107b0762501eba8b6ea104cbeb9e27fbb8731 | |
parent | ece438786ed034be60b8742b713ef443ff95ad8f (diff) | |
download | poky-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
-rw-r--r-- | meta/classes/kernel.bbclass | 12 |
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 | ||
164 | do_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 | } | ||
173 | do_menuconfig[nostamp] = "1" | ||
174 | addtask menuconfig after do_patch | ||
175 | |||
164 | pkg_postinst_kernel () { | 176 | pkg_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 | } |