kbuild: deb-pkg: add debarch for ARCH=loongarch64
authorWangYuli <wangyuli@uniontech.com>
Mon, 24 Feb 2025 18:26:19 +0000 (02:26 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:19:44 +0000 (21:19 +0900)
Fix follow warning when 'make ARCH=loongarch64 bindeb-pkg':

  ** ** **  WARNING  ** ** **

  Your architecture doesn't have its equivalent
  Debian userspace architecture defined!
  Falling back to the current host architecture (loong64).
  Please add support for loongarch64 to ./scripts/package/mkdebian ...

Reported-by: Shiwei Liu <liushiwei@anheng.com.cn>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/mkdebian

index b6dd98ca860b454c46f2b0b176634f405c5d84f5..0178000197fe2aaa24eb732907a00b74464e48b9 100755 (executable)
@@ -77,6 +77,8 @@ set_debarch() {
                        debarch=i386
                fi
                ;;
+       loongarch64)
+               debarch=loong64 ;;
        esac
        if [ -z "$debarch" ]; then
                debarch=$(dpkg-architecture -qDEB_HOST_ARCH)