[Angstrom-devel] [RFC] backport base_version_less_or_equal() (base.bbclass) from .dev to stable branch

Koen Kooi koen at dominion.kabel.utwente.nl
Wed Mar 12 19:01:03 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bernhard Guillon schreef:
| hi all,
| because I want to add something like this [1] to task-base.bb to solve
| the problem of including 2.6.21 kernel to Angstrom r9 simpad images. I
| want to have base_version_less_or_equal() function backported to stable
| branch.
| What do you think?
|
| best regards
| Bernhard Guillon
|
| 1    ${@base_version_less_or_equal('KERNEL_VERSION', '2.6.23',
| 'kernel-module-aes', 'kernel-module-aes-generic', d)} "

from mtn annotate classes/base.bbclass:

~   e10f95bb.. by pfalcon 2007-02-27: def base_less_or_equal(variable,
checkvalue, truevalue, falsevalue, d):
~                                     :  import bb
~                                     :  if
float(bb.data.getVar(variable,d,1)) <= float(checkvalue):
~                                     :          return truevalue
~                                     :  else:
~                                     :          return falsevalue



I didn't know the stable branch is over a year old now.....
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFH2BpfMkyGM64RGpERAgTlAKCal1gRiMLIrRnEQfuZnCM+Qkx0LQCgiX5H
d+wdFjZrai+GQva/XBBOadM=
=3wFF
-----END PGP SIGNATURE-----




More information about the Angstrom-distro-devel mailing list