[OE-core] [PATCH] kernel.bbclass: fix pkg_postinst and pkg_postrm
Saul Wold
sgw at linux.intel.com
Tue Jan 3 21:17:22 UTC 2012
On 12/22/2011 03:46 PM, Andrea Adami wrote:
> * Symptom: kernel symlink in /boot is not created.
> * Rename in order to create the expected files:
> * /var/lib/opkg/info/kernel-3.1.4.postinst
> * /var/lib/opkg/info/kernel-3.1.4.postrm
>
> Signed-off-by: Andrea Adami<andrea.adami at gmail.com>
> ---
> meta/classes/kernel.bbclass | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 120a524..ec5d65e 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -223,11 +223,11 @@ do_savedefconfig() {
> do_savedefconfig[nostamp] = "1"
> addtask savedefconfig after do_configure
>
> -pkg_postinst_kernel () {
> +pkg_postinst_kernel-base () {
> cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
> }
>
> -pkg_postrm_kernel () {
> +pkg_postrm_kernel-base () {
> cd /${KERNEL_IMAGEDEST}; update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
> }
>
Merged into OE-Core
Thanks
Sau!
More information about the Openembedded-core
mailing list