summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorRaphael Teller <raphael.teller@se.com>2022-05-23 10:10:44 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-23 21:31:31 +0100
commit7b7dbdd48b6a5020fec31843ad65965e22edb30f (patch)
treec5f5de377e3f31e946ea6149026e13cf20084f68 /meta/classes/kernel.bbclass
parente7b13beb494b9d57daacdb39e9a7ef8cfd254da7 (diff)
downloadpoky-7b7dbdd48b6a5020fec31843ad65965e22edb30f.tar.gz
kernel.bbclass: Do not overwrite recipe's custom postinst
Allow recipe to set a custom postinst for kernel image. Use prependVar in order to allow custom postinst to be ran after default postinst, potentially modifying the installed file/symlink. (From OE-Core rev: 579906b9f4ea32c8d4e0e11a87ee6c9e27cdf0dc) Signed-off-by: Raphael Teller <raphael.teller@se.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 83785c3b5b..5d2f17c3be 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -110,7 +110,7 @@ python __anonymous () {
110 110
111 d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower)) 111 d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower))
112 d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1') 112 d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1')
113 d.setVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e 113 d.prependVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e
114if [ -n "$D" ]; then 114if [ -n "$D" ]; then
115 ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1 115 ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
116else 116else