riscv: Refactor CMakeLists.txt. [1/1]

PD#SWPL-68240

Problem:
Refactor CMakeLists.txt

Solution:
Refactor CMakeLists.txt

Verify:
N/A

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: I10ebd22f913cf4b1cc1f71fc204cc5ab7c4170ea
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fdc540c..b5adb7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,10 +4,6 @@
 
 aml_add_library()
 
-aml_library_include_directories(
-	${SDK_BASE}/boards/${ARCH}/${BOARD}
-)
-
 add_subdirectory(${BOARD})
 
 aml_library_link_libraries(kernel__${KERNEL})
diff --git a/am301_t950d4/CMakeLists.txt b/am301_t950d4/CMakeLists.txt
index 8b56023..004ebfd 100644
--- a/am301_t950d4/CMakeLists.txt
+++ b/am301_t950d4/CMakeLists.txt
@@ -2,10 +2,14 @@
 
 # SPDX-License-Identifier: MIT
 
+aml_library_include_directories(
+	${CMAKE_CURRENT_SOURCE_DIR}
+)
+
 aml_library_sources(
 	fsm.c
 	btwake.c
 	keypad.c
 	power.c
 	hw_business.c
-)
\ No newline at end of file
+)
diff --git a/at301_t962d4/CMakeLists.txt b/at301_t962d4/CMakeLists.txt
index 8b56023..004ebfd 100644
--- a/at301_t962d4/CMakeLists.txt
+++ b/at301_t962d4/CMakeLists.txt
@@ -2,10 +2,14 @@
 
 # SPDX-License-Identifier: MIT
 
+aml_library_include_directories(
+	${CMAKE_CURRENT_SOURCE_DIR}
+)
+
 aml_library_sources(
 	fsm.c
 	btwake.c
 	keypad.c
 	power.c
 	hw_business.c
-)
\ No newline at end of file
+)
diff --git a/at309_t962d4/CMakeLists.txt b/at309_t962d4/CMakeLists.txt
index 8b56023..004ebfd 100644
--- a/at309_t962d4/CMakeLists.txt
+++ b/at309_t962d4/CMakeLists.txt
@@ -2,10 +2,14 @@
 
 # SPDX-License-Identifier: MIT
 
+aml_library_include_directories(
+	${CMAKE_CURRENT_SOURCE_DIR}
+)
+
 aml_library_sources(
 	fsm.c
 	btwake.c
 	keypad.c
 	power.c
 	hw_business.c
-)
\ No newline at end of file
+)
diff --git a/av400_a113x2/CMakeLists.txt b/av400_a113x2/CMakeLists.txt
index 56ba3e8..93f6a9a 100644
--- a/av400_a113x2/CMakeLists.txt
+++ b/av400_a113x2/CMakeLists.txt
@@ -2,8 +2,12 @@
 
 # SPDX-License-Identifier: MIT
 
+aml_library_include_directories(
+	${CMAKE_CURRENT_SOURCE_DIR}
+)
+
 aml_library_sources(
 	keypad.c
 	power.c
 	hw_business.c
-)
\ No newline at end of file
+)
diff --git a/av409_a113x2/CMakeLists.txt b/av409_a113x2/CMakeLists.txt
index 56ba3e8..93f6a9a 100644
--- a/av409_a113x2/CMakeLists.txt
+++ b/av409_a113x2/CMakeLists.txt
@@ -2,8 +2,12 @@
 
 # SPDX-License-Identifier: MIT
 
+aml_library_include_directories(
+	${CMAKE_CURRENT_SOURCE_DIR}
+)
+
 aml_library_sources(
 	keypad.c
 	power.c
 	hw_business.c
-)
\ No newline at end of file
+)