kernel,cml1.bbclass: Move menuconfig to cml1
authorTom Rini <tom_rini@mentor.com>
Mon, 17 Jan 2011 16:21:54 +0000 (09:21 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 17 Jan 2011 16:21:54 +0000 (09:21 -0700)
The menuconfig target exists in places other than the kernel that
use kernel style config.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/cml1.bbclass
classes/kernel.bbclass

index 79218b4..d3d49eb 100644 (file)
@@ -4,5 +4,17 @@ cml1_do_configure() {
        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_configure
 EXPORT_FUNCTIONS do_configure
 addtask configure after do_unpack do_patch before do_compile
index b58c0e8..b18e615 100644 (file)
@@ -225,18 +225,6 @@ kernel_do_configure() {
 # XXX: Once we depend on bitbake 1.10.1 or newer this can be kernel_do_...
 do_configure[depends] += "${INITRAMFS_TASK}"
 
-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_configure
-
 pkg_postinst_kernel () {
        cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 }