mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2024-09-20 06:51:49 +00:00
board and soc: generic: Add support for a generic board
Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
This commit is contained in:
parent
b295ac57ce
commit
f6f373a75c
13
board/generic/board-generic.c
Normal file
13
board/generic/board-generic.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
|
||||
*/
|
||||
|
||||
/* This is a generic board file. This should work on every device
|
||||
* as long as it's loaded in physical memory with enough space to
|
||||
* put the kernel image ahead of it on closest 2MiB-aligned address.
|
||||
*/
|
||||
|
||||
void board_init(void) {
|
||||
|
||||
}
|
11
include/board/board-generic.h
Normal file
11
include/board/board-generic.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef BOARD_GENERIC_H /* Include guard */
|
||||
#define BOARD_GENERIC_H
|
||||
|
||||
/* Nothing really is here :) */
|
||||
|
||||
#endif // BOARD_GENERIC_H
|
|
@ -39,6 +39,11 @@ ifeq ($(SOC),t7000)
|
|||
brand_name=apple
|
||||
endif
|
||||
|
||||
# Generic
|
||||
ifeq ($(SOC),generic)
|
||||
brand_name=generic
|
||||
endif
|
||||
|
||||
all: $(brand_name)/$(SOC).o copy-soc
|
||||
|
||||
copy-soc:
|
||||
|
|
8
soc/generic/generic.c
Normal file
8
soc/generic/generic.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2022, Markuss Broks <markuss.broks@gmail.com>
|
||||
*/
|
||||
|
||||
void soc_init(void) {
|
||||
/* We don't know anything about the SoC so we can't do anything... */
|
||||
}
|
Loading…
Reference in New Issue
Block a user