diff options
author | Tom Rini <trini@konsulko.com> | 2016-12-20 08:42:04 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-20 08:42:04 -0500 |
commit | 36737f22b78a475c6bbc8a0467b51e4d95b52a7d (patch) | |
tree | 0983212512bde84015bff16e1e0900c359e004fa /tools/binman/etype/_testing.py | |
parent | 23465119610f47b469a3929c077ece5859f77455 (diff) | |
parent | 68af10022442153f6f87958053fee030ad1cb57f (diff) | |
download | u-boot-imx-36737f22b78a475c6bbc8a0467b51e4d95b52a7d.zip u-boot-imx-36737f22b78a475c6bbc8a0467b51e4d95b52a7d.tar.gz u-boot-imx-36737f22b78a475c6bbc8a0467b51e4d95b52a7d.tar.bz2 |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'tools/binman/etype/_testing.py')
-rw-r--r-- | tools/binman/etype/_testing.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/binman/etype/_testing.py b/tools/binman/etype/_testing.py new file mode 100644 index 0000000..1783098 --- /dev/null +++ b/tools/binman/etype/_testing.py @@ -0,0 +1,26 @@ +# Copyright (c) 2016 Google, Inc +# Written by Simon Glass <sjg@chromium.org> +# +# SPDX-License-Identifier: GPL-2.0+ +# +# Entry-type module for testing purposes. Not used in real images. +# + +from entry import Entry +import fdt_util +import tools + +class Entry__testing(Entry): + def __init__(self, image, etype, node): + Entry.__init__(self, image, etype, node) + + def ObtainContents(self): + self.data = 'a' + self.contents_size = len(self.data) + return True + + def ReadContents(self): + return True + + def GetPositions(self): + return {'invalid-entry': [1, 2]} |