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
9import elf
10
11from entry import Entry
12from blob import Entry_blob
13
14class 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)
24