mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 22:23:05 +00:00
Add config.h for build-time config options
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
7419295d62
commit
14db0224af
2 changed files with 11 additions and 3 deletions
8
config.h
Normal file
8
config.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#define SHOW_LOGO
|
||||
|
||||
#endif
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue