mirror of
https://github.com/dgibson/dtc.git
synced 2026-01-22 01:30:34 -05:00
Emit /plugin/ when compiling to .dts with DTSF_PLUGIN set
This fixes `dtc -I dts -O dts` to make the file a plugin if the source file is one. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Message-ID: <20250919092912.663304-9-u.kleine-koenig@baylibre.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
7c78c8542d
commit
ef3b1baf63
1 changed files with 4 additions and 1 deletions
|
|
@ -369,7 +369,10 @@ void dt_to_source(FILE *f, struct dt_info *dti)
|
||||||
{
|
{
|
||||||
struct reserve_info *re;
|
struct reserve_info *re;
|
||||||
|
|
||||||
fprintf(f, "/dts-v1/;\n\n");
|
fprintf(f, "/dts-v1/;\n");
|
||||||
|
if (dti->dtsflags & DTSF_PLUGIN)
|
||||||
|
fprintf(f, "/plugin/;\n");
|
||||||
|
fprintf(f, "\n");
|
||||||
|
|
||||||
for (re = dti->reservelist; re; re = re->next) {
|
for (re = dti->reservelist; re; re = re->next) {
|
||||||
struct label *l;
|
struct label *l;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue