You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional device tree overlays to support different hardware on Radxa products
5
5
@@ -33,6 +33,36 @@ As part of our CI pipeline, the built overlays are uploaded at the end. You can
33
33
34
34
Please be aware that artifacts expire over time, and they are not officially tested versions.
35
35
36
+
## Code style
37
+
38
+
We mandate reference style for our overlays. Please visit [DTO Syntax](https://source.android.com/docs/core/architecture/dto/syntax#reference) page to learn more.
39
+
40
+
If your existing overlay uses `target-path`, then the Android documentation does not show a clear migration path. Below is an example of how to convert them:
41
+
42
+
```dtos
43
+
/{
44
+
fragment@0 {
45
+
target-path = "/";
46
+
__overlay__ {
47
+
some_node: some-node {
48
+
some_prop = "okay";
49
+
...
50
+
};
51
+
};
52
+
};
53
+
}
54
+
```
55
+
56
+
```dtos
57
+
&{/} {
58
+
some_node: some-node {
59
+
some_prop = "okay";
60
+
...
61
+
};
62
+
}
63
+
```
64
+
65
+
36
66
## Metadata specs
37
67
38
68
Currently, we mandate a custom `metadata` node in overlays. This data is parsed by [`rsetup`](https://github.com/radxa-pkg/rsetup) to provide a human readable description and conflict detection. Below is a sample `metadata` node with detailed guidelines after:
0 commit comments