aboutsummaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2016-12-09 16:12:30 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2016-12-09 16:13:39 +1100
commite3c769aa9c16e7b94051c5eaae6635e79ac19385 (patch)
tree59ead750de6b43ab8d7c97f27431d40b7c42fe80 /dtc.c
parentc96cb3c0169ed01bef684b49092b5b6cfab5054d (diff)
downloaddtc-e3c769aa9c16e7b94051c5eaae6635e79ac19385.tar.gz
dtc: Don't always generate __symbols__ for plugins
At the moment we generate a __symbols__ node if -@ is specified OR if the dts has the /plugin/ tag. That difference in behaviour from handling base trees is unnecessary and slightly confusing. It also means it's impossible to create a plugin without symbols. Since symbols in a plugin are only useful in the case of stacked plugins - and libfdt doesn't even support merging plugin symbols as part of overlay application yet - that's a thing that might be useful. So make __symbols__ generation depend only on -@. We also remove remove the testcases that checked explicitly for this not very useful behaviour. Instead we don't use -@ for our basic overlay testcase, and check that symbols are not generated. At some point in the future we should add support for symbol merging to libfdt and add testcases for stacked overlay application. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
-rw-r--r--dtc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/dtc.c b/dtc.c
index ab16ab4..4b3d78f 100644
--- a/dtc.c
+++ b/dtc.c
@@ -322,7 +322,6 @@ int main(int argc, char *argv[])
/* on a plugin, generate by default */
if (bi->dtsflags & DTSF_PLUGIN) {
- generate_symbols = 1;
generate_fixups = 1;
}