Merge git://git.denx.de/u-boot-spi
[oweals/u-boot.git] / tools / binman / etype / u_boot_spl.py
1 # Copyright (c) 2016 Google, Inc
2 # Written by Simon Glass <sjg@chromium.org>
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6 # Entry-type module for spl/u-boot-spl.bin
7 #
8
9 import elf
10
11 from entry import Entry
12 from blob import Entry_blob
13
14 class Entry_u_boot_spl(Entry_blob):
15     def __init__(self, image, etype, node):
16         Entry_blob.__init__(self, image, etype, node)
17         self.elf_fname = 'spl/u-boot-spl'
18
19     def GetDefaultFilename(self):
20         return 'spl/u-boot-spl.bin'
21
22     def WriteSymbols(self, image):
23         elf.LookupAndWriteSymbols(self.elf_fname, self, image)