1# SPDX-License-Identifier: GPL-2.0+ 2# Copyright 2023 Google LLC 3# Written by Simon Glass <sjg@chromium.org> 4# 5 6from binman.entry import Entry 7from dtoc import fdt_util 8from u_boot_pylib import tools 9 10class Entry_null(Entry): 11 """An entry which has no contents of its own 12 13 Note that the size property must be set since otherwise this entry does not 14 know how large it should be. 15 16 The contents are set by the containing section, e.g. the section's pad 17 byte. 18 """ 19 def __init__(self, section, etype, node): 20 super().__init__(section, etype, node) 21 self.required_props = ['size'] 22 23 def ObtainContents(self): 24 # null contents 25 return None 26