mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-12 00:47:46 -04: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. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
This commit is contained in:
parent
84d9dd2fcb
commit
a9b9a47857
1 changed files with 4 additions and 1 deletions
|
|
@ -347,7 +347,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