Commit a4aae9c
committed
devices: build init binary as part of build script
Build the default init binary automatically from a Rust build script,
instead of from the Makefile. Doing so is a stepping stone to consuming
the crate from Cargo. We do build the init binary unconditionally
compared to before to not duplicate the logic overly much. But I would
think that's not an issue. We keep supporting cross-compilation from
MacOS when using the Makefile as before.
Signed-off-by: Daniel Müller <deso@posteo.net>1 parent a68a626 commit a4aae9c
3 files changed
Lines changed: 49 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | | - | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | | - | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
| |||
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| |||
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 56 | | |
68 | 57 | | |
69 | 58 | | |
| |||
113 | 102 | | |
114 | 103 | | |
115 | 104 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 105 | + | |
| 106 | + | |
121 | 107 | | |
122 | 108 | | |
123 | 109 | | |
| |||
155 | 141 | | |
156 | 142 | | |
157 | 143 | | |
158 | | - | |
| 144 | + | |
159 | 145 | | |
160 | 146 | | |
161 | 147 | | |
| |||
174 | 160 | | |
175 | 161 | | |
176 | 162 | | |
177 | | - | |
| 163 | + | |
178 | 164 | | |
179 | 165 | | |
180 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
2 | 44 | | |
3 | 45 | | |
4 | 46 | | |
5 | 47 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 48 | + | |
10 | 49 | | |
11 | 50 | | |
12 | 51 | | |
| |||
0 commit comments