Let's take ad401_a113l for example.
Make directory boards/arm64/ad401_a113l, and put your source code into it.
mkdir -p boards/arm64/ad401_a113l
Write Kconfig and put it into boards/arm64/ad401_a113l.
@code
config BOARD_AD401_A113L bool "Amlogic AD401 Board" select SOC_A1 help Enable Amlogic AD401 Board. ... @endcode
Please change the content accordingly.
Write CMakeLists.txt and put it into boards/arm64/ad401_a113l.
@code
aml_library_include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
aml_library_sources( ... ) @endcode
Please change the include directories, source code and dependent libraries accordingly.
Write defconfig and put it into boards/arm64/ad401_a113l.
@code
CONFIG_BOARD_AD401_A113L=y ... CONFIG_SERIAL=y ... @endcode
Note that defconfig defines the default hardware features.\n Please change the features accordingly.