Add config.h for build-time config options

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-01-25 13:37:38 +09:00
parent 7419295d62
commit 14db0224af
2 changed files with 11 additions and 3 deletions

8
config.h Normal file
View file

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: MIT */
#ifndef CONFIG_H
#define CONFIG_H
#define SHOW_LOGO
#endif

View file

@ -1,5 +1,7 @@
/* SPDX-License-Identifier: MIT */
#include "../config.h"
#include "adt.h"
#include "fb.h"
#include "string.h"
@ -10,8 +12,6 @@
#include "../build/build_tag.h"
// #define LOGO
void print_info(void)
{
printf("Device info:\n");
@ -69,7 +69,7 @@ void m1n1_main(void)
printf("Running in EL%d\n\n", mrs(CurrentEL) >> 2);
#ifdef LOGO
#ifdef SHOW_LOGO
fb_init();
fb_display_logo();
#endif