]>
Commit | Line | Data |
---|---|---|
4f44304b SG |
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 | ||
19790632 SG |
9 | import elf |
10 | ||
4f44304b SG |
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) | |
19790632 | 17 | self.elf_fname = 'spl/u-boot-spl' |
4f44304b SG |
18 | |
19 | def GetDefaultFilename(self): | |
20 | return 'spl/u-boot-spl.bin' | |
19790632 SG |
21 | |
22 | def WriteSymbols(self, image): | |
23 | elf.LookupAndWriteSymbols(self.elf_fname, self, image) |