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