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
8import elf
9
10from entry import Entry
11from blob import Entry_blob
12
13class Entry_u_boot_spl(Entry_blob):
14    def __init__(self, section, etype, node):
15        Entry_blob.__init__(self, section, 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, section):
22        elf.LookupAndWriteSymbols(self.elf_fname, self, section)
23