build-baremetal: enable parallel build and target selection just like build-userland

The factoring out also led to some small bugs being found and solved ;-)
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-17 00:00:00 +00:00
parent 455d5e191c
commit 635e5e3133
15 changed files with 167 additions and 150 deletions

3
lkmc.h
View File

@@ -4,12 +4,13 @@
#define LKMC_H
/* Common C definitions. */
#define LKMC_UNUSED(x) (void)x
#if !defined(__ASSEMBLER__)
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
void lkmc_assert(bool);
void lkmc_assert_fail();
void lkmc_baremetal_on_exit_callback(int status, void *arg);
#endif