{kernel, module}.bbclass: don't run depmod for module packages during do_rootfs
{kernel, module}.bbclass: don't run depmod for module packages during do_rootfs

* depmod already gets executed by pkg_postinst_kernel-image.

* If you build a module using module.bbclass, pkg_postinst returns 1 in
  do_rootfs, causing pkg_postinst to run again on first boot. To improve
  this situation, I copied pkg_postinst from kernel.bbclass to module.bbclass.
  This was rejected by Koen, because he doesn't like the code from
  kernel.bblcass, which uses ${STAGING_DIR_KERNEL}. Richard then suggested
  that calling depmod during do_rootfs wasn't necessary at all, because
  it already gets done by kernel-image.

Signed-off-by: Andreas Oberritter <5c504a8ae171602809046bde94878da7dbc4e5ab@opendreambox.org>
Signed-off-by: Richard Purdie <3b7a1db6efedd40440bc6443bf377195011524e5@linuxfoundation.org>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

WindRiver-OpenSourceLabs/meta-oe-subset,WindRiver-OpenSourceLabs/meta-oe-subset