--- /dev/null
+# Menu: HEADER
+# FORMAT: 4
+# ARCH: arm64 armhf
+# FLAVOUR: arm64-raspi armhf-raspi
+# FLAVOUR_DEP: {'arm64-raspi': 'arm64-generic', 'armhf-raspi': 'armhf-generic-lpae'}
+
+include "annotations.override.2"
+
+CONFIG_SND_TRIDENT policy<{'arm64': '-', 'armhf': '-'}> note<'Pi specific (not availble on Pi)'>
--- /dev/null
+{
+ "arch": [
+ "arm64",
+ "armhf"
+ ],
+ "flavour": [
+ "arm64-raspi",
+ "armhf-raspi"
+ ],
+ "flavour_dep": {
+ "arm64-raspi": "arm64-generic",
+ "armhf-raspi": "armhf-generic-lpae"
+ },
+ "include": [
+ "annotations.override.2"
+ ],
+ "config": {
+ "CONFIG_SND_TRIDENT": {
+ "policy": {
+ "amd64": "m",
+ "i386": "m",
+ "arm64": "-",
+ "armhf": "-"
+ },
+ "note": "'Pi specific (not availble on Pi)'"
+ }
+ }
+}
--- /dev/null
+# Menu: HEADER
+# FORMAT: 4
+# ARCH: amd64 arm64 armhf i386 ppc64el s390x
+# FLAVOUR: amd64-generic amd64-lowlatency arm64-generic armhf-generic armhf-generic-lpae i386-generic i386-lowlatency ppc64el-generic s390x-generic
+
+CONFIG_SND_TRIDENT policy<{'amd64': 'm', 'armhf-generic-lpae': 'm', 'i386': 'm'}>
--- /dev/null
+import unittest
+
+from tests import utils
+
+from kconfig.annotations import Annotation
+
+
+class TestLoadAnnotations(unittest.TestCase):
+ def test_load(self):
+ for d in ("annotations.override.1",):
+ f = "tests/data/" + d
+ a = Annotation(f)
+ print(utils.to_dict(a))
+ r = utils.load_json(f + ".result")
+ self.assertEqual(utils.to_dict(a), r)