Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14714225rwd; Sun, 25 Jun 2023 03:03:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5To3jrYKwptS7SPcWgYJhrnndf5fv/06gVjg1oI9Cb7aWd7uXue4bi1CRxYE58Swo8ZOP9 X-Received: by 2002:a17:90a:ea90:b0:262:e0aa:bbc8 with SMTP id h16-20020a17090aea9000b00262e0aabbc8mr1898378pjz.8.1687687421033; Sun, 25 Jun 2023 03:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687687421; cv=none; d=google.com; s=arc-20160816; b=BowbFzWQMcC5ipDGzRh+y60Jlbr3rXtM3SPWhGf4K6SEoI01LJdZUOjWCLMktDXfXd MTmpTOZoWUaPgf3VZT5GJUn20XamhRhYAznFk7ujeeVOLpTomnHNn4oB/yBE1aiRXAGV Z8I8V6FHXQ+aW3Ywd8TFRsReZgVlmjVSLpvkXt9hF1ICwBjgWvJyRWBKm8NcXgX7CmXe /t2hcm5+z13iqBizkp3kLJZc3Un4U3luiTon8z5SRuSkNyFmBh7l65mYqbRsxauETGrQ /7IO2HtjG/hnUC1wzSDGT7Y2HddjZELZltMuIN4z4kCAlas9B4Y7g23adVMbLt6z68z0 j/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YTz8C84pk81C0o2NjwFBBo9+aKEe1lQCS+FEea4oIOU=; fh=cOkhPHs+QQbxcIFG9XL5O7NpzAYOWU9SlXvAO44hRCk=; b=aTdlQFaWSstAb8zXG9GgsEf1bpyy4TquyuJLHcIlhN519c8ns73jYTVVJQcesbN+SD vfOlqlVDqnoLD9NpJmM75ts2bxFhycdAVj6/DxNvVX4x1aReD7XYYTvU/6HTm3PPFayx nxetqogI8Mn6Ov6RnpZJfmDh9LnSuZjIZrirvqVJTaK5zyJGmDKh7sMiT7Qfb65qopTY Ux+B3/E7HN7BCZPMEV/63CwraSTj/E9jEi/ACJ3PVh67gAiwFh81eDr6sUymGr1WPNUW aox0CejU4xG1MPcdTdmBUZNgy/eoBTv1gchTRkPRR7qSY+b9yM5LHxxBa2RuXjILw7Lf svDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=sHDre7+M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a17090ac00300b00261113f2843si5287542pjt.131.2023.06.25.03.03.29; Sun, 25 Jun 2023 03:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=sHDre7+M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbjFYJ6X (ORCPT + 99 others); Sun, 25 Jun 2023 05:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbjFYJ6L (ORCPT ); Sun, 25 Jun 2023 05:58:11 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3075E78; Sun, 25 Jun 2023 02:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1687687079; bh=H4NWls1bUMGdPdN2OveQqxUMkhksKubc1e0oOz7s4Zo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sHDre7+MIxe4WQ9QS0lzPx9Dumw9urre45a1mvqRpkjtJDoLDxkzHMPjfE2HZVtFf D42CXGxQnJjuBmQwADvU4RY2meRUwyzlTkSahMQ7vkFUu+mEA0m/eFxMh77v/zMZdY uYXa4Y64sAkFaB33r0rvJAsQ818oKanHu7sbiNeA= Received: from ld50.lan (unknown [101.88.25.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 44E61605E5; Sun, 25 Jun 2023 17:57:59 +0800 (CST) From: WANG Xuerui To: Huacai Chen Cc: WANG Rui , Xi Ruoyao , loongarch@lists.linux.dev, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui , Nick Desaulniers Subject: [PATCH v3 8/8] Makefile: Add loongarch target flag for Clang compilation Date: Sun, 25 Jun 2023 17:56:44 +0800 Message-Id: <20230625095644.3156349-9-kernel@xen0n.name> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230625095644.3156349-1-kernel@xen0n.name> References: <20230625095644.3156349-1-kernel@xen0n.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: WANG Xuerui The LoongArch kernel is 64-bit and built with the soft-float ABI, hence the loongarch64-linux-gnusf target. (The "libc" part can affect the codegen of libcalls: other arches do not use a bare-metal target, and currently the only fully supported libc on LoongArch is glibc anyway.) See: https://lore.kernel.org/loongarch/CAKwvOdnimxv8oJ4mVY74zqtt1x7KTMrWvn2_T9x22SFDbU6rHQ@mail.gmail.com/ Signed-off-by: WANG Xuerui Reviewed-by: Nick Desaulniers --- scripts/Makefile.clang | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.clang b/scripts/Makefile.clang index 058a4c0f864e..6c23c6af797f 100644 --- a/scripts/Makefile.clang +++ b/scripts/Makefile.clang @@ -4,6 +4,7 @@ CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl +CLANG_TARGET_FLAGS_loongarch := loongarch64-linux-gnusf CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu -- 2.40.0