diff options
-rw-r--r-- | meta/classes/cml1.bbclass | 12 | ||||
-rw-r--r-- | meta/classes/kernel.bbclass | 15 |
2 files changed, 12 insertions, 15 deletions
diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass index 79218b4a12..a747af5e4d 100644 --- a/meta/classes/cml1.bbclass +++ b/meta/classes/cml1.bbclass | |||
@@ -6,3 +6,15 @@ cml1_do_configure() { | |||
6 | 6 | ||
7 | EXPORT_FUNCTIONS do_configure | 7 | EXPORT_FUNCTIONS do_configure |
8 | addtask configure after do_unpack do_patch before do_compile | 8 | addtask configure after do_unpack do_patch before do_compile |
9 | |||
10 | do_menuconfig() { | ||
11 | export TERMWINDOWTITLE="${PN} Configuration" | ||
12 | export SHELLCMDS="make menuconfig" | ||
13 | ${TERMCMDRUN} | ||
14 | if [ $? -ne 0 ]; then | ||
15 | oefatal "'${TERMCMD}' not found. Check TERMCMD variable." | ||
16 | fi | ||
17 | } | ||
18 | do_menuconfig[nostamp] = "1" | ||
19 | addtask menuconfig after do_configure | ||
20 | |||
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 9c492a3ecc..25d2629a71 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -197,21 +197,6 @@ kernel_do_configure() { | |||
197 | 197 | ||
198 | do_configure[depends] += "${INITRAMFS_TASK}" | 198 | do_configure[depends] += "${INITRAMFS_TASK}" |
199 | 199 | ||
200 | do_menuconfig() { | ||
201 | export DISPLAY='${DISPLAY}' | ||
202 | export DBUS_SESSION_BUS_ADDRESS='${DBUS_SESSION_BUS_ADDRESS}' | ||
203 | export XAUTHORITY='${XAUTHORITY}' | ||
204 | export TERMWINDOWTITLE="${PN} Kernel Configuration" | ||
205 | export SHELLCMDS="make menuconfig" | ||
206 | ${TERMCMDRUN} | ||
207 | if [ $? -ne 0 ]; then | ||
208 | echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable." | ||
209 | exit 1 | ||
210 | fi | ||
211 | } | ||
212 | do_menuconfig[nostamp] = "1" | ||
213 | addtask menuconfig after do_configure | ||
214 | |||
215 | pkg_postinst_kernel () { | 200 | pkg_postinst_kernel () { |
216 | cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true | 201 | cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true |
217 | } | 202 | } |