mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
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 <sjg@chromium.org>
This commit is contained in:
@@ -71,7 +71,8 @@ def BuildElfTestFiles(target_dir):
|
|||||||
tools.Run('make', '-C', target_dir, '-f',
|
tools.Run('make', '-C', target_dir, '-f',
|
||||||
os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir,
|
os.path.join(testdir, 'Makefile'), 'SRC=%s/' % testdir,
|
||||||
'bss_data', 'u_boot_ucode_ptr', 'u_boot_no_ucode_ptr',
|
'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):
|
class TestElf(unittest.TestCase):
|
||||||
@@ -145,7 +146,7 @@ class TestElf(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
entry = FakeEntry(10)
|
entry = FakeEntry(10)
|
||||||
section = FakeSection()
|
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:
|
with self.assertRaises(ValueError) as e:
|
||||||
syms = elf.LookupAndWriteSymbols(elf_fname, entry, section)
|
syms = elf.LookupAndWriteSymbols(elf_fname, entry, section)
|
||||||
self.assertIn('has size 1: only 4 and 8 are supported',
|
self.assertIn('has size 1: only 4 and 8 are supported',
|
||||||
|
@@ -490,7 +490,7 @@ class TestFunctional(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
# TODO(sjg@chromium.org): Drop this when all Elf files use ElfTestFile()
|
# 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',
|
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)
|
fname = cls.ElfTestFile(src_fname)
|
||||||
else:
|
else:
|
||||||
fname = cls.TestFile(src_fname)
|
fname = cls.TestFile(src_fname)
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user