diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-28 20:35:01 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:26:35 -0700 |
commit | f31fa99a9ed92c223fbf56e07eae57e7bdea19ae (patch) | |
tree | 77464608e5ade074862d786989a966016974ebc1 /tools | |
parent | d1055d681af40963d1c4b1a517ae131f738983f4 (diff) |
dtoc: Rename dt-platdata.c to dt-plat.c
Use this new name to be consistent with the rest of U-Boot, which talks
about 'plat' for the platform data, which is what this file holds.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dtoc/dtb_platdata.py | 4 | ||||
-rwxr-xr-x | tools/dtoc/test_dtoc.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index b3d777e0c5..e07a5d3a1c 100644 --- a/tools/dtoc/dtb_platdata.py +++ b/tools/dtoc/dtb_platdata.py @@ -796,7 +796,7 @@ class DtbPlatdata(): information. """ self.out('/* Allow use of U_BOOT_DRVINFO() in this file */\n') - self.out('#define DT_PLATDATA_C\n') + self.out('#define DT_PLAT_C\n') self.out('\n') self.out('#include <common.h>\n') self.out('#include <dm.h>\n') @@ -832,7 +832,7 @@ OUTPUT_FILES = { OutputFile(Ftype.HEADER, 'dt-structs-gen.h', 'Defines the structs used to hold devicetree data'), 'platdata': - OutputFile(Ftype.SOURCE, 'dt-platdata.c', + OutputFile(Ftype.SOURCE, 'dt-plat.c', 'Declares the U_BOOT_DRIVER() records and platform data'), } diff --git a/tools/dtoc/test_dtoc.py b/tools/dtoc/test_dtoc.py index 2e4dd2b24d..d56cd311fa 100755 --- a/tools/dtoc/test_dtoc.py +++ b/tools/dtoc/test_dtoc.py @@ -47,7 +47,7 @@ C_HEADER = '''/* */ /* Allow use of U_BOOT_DRVINFO() in this file */ -#define DT_PLATDATA_C +#define DT_PLAT_C #include <common.h> #include <dm.h> @@ -979,5 +979,5 @@ U_BOOT_DRVINFO(spl_test2) = { leafs = set(os.path.basename(fname) for fname in fnames) self.assertEqual( - {'dt-structs-gen.h', 'source.dts', 'dt-platdata.c', 'source.dtb'}, + {'dt-structs-gen.h', 'source.dts', 'dt-plat.c', 'source.dtb'}, leafs) |