Skip to content

Commit 262018f

Browse files
authored
Merge pull request #5092 from XiWeiGu/la64_fixed_cmake
LoongArch64: Fixed cmake
2 parents 180ba5e + 1ebcbdb commit 262018f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmake/system.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ endif()
2121
# Other files expect CORE, which is actually TARGET and will become TARGET_CORE for kernel build. Confused yet?
2222
# It seems we are meant to use TARGET as input and CORE internally as kernel.
2323
if(NOT DEFINED CORE AND DEFINED TARGET)
24-
set(CORE ${TARGET})
24+
if (${TARGET} STREQUAL "LOONGSON3R5")
25+
set(CORE "LA464")
26+
elseif (${TARGET} STREQUAL "LOONGSON2K1000")
27+
set(CORE "LA264")
28+
elseif (${TARGET} STREQUAL "LOONGSONGENERIC")
29+
set(CORE "LA64_GENERIC)")
30+
else ()
31+
set(CORE ${TARGET})
32+
endif()
2533
endif()
2634

2735
# TARGET_CORE will override TARGET which is used in DYNAMIC_ARCH=1.

0 commit comments

Comments
 (0)