From 2dc81c98924db865be038476ecc8ce92c186efa7 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 23 Sep 2016 01:00:25 -0400 Subject: Use subsectors instead of sectors in keystore. --- projects/cli-test/cli-test.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'projects/cli-test') diff --git a/projects/cli-test/cli-test.c b/projects/cli-test/cli-test.c index d04371b..17b85cd 100644 --- a/projects/cli-test/cli-test.c +++ b/projects/cli-test/cli-test.c @@ -67,3 +67,23 @@ main() /* NOT REACHED */ Error_Handler(); } + + +/* + * Dummy to solve link problem. Not obvious to me that a program + * called "cli-test" should be duplicating all of the HSM keystore + * logic, let alone that it should be doing it badly, but, whatever. + * + * We could just copy the sdram_malloc() code from hsm.c, but since + * one of the other commands linked into cli-test goes merrily stomping + * all over the entire SDRAM chip, that might not work out so well. + * + * Issue deferred until somebody cares. + */ + +#warning hal_allocate_static_memory() stubbed out in cli-test, see source code + +void *hal_allocate_static_memory(const size_t size) +{ + return NULL; +} -- cgit v1.2.3