Skip to content

Commit

Permalink
[LIC] add license
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Nov 25, 2023
1 parent 58025ad commit c11ee83
Show file tree
Hide file tree
Showing 39 changed files with 79 additions and 4 deletions.
4 changes: 3 additions & 1 deletion kernel/SyterKit/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.10)

set(CROSS_COMPILE "arm-linux-gnueabihf-")
set(CROSS_COMPILE "arm-none-eabi-")

set(CROSS_COMPILE ${CROSS_COMPILE} CACHE STRING "CROSS_COMPILE Toolchain")

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(hello_world)
add_subdirectory(syter_boot)
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/hello_world/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

add_syterkit_app(helloworld
start.S
main.c
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/hello_world/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/hello_world/start.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <linkage.h>

#define ARMV7_USR_MODE 0x10
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/syter_boot/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

add_syterkit_app(syter_boot
start.S
main.c
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/syter_boot/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/app/syter_boot/start.S
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <linkage.h>

#define ARMV7_USR_MODE 0x10
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/cmake/add_syterkit_app.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

function(add_syterkit_app target_name)
add_executable(${target_name}_fel ${ARGN})

Expand Down
5 changes: 2 additions & 3 deletions kernel/SyterKit/config.h.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef _CONFIG_H_
#define _CONFIG_H_

// Project Info
#define PROJECT_NAME "@PROJECT_NAME@"
#define PROJECT_GIT_HASH 0x@PROJECT_GIT_HASH@

// System Configure
#define UART0_BASE_ADDR 0x02500000

#endif // _CONFIG_H_
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-clk.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-dma.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-gpio.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-sdcard.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-sdhci.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-spi.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-timer.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdint.h>
#include <stddef.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/drivers/sys-uart.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdarg.h>
#include <stdarg.h>
#include <stdint.h>
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/arm32.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_H__
#define __ARM32_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/atomic.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_ATOMIC_H__
#define __ARM32_ATOMIC_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/barrier.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_BARRIER_H__
#define __ARM32_BARRIER_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/endian.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_ENDIAN_H__
#define __ARM32_ENDIAN_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/limits.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_LIMITS_H__
#define __ARM32_LIMITS_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/arch/linkage.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __ARM32_LINKAGE_H__
#define __ARM32_LINKAGE_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/common.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __COMMON_H__
#define __COMMON_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-clk.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SUNXI_CLK_H__
#define __SUNXI_CLK_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-dma.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef _SUNXI_DMA_H
#define _SUNXI_DMA_H

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-gpio.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SUNXI_GPIO_H__
#define __SUNXI_GPIO_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-sdcard.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SDCARD_H__
#define __SDCARD_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-sdhci.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SDHCI_H__
#define __SDHCI_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-spi.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SUNXI_SPI_H__
#define __SUNXI_SPI_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-timer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SYS_TIMER_H__
#define __SYS_TIMER_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/drivers/sys-uart.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __SUNXI_USART_H__
#define __SUNXI_USART_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/io.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __IO_H__
#define __IO_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/reg/reg-ccu.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __CCU_H__
#define __CCU_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/reg/reg-dma.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __REG_DMA_H__
#define __REG_DMA_H__

Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/include/reg/reg-smhc.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

/*
* Global control register bits
*/
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/src/common.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

void abort(void)
{
while (1)
Expand Down
2 changes: 2 additions & 0 deletions kernel/SyterKit/src/exception.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* SPDX-License-Identifier: Apache-2.0 */

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
Expand Down

0 comments on commit c11ee83

Please sign in to comment.