add initial loong64 support

This commit is contained in:
Jianfeng Liu
2025-07-24 09:39:42 +08:00
parent dda6950c34
commit fb363e8829
17 changed files with 5240 additions and 6 deletions

View File

@@ -385,6 +385,7 @@ function kernel_package_callback_linux_headers() {
[[ "${SRC_ARCH}" == "amd64" ]] && SRC_ARCH="x86"
[[ "${SRC_ARCH}" == "armhf" ]] && SRC_ARCH="arm"
[[ "${SRC_ARCH}" == "riscv64" ]] && SRC_ARCH="riscv"
[[ "${SRC_ARCH}" == "loong64" ]] && SRC_ARCH="loongarch"
# @TODO: added KERNEL_SRC_ARCH to each arch'es .config file; let's make sure they're sane. Just use KERNEL_SRC_ARCH after confirmed.
# Lets check and warn if it isn't. If warns don't popup over time we remove and just use ARCHITECTURE later.
if [[ "${SRC_ARCH}" != "${KERNEL_SRC_ARCH}" ]]; then