From e9d2ee3862488e98278a0201263c276c12729484 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 24 Aug 2019 07:22:57 -0600 Subject: [PATCH] binman: Use the Makefile for u_boot_binman_syms_size Remove this file from git and instead build it using the Makefile. Signed-off-by: Simon Glass --- tools/binman/elf_test.py | 5 +++-- tools/binman/ftest.py | 2 +- tools/binman/test/u_boot_binman_syms_size | Bin 4825 -> 0 bytes 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100755 tools/binman/test/u_boot_binman_syms_size diff --git a/tools/binman/elf_test.py b/tools/binman/elf_test.py index ff036cb6552..a913970150a 100644 --- a/tools/binman/elf_test.py +++ b/tools/binman/elf_test.py @@ -71,7 +71,8 @@ def BuildElfTestFiles(target_dir): tools.Run('make', '-C', target_dir, '-f', os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir, 'bss_data', 'u_boot_ucode_ptr', 'u_boot_no_ucode_ptr', - 'u_boot_binman_syms', 'u_boot_binman_syms.bin') + 'u_boot_binman_syms', 'u_boot_binman_syms.bin', + 'u_boot_binman_syms_size') class TestElf(unittest.TestCase): @@ -145,7 +146,7 @@ class TestElf(unittest.TestCase): """ entry = FakeEntry(10) section = FakeSection() - elf_fname = os.path.join(binman_dir, 'test', 'u_boot_binman_syms_size') + elf_fname =self.ElfTestFile('u_boot_binman_syms_size') with self.assertRaises(ValueError) as e: syms = elf.LookupAndWriteSymbols(elf_fname, entry, section) self.assertIn('has size 1: only 4 and 8 are supported', diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index 507c4818812..51eab6fbfad 100644 --- a/tools/binman/ftest.py +++ b/tools/binman/ftest.py @@ -490,7 +490,7 @@ class TestFunctional(unittest.TestCase): """ # TODO(sjg@chromium.org): Drop this when all Elf files use ElfTestFile() if src_fname in ['bss_data', 'u_boot_ucode_ptr', 'u_boot_no_ucode_ptr', - 'u_boot_binman_syms']: + 'u_boot_binman_syms', 'u_boot_binman_syms_size']: fname = cls.ElfTestFile(src_fname) else: fname = cls.TestFile(src_fname) diff --git a/tools/binman/test/u_boot_binman_syms_size b/tools/binman/test/u_boot_binman_syms_size deleted file mode 100755 index d691e897c0f1842cb82efbc67f57d9f62853b99c..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc-jL100001 literal 4825 zc-rlly-LGS6vt1}QgMqPTbB+MD$+}<0lz?mqD2rthHk&$#w?gZX|fGL5ClOG1VIo4L6CnU`5#~8DsZ)rI`CZG zBrn^;r|ZY}S3MlwFPwecLc7)4s?<7W?6J6_lMSNRSL0FCylm>Ep_8@cG!H*vnCVLZ6h}1XG$!_BS -- 2.47.3