From a93c94f554667564393216fe984b46e686c825b3 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 28 May 2017 17:57:35 -0400 Subject: Stub out hal_allocate_static_memory() to avoid linker error. This is a quick fix, so that we can get on with testing the ks9 branch changes. A better fix in the long run might be to add a third keystore ("ks_pin_read_only", or some such) which implemented the bare minimum interface that the bootloader needs and left everything else unimplemented. This would require a bit of refactoring the current PIN code to make it work right with both the bootloader's abbreivated keystore and the normal token keystore. Probably worth doing, but a bit of a can of worms, so postponing for now. --- projects/bootloader/bootloader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'projects') diff --git a/projects/bootloader/bootloader.c b/projects/bootloader/bootloader.c index c0f981f..ead87d0 100644 --- a/projects/bootloader/bootloader.c +++ b/projects/bootloader/bootloader.c @@ -41,6 +41,7 @@ /* stub these out to avoid linker error */ void fpgacfg_init(void) { } void sdram_init(void) { } +void *hal_allocate_static_memory(const size_t size) { return 0; } /* Linker symbols are strange in C. Make regular pointers for sanity. */ __IO uint32_t *dfu_control = &CRYPTECH_DFU_CONTROL; -- cgit v1.2.3