Jörg Sommer via lists.openembedded.org schrieb am So 09. Jun, 16:59 (GMT):
> diff --git a/meta/classes-recipe/kernel.bbclass 
> b/meta/classes-recipe/kernel.bbclass
> index d6eedf942c..89badd90f1 100644
> --- a/meta/classes-recipe/kernel.bbclass
> +++ b/meta/classes-recipe/kernel.bbclass
> @@ -115,7 +115,9 @@ python __anonymous () {
>  
>          d.setVar('PKG:%s-image-%s' % (kname,typelower), 
> '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower))
>          d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1')
> -        d.prependVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set 
> +e
> +
> +        if d.getVar('KERNEL_IMAGETYPE_SYMLINK') == '1':
> +            d.prependVar('pkg_postinst:%s-image-%s' % (kname,typelower), 
> """set +e
>  if [ -n "$D" ]; then
>      ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
>  else
> @@ -127,7 +129,7 @@ else
>  fi
>  set -e
>  """ % (type, type, type, type, type, type, type))
> -        d.setVar('pkg_postrm:%s-image-%s' % (kname,typelower), """set +e
> +            d.setVar('pkg_postrm:%s-image-%s' % (kname,typelower), """set +e

While backporting this patch to kirkstone I realised this uses `setVar`
instead of `prependVar` (as above). Is this right?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200461): 
https://lists.openembedded.org/g/openembedded-core/message/200461
Mute This Topic: https://lists.openembedded.org/mt/106576203/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to