Let's take a1 for example.
Make directory soc/arm64/a1, and put your source code into it.
mkdir -p soc/arm64/a1
Write Kconfig and put it into soc/arm64/a1.
@code
config SOC_A1 bool "A1 SoC" select ARM64 select ARMV8 select ARM_CA35_64_BIT help Enable A1 SOC of ARM64. ... if SOC_A1 ... endif # SOC_A1 @endcode
Please change the content accordingly.
Write CMakeLists.txt and put it into soc/arm64/a1.
@code
aml_library_include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
aml_library_sources( ... ) @endcode
Please change the include directories, source code and dependent libraries accordingly.