Home | History | Annotate | Download | only in etype
      1 # SPDX-License-Identifier: GPL-2.0+
      2 # Copyright (c) 2016 Google, Inc
      3 # Written by Simon Glass <sjg (at] 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, 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