aboutsummaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2023-10-14 16:48:04 -0400
committerTom Rini <trini@konsulko.com>2023-10-17 20:50:52 -0400
commit65efaac425e948dc56db5cf315d0497faeddb5b0 (patch)
tree449fb50044d0cbe31a9d13c8ee88c8b1ede3cfb4 /include/configs
parent53d8bf8f9cff89dabf3c6461a1edeeddd49bccc6 (diff)
downloadu-boot-65efaac425e948dc56db5cf315d0497faeddb5b0.zip
u-boot-65efaac425e948dc56db5cf315d0497faeddb5b0.tar.gz
u-boot-65efaac425e948dc56db5cf315d0497faeddb5b0.tar.bz2
test: spl: Add a test for the NOR load method
Add a test for the NOR load method. Since NOR is memory-mapped we can substitute a buffer instead. The only major complication is testing LZMA decompression. It's too complex to implement LZMA compression in a test, and we have no in-tree compressor, so we just include some pre-compressed data. This data was generated through something like generate_data(plain, plain_size, "lzma") cat plain.dat | lzma | hexdump -C and was cleaned up further in my editor. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/sandbox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 4e5653d..2372485 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -18,4 +18,7 @@
#define CFG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
115200}
+/* Unused but necessary to build */
+#define CFG_SYS_UBOOT_BASE CONFIG_TEXT_BASE
+
#endif