diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index ca49aec53a..e039dfc15c 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -237,14 +237,6 @@ do_savedefconfig() { | |||
237 | do_savedefconfig[nostamp] = "1" | 237 | do_savedefconfig[nostamp] = "1" |
238 | addtask savedefconfig after do_configure | 238 | addtask savedefconfig after do_configure |
239 | 239 | ||
240 | pkg_postinst_kernel-base () { | ||
241 | update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true | ||
242 | } | ||
243 | |||
244 | pkg_postrm_kernel-base () { | ||
245 | update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true | ||
246 | } | ||
247 | |||
248 | inherit cml1 | 240 | inherit cml1 |
249 | 241 | ||
250 | EXPORT_FUNCTIONS do_compile do_install do_configure | 242 | EXPORT_FUNCTIONS do_compile do_install do_configure |
@@ -272,14 +264,19 @@ ALLOW_EMPTY_kernel-modules = "1" | |||
272 | DESCRIPTION_kernel-modules = "Kernel modules meta package" | 264 | DESCRIPTION_kernel-modules = "Kernel modules meta package" |
273 | 265 | ||
274 | pkg_postinst_kernel-image () { | 266 | pkg_postinst_kernel-image () { |
275 | if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then | 267 | update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true |
276 | mkdir -p $D/lib/modules/${KERNEL_VERSION} | 268 | if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then |
277 | fi | 269 | mkdir -p $D/lib/modules/${KERNEL_VERSION} |
278 | if [ -n "$D" ]; then | 270 | fi |
279 | depmodwrapper -a -b $D ${KERNEL_VERSION} | 271 | if [ -n "$D" ]; then |
280 | else | 272 | depmodwrapper -a -b $D ${KERNEL_VERSION} |
281 | depmod -a ${KERNEL_VERSION} | 273 | else |
282 | fi | 274 | depmod -a ${KERNEL_VERSION} |
275 | fi | ||
276 | } | ||
277 | |||
278 | pkg_postrm_kernel-image () { | ||
279 | update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true | ||
283 | } | 280 | } |
284 | 281 | ||
285 | PACKAGESPLITFUNCS_prepend = "split_kernel_packages " | 282 | PACKAGESPLITFUNCS_prepend = "split_kernel_packages " |