From patchwork Fri Oct 25 14:07:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002258 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3T0N8Sz1xwF for ; Sat, 26 Oct 2024 01:07:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E13D240789; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Q9JWJpnaI0Yj; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 9D4B540790 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 9D4B540790; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id CA7422316 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B8F54813D7 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1Y6qslJIspEM for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org A0A8F81440 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A0A8F81440 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id A0A8F81440 for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49P7Ra84019891 for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42g6y915g4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7MQJ013319 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:22 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:22 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:03 -0700 Message-ID: <20241025140714.2395033-2-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: tJ9HExIav6pXm_Lejtbjuwo0sZ_kzq0V X-Proofpoint-ORIG-GUID: tJ9HExIav6pXm_Lejtbjuwo0sZ_kzq0V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 spamscore=0 adultscore=0 suspectscore=0 mlxlogscore=510 clxscore=1015 lowpriorityscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jwRuBSYojCf4zpv/8XQGhhaCGO7Ip2k1ujinmDwY/z8=; b=aVKSTDR7o3iihAcW oIdraOs5fsEN7PUqwbKQxyCduv799jI3xMuHRs3Zun9Rn9K74S3iO2tO6mDxU7U0 B92sI3LmmYoDFPZKAsgUlGEMvQPfqmFbY6hx+sSmzp9TfNsdSgvtYjIP2gsxaKr6 Z9qcM+Cuq4nFWQHlFOD+JMVo5oIkcRhD2ItJEbPMi3Jl1+TohFi09RgyrYok7d6X zB9nk1/cDt2DcymrDauASqBqjD2Ppz2ZVhdEUfIdx9GqPKvG2N9YrR7MYGo5jMgQ LPDAtjlL85HrdVX/7zMT3akTfQ3HVL8g2nWdRPCvMMHb31q8Eki+BRgtF+LkzNJI 1kZWHw== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=aVKSTDR7 Subject: [Buildroot] [RFC 01/12] arch: add hexagon architecture support X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- arch/Config.in | 10 +++++++ arch/Config.in.hexagon | 63 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 arch/Config.in.hexagon diff --git a/arch/Config.in b/arch/Config.in index e57f4b2baa..fe863e50a7 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -254,6 +254,12 @@ config BR2_xtensa http://en.wikipedia.org/wiki/Xtensa http://www.tensilica.com/ +config BR2_hexagon + bool "Hexagon" + select BR2_USE_MMU + help + Hexagon is a Qualcomm DSP processor. + endchoice # For some architectures or specific cores, our internal toolchain @@ -429,6 +435,10 @@ if BR2_xtensa source "arch/Config.in.xtensa" endif +if BR2_hexagon +source "arch/Config.in.hexagon" +endif + # Set up target binary format choice prompt "Target Binary Format" diff --git a/arch/Config.in.hexagon b/arch/Config.in.hexagon new file mode 100644 index 0000000000..9a7cb62278 --- /dev/null +++ b/arch/Config.in.hexagon @@ -0,0 +1,63 @@ +# hexagon cpu features +config BR2_HEXAGON_CPU_HAS_HVX + bool + +choice + prompt "Target Architecture Variant" + default BR2_HEXAGON_v65 + help + Specific CPU variant to use + +config BR2_HEXAGON_v5 + bool "v5" +config BR2_HEXAGON_v55 + bool "v55" +config BR2_HEXAGON_v60 + bool "v60" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v61 + bool "v61" +config BR2_HEXAGON_v62 + bool "v62" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v65 + bool "v65" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v66 + bool "v66" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v68 + bool "v68" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v69 + bool "v69" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v71 + bool "v71" + select BR2_HEXAGON_CPU_HAS_HVX +config BR2_HEXAGON_v73 + bool "v73" + select BR2_HEXAGON_CPU_HAS_HVX +endchoice + +config BR2_ARCH + default "hexagon" + +config BR2_ENDIAN + default "LITTLE" + +config BR2_READELF_ARCH_NAME + default "Qualcomm Hexagon" + +config BR2_GCC_TARGET_CPU + default "hexagonv5" if BR2_HEXAGON_v5 + default "hexagonv55" if BR2_HEXAGON_v55 + default "hexagonv60" if BR2_HEXAGON_v60 + default "hexagonv61" if BR2_HEXAGON_v61 + default "hexagonv62" if BR2_HEXAGON_v62 + default "hexagonv65" if BR2_HEXAGON_v65 + default "hexagonv66" if BR2_HEXAGON_v66 + default "hexagonv68" if BR2_HEXAGON_v68 + default "hexagonv69" if BR2_HEXAGON_v69 + default "hexagonv71" if BR2_HEXAGON_v71 + default "hexagonv73" if BR2_HEXAGON_v73 From patchwork Fri Oct 25 14:07:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002259 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3Z20CLz1xwF for ; Sat, 26 Oct 2024 01:07:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2BD1740935; Fri, 25 Oct 2024 14:07:36 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 6dWVupzM61Dt; Fri, 25 Oct 2024 14:07:34 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 914A440909 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 914A440909; Fri, 25 Oct 2024 14:07:34 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 1F6B45E48 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id F2B7040790 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id i9oWYbgPAMr7 for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org BAC3F40789 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org BAC3F40789 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp4.osuosl.org (Postfix) with ESMTPS id BAC3F40789 for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PDRkhk028679 for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42fdtxn5mc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7MQK013319 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:22 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:04 -0700 Message-ID: <20241025140714.2395033-3-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: pEpvpEmob6a3XJw9-xhfbgq1X0r0h7Ey X-Proofpoint-ORIG-GUID: pEpvpEmob6a3XJw9-xhfbgq1X0r0h7Ey X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 mlxlogscore=732 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= qmViaWgDTs0KF+tAJzO3Ua1qM8RKbBnihDte2iWZ0wg=; b=J7cak5Xrq3zbUY3u igeoxx3oi191LtI8AhC0i3Ql6eewOhanhW7vnBoR0OeEOfPJ7mL5EZM29/VNgjxF nWVC+N57eK9JGooSM1ck0SnLmb4KkmFsbat5d7nbr6pAMoVHKwJq46w097ABszgz FFUkyNF3dYzoBJWafIX4F4W/YdFkXiLYtyJF7FcTbw/cKFw3gpebjcC1fhfjIor4 io7gvFYi+k7VULzcqRL3RkOVV8A5o0EEZf8kgMZV8VJPkCi6dFqsL+cs94UPWMnT 8zK8GioSZWNU9Buak40OgflTpRSfMkvs+YzhHKn8ywGv1gCW99P4cWncbu/9zR3p 5zca5g== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=J7cak5Xr Subject: [Buildroot] [RFC 02/12] toolchain/toolchain-external: add hexagon toolchain support X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- toolchain/toolchain-external/Config.in | 6 ++++++ .../toolchain-external-hexagon/Config.in | 7 +++++++ .../toolchain-external-hexagon/Config.in.options | 14 ++++++++++++++ .../toolchain-external-hexagon.hash | 6 ++++++ .../toolchain-external-hexagon.mk | 14 ++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 toolchain/toolchain-external/toolchain-external-hexagon/Config.in create mode 100644 toolchain/toolchain-external/toolchain-external-hexagon/Config.in.options create mode 100644 toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.hash create mode 100644 toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.mk diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in index e91aa16326..7bd5309671 100644 --- a/toolchain/toolchain-external/Config.in +++ b/toolchain/toolchain-external/Config.in @@ -29,6 +29,9 @@ source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in" # MIPS source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in" +# Hexagon +source "toolchain/toolchain-external/toolchain-external-hexagon/Config.in" + # Bootlin toolchains, available for virtually all architectures source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in" @@ -123,6 +126,9 @@ source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.opt # ARM big-endian source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options" +# Hexagon +source "toolchain/toolchain-external/toolchain-external-hexagon/Config.in.options" + # MIPS source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options" diff --git a/toolchain/toolchain-external/toolchain-external-hexagon/Config.in b/toolchain/toolchain-external/toolchain-external-hexagon/Config.in new file mode 100644 index 0000000000..256eeb87dc --- /dev/null +++ b/toolchain/toolchain-external/toolchain-external-hexagon/Config.in @@ -0,0 +1,7 @@ +comment "Toolchains available for Hexagon DSP" + +config BR2_TOOLCHAIN_EXTERNAL_HEXAGON + bool "Clang/LLVM Hexagon Toolchain" + depends on BR2_HOSTARCH = "x86_64" || "aarch64" + select BR2_TOOLCHAIN_EXTERNAL_CLANG + select BR2_TOOLCHAIN_EXTERNAL_MUSL diff --git a/toolchain/toolchain-external/toolchain-external-hexagon/Config.in.options b/toolchain/toolchain-external/toolchain-external-hexagon/Config.in.options new file mode 100644 index 0000000000..cb4d6d5420 --- /dev/null +++ b/toolchain/toolchain-external/toolchain-external-hexagon/Config.in.options @@ -0,0 +1,14 @@ + +if BR2_TOOLCHAIN_EXTERNAL_HEXAGON + +config BR2_TOOLCHAIN_EXTERNAL_PREFIX + default "hexagon-unknown-linux-musl" + +config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL + default "toolchain-external-hexagon" + +# This feature is not well-tested: +config BR2_TOOLCHAIN_SUPPORTS_PIE + default "n" + +endif diff --git a/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.hash b/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.hash new file mode 100644 index 0000000000..c4c9b3cf36 --- /dev/null +++ b/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.hash @@ -0,0 +1,6 @@ +# From https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/19.1.2/SHA256SUMS: +sha256 082ce7e7b2955a79be4198123a6ff743fddaed6e2da4f0a1974f0153478fb372 clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl.tar.xz +sha256 c06958b1a6d73e32cc3fc08b5ec15ea3e1f41180defe3142c91e06e05ad70f0b clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl_aarch64-linux-gnu.tar.xz +sha256 2c91bcca2d1645987723af7916184f81f287b7b94ab837dd429c8233899ce54d clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl_aarch64-windows-gnu.tar.xz +sha256 1e5ef2a070255a917acbce644d4977fc0c19f82105c375f5260bb573cd4bbf0f clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl_x86_64-linux-musl.tar.xz +sha256 f758e9e19ceac201ddd869a9aff6ffe623339e91329f7daf90960cf6218af278 clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl_x86_64-windows-gnu.tar.xz diff --git a/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.mk b/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.mk new file mode 100644 index 0000000000..f8df9c020c --- /dev/null +++ b/toolchain/toolchain-external/toolchain-external-hexagon/toolchain-external-hexagon.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# toolchain-external-hexagon +# +################################################################################ + +TOOLCHAIN_EXTERNAL_HEXAGON_VERSION = 19.1.2 +TOOLCHAIN_EXTERNAL_HEXAGON_SITE= https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/$(TOOLCHAIN_EXTERNAL_HEXAGON_VERSION) +TOOLCHAIN_EXTERNAL_HEXAGON_SOURCE = clang+llvm-$(TOOLCHAIN_EXTERNAL_HEXAGON_VERSION)-cross-$(TOOLCHAIN_EXTERNAL_PREFIX).tar.xz + +# No trampoline support in lld yet, so for now: +TOOLCHAIN_EXTERNAL_HEXAGON_CFLAGS += -mlong-calls + +$(eval $(toolchain-external-package)) From patchwork Fri Oct 25 14:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002257 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3T1KxKz1xxG for ; Sat, 26 Oct 2024 01:07:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3F0258143C; Fri, 25 Oct 2024 14:07:30 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id f5OycS3lp6mF; Fri, 25 Oct 2024 14:07:29 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4A7F981440 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 4A7F981440; Fri, 25 Oct 2024 14:07:29 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists1.osuosl.org (Postfix) with ESMTP id E6D79497A for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DE9C040E8C for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id AlCjK1ZdEMDx for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 0215240147 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0215240147 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp2.osuosl.org (Postfix) with ESMTPS id 0215240147 for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49P9tGn0029632 for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42em3w9b8h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7Nvh025314 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:23 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:05 -0700 Message-ID: <20241025140714.2395033-4-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: oQXjQHZ8PrQxaKS_l35RfV4tf1fjrDyf X-Proofpoint-GUID: oQXjQHZ8PrQxaKS_l35RfV4tf1fjrDyf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=720 priorityscore=1501 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= j9iR3fDg+QE5wDebdzaS8alFa7yE7YLQD9CAeZy9ezA=; b=h747fKX+RPLvCzJG IbmnNyrDZGkXz769uVHfCVXwBzISxzkfM4sHI5oyLTAynxXH5PKp0ENMjMWWWSfE 31n2F3fQn6XJitnjv9KRjE6+hHNBxQ1XAKS9hVJBxTtGbvBuXtt9791/RVDvGEBR cmi/w4rEhnTqnO51DM6qwu/n0MTRUkhOVPMjdd66psd6jOULJ1iVwJCYeHYLPphQ Ulq9ciWbNGknke7sZr1BNEt4ak8M8HoOsUDVN7m+vYVmti5CXqgKtfEqiATz84fF YEpJ0/G+1uXnGiuiRGuMh0nw7ecPMN5FOxnp2y04TezldkuHcicrBQSdF5fm/xk9 DCriyQ== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=h747fKX+ Subject: [Buildroot] [RFC 03/12] toolchain/toolchain-external: add hexagon support for toolchain-wrapper X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- .../toolchain-external/pkg-toolchain-external.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk index c08bf0a653..d45f2c54de 100644 --- a/toolchain/toolchain-external/pkg-toolchain-external.mk +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk @@ -150,8 +150,14 @@ endef endif ifeq ($(BR2_TOOLCHAIN_EXTERNAL_MUSL),y) +ifeq ($(BR2_hexagon),y) +TOOLCHAIN_EXTERNAL_LIBS += libc.so libclang_rt.builtins-hexagon.so* +TOOLCHAIN_EXTERNAL_LIBS += libc++.so* libc++abi.so* libunwind.so* +TOOLCHAIN_EXTERNAL_LIBS += ld-musl-*.so* +else TOOLCHAIN_EXTERNAL_LIBS += libc.so endif +endif ifeq ($(BR2_INSTALL_LIBSTDCPP),y) TOOLCHAIN_EXTERNAL_LIBS += libstdc++.so.* @@ -283,7 +289,7 @@ define TOOLCHAIN_EXTERNAL_INSTALL_WRAPPER *-ar|*-ranlib|*-nm) \ ln -sf $$(echo $$i | sed 's%^$(HOST_DIR)%..%') .; \ ;; \ - *cc|*cc-*|*++|*++-*|*cpp|*-gfortran|*-gdc) \ + *cc|*cc-*|*++|*++-*|*cpp|*-gfortran|*-gdc|*clang) \ ln -sf toolchain-wrapper $$base; \ ;; \ *gdb|*gdbtui) \ @@ -465,6 +471,9 @@ define TOOLCHAIN_EXTERNAL_INSTALL_SYSROOT_LIBS else \ ARCH_SUBDIR=`echo $${ARCH_SYSROOT_DIR} | sed -r -e "s:^$${SYSROOT_DIR}(.*)/$$:\1:"` ; \ fi ; \ + if test "$(BR2_hexagon)" = "y"; then \ + SUPPORT_LIB_DIR=$(TOOLCHAIN_EXTERNAL_BIN)/../target/$(TOOLCHAIN_EXTERNAL_PREFIX); \ + fi ; \ $(call MESSAGE,"Copying external toolchain sysroot to staging...") ; \ $(call copy_toolchain_sysroot,$${SYSROOT_DIR},$${ARCH_SYSROOT_DIR},$${ARCH_SUBDIR},$${ARCH_LIB_DIR},$${SUPPORT_LIB_DIR}) endef From patchwork Fri Oct 25 14:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002263 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3k54Vkz1xxG for ; Sat, 26 Oct 2024 01:07:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0C107814B1; Fri, 25 Oct 2024 14:07:43 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HdTMSR_Qh7Ge; Fri, 25 Oct 2024 14:07:39 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 95DA8813D7 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 95DA8813D7; Fri, 25 Oct 2024 14:07:39 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id DE2DE2318 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id C971340147 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id VLKwRWO0G9l3 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 0AE9B40173 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0AE9B40173 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp2.osuosl.org (Postfix) with ESMTPS id 0AE9B40173 for ; Fri, 25 Oct 2024 14:07:24 +0000 (UTC) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PB2LaY001170 for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ga3s0juh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7Ncm028945 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:23 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:06 -0700 Message-ID: <20241025140714.2395033-5-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: OnWzw0MPRsKOuKbvpx3KRw0OD-5f0i1A X-Proofpoint-GUID: OnWzw0MPRsKOuKbvpx3KRw0OD-5f0i1A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 impostorscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /+tcN2J9CcYOlEWw0R4ICfZoCpByqWwC08O6I3pv3jw=; b=dsPuCiRhB8ygOHKK sCA2E+C21IyMJbqh9dn64YgzIwwIejOgDslKScraHXuPyIeeQnR6qa0514AfGTyY /Un+PZ3QowixWqVEAXHmqWwwz3CQNO21xV/4Lx5vbeDsSPZS1DAodssvEZIZbxZi eGxvAGN6kXm2S5upe2+rJOc605KBEH6d9x3MadY+RGQDmC0DW103ifWY8JaCci4G DL3zA0D/pN3USNECihkSNsEKhjL9zIDhOQv6L05wrm7sTlL+onn/Rou69agz+Cam wNna96vk8Q/ktceblNvB1bxNAaXxD3Ho7xDLAeoK6Il97qmRDxIfJBVtuPs1AOLX tEVfAA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=dsPuCiRh Subject: [Buildroot] [RFC 04/12] toolchain/toolchain-external: add support for clang X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- package/Makefile.in | 24 ++++-- toolchain/Config.in | 54 +++++++++++++ toolchain/helpers.mk | 16 ++++ .../pkg-toolchain-external.mk | 29 ++++++- .../Config.in.options | 76 +++++++++++++++++++ 5 files changed, 190 insertions(+), 9 deletions(-) diff --git a/package/Makefile.in b/package/Makefile.in index 829636900b..b54fe123ba 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -231,14 +231,28 @@ ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),y) TARGET_GCC_WRAPPERS_PREFIX = gcc- endif +ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CLANG),y) +TARGET_CC_SUFFIX=clang +TARGET_CXX_SUFFIX=clang++ +TARGET_AS_SUFFIX=llvm-mc +TARGET_LD_SUFFIX=clang +TARGET_PREPROCESSOR=clang -E +else +TARGET_CC_SUFFIX=gcc +TARGET_CXX_SUFFIX=g++ +TARGET_AS_SUFFIX=as +TARGET_LD_SUFFIX=ld +TARGET_PREPROCESSOR=cpp +endif + # Define TARGET_xx variables for all common binutils/gcc TARGET_AR = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)ar -TARGET_AS = $(TARGET_CROSS)as -TARGET_CC = $(TARGET_CROSS)gcc -TARGET_CPP = $(TARGET_CROSS)cpp -TARGET_CXX = $(TARGET_CROSS)g++ +TARGET_AS = $(TARGET_CROSS)$(TARGET_AS_SUFFIX) +TARGET_CC = $(TARGET_CROSS)$(TARGET_CC_SUFFIX) +TARGET_CPP = $(TARGET_CROSS)$(TARGET_PREPROCESSOR) +TARGET_CXX = $(TARGET_CROSS)$(TARGET_CXX_SUFFIX) TARGET_FC = $(TARGET_CROSS)gfortran -TARGET_LD = $(TARGET_CROSS)ld +TARGET_LD = $(TARGET_CROSS)$(TARGET_LD_SUFFIX) TARGET_NM = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)nm TARGET_RANLIB = $(TARGET_CROSS)$(TARGET_GCC_WRAPPERS_PREFIX)ranlib TARGET_READELF = $(TARGET_CROSS)readelf diff --git a/toolchain/Config.in b/toolchain/Config.in index c2522aca7f..1466425ce2 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -837,6 +837,60 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST default "4.4" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_4 default "4.3" if BR2_TOOLCHAIN_GCC_AT_LEAST_4_3 +config BR2_TOOLCHAIN_CLANG_AT_LEAST_4_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_5_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_6_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_7_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_9_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_10_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_11_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_12_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_13_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_14_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_15_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_16_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_17_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_18_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_19_0 + bool +config BR2_TOOLCHAIN_CLANG_AT_LEAST_20_0 + bool + +# This order guarantees that the highest version is set, as kconfig +# stops affecting a value on the first matching default. +config BR2_TOOLCHAIN_CLANG_AT_LEAST + string + default "4.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_4_0 + default "5.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_5_0 + default "6.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_6_0 + default "7.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_7_0 + default "9.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_9_0 + default "10.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_10_0 + default "11.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_11_0 + default "12.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_12_0 + default "13.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_13_0 + default "14.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_14_0 + default "15.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_15_0 + default "16.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_16_0 + default "17.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_17_0 + default "18.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_18_0 + default "19.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_19_0 + default "20.0" if BR2_TOOLCHAIN_CLANG_AT_LEAST_20_0 + config BR2_TOOLCHAIN_HAS_MNAN_OPTION bool default y if BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk index f3fdaaec07..f4462db483 100644 --- a/toolchain/helpers.mk +++ b/toolchain/helpers.mk @@ -224,6 +224,22 @@ check_glibc_rpc_feature = \ exit 1 ; \ fi +check_clang_version = \ + expected_version="$(strip $2)" ; \ + exit 0; \ + real_version=`$(TOOLCHAIN_EXTERNAL_BIN)/llvm-config --version;`; \ + if [ -z "$${expected_version}" ]; then \ + printf "Internal error, __$${2}__ vs __$${expected_version}__ clang version unknown (no CLANG_AT_LEAST_X_Y selected)\n"; \ + printf "real ver: __$${real_version}__\n"; \ + exit 1 ; \ + fi; \ + real_version=`$(TOOLCHAIN_EXTERNAL_BIN)/$(TOOLCHAIN_EXTERNAL_PREFIX)-llvm-config --version;`; \ + if [[ ! "$${real_version}" =~ ^$${expected_version}\. ]] ; then \ + printf "Incorrect selection of clang version: expected %s.x, got %s\n" \ + "$${expected_version}" "$${real_version}" ; \ + exit 1 ; \ + fi + # # Check the correctness of a glibc external toolchain configuration. # 1. Check that the C library selected in Buildroot matches the one diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk index d45f2c54de..3948ad1107 100644 --- a/toolchain/toolchain-external/pkg-toolchain-external.mk +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk @@ -90,12 +90,28 @@ endif TOOLCHAIN_EXTERNAL_SUFFIX = \ $(if $(wildcard $(TOOLCHAIN_EXTERNAL_BIN)/*.br_real),.br_real) +ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CLANG),y) +TARGET_CC_SUFFIX=clang +TARGET_CXX_SUFFIX=clang++ +TARGET_BINUTILS_PREFIX=llvm- +TARGET_LD_SUFFIX=clang +else +TARGET_CC_SUFFIX=gcc +TARGET_CXX_SUFFIX=g++ +TARGET_BINUTILS_PREFIX= +TARGET_LD_SUFFIX=ld +endif + TOOLCHAIN_EXTERNAL_CROSS = $(TOOLCHAIN_EXTERNAL_BIN)/$(TOOLCHAIN_EXTERNAL_PREFIX)- -TOOLCHAIN_EXTERNAL_CC = $(TOOLCHAIN_EXTERNAL_CROSS)gcc$(TOOLCHAIN_EXTERNAL_SUFFIX) -TOOLCHAIN_EXTERNAL_CXX = $(TOOLCHAIN_EXTERNAL_CROSS)g++$(TOOLCHAIN_EXTERNAL_SUFFIX) +TOOLCHAIN_EXTERNAL_CC = $(TOOLCHAIN_EXTERNAL_CROSS)$(TARGET_CC_SUFFIX)$(TOOLCHAIN_EXTERNAL_SUFFIX) +TOOLCHAIN_EXTERNAL_CXX = $(TOOLCHAIN_EXTERNAL_CROSS)$(TARGET_CXX_SUFFIX)$(TOOLCHAIN_EXTERNAL_SUFFIX) TOOLCHAIN_EXTERNAL_GDC = $(TOOLCHAIN_EXTERNAL_CROSS)gdc$(TOOLCHAIN_EXTERNAL_SUFFIX) TOOLCHAIN_EXTERNAL_FC = $(TOOLCHAIN_EXTERNAL_CROSS)gfortran$(TOOLCHAIN_EXTERNAL_SUFFIX) TOOLCHAIN_EXTERNAL_READELF = $(TOOLCHAIN_EXTERNAL_CROSS)readelf +TOOLCHAIN_EXTERNAL_LLVM_CONFIG = $(TOOLCHAIN_EXTERNAL_CROSS)llvm-config$(TOOLCHAIN_EXTERNAL_SUFFIX) +TOOLCHAIN_CLANG_VERSION = \ + `$(TOOLCHAIN_EXTERNAL_LLVM_CONFIG) --version | \ + sed -e 's/\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$$/\1/'` # Normal handling of downloaded toolchain tarball extraction. ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y) @@ -595,8 +611,13 @@ define $(2)_CONFIGURE_CMDS $$(call toolchain_find_sysroot,$$(TOOLCHAIN_EXTERNAL_CC)),\ $$(call qstrip,$$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)),\ $$(if $$(BR2_TOOLCHAIN_EXTERNAL_CUSTOM),loose,strict)); \ - $$(call check_gcc_version,$$(TOOLCHAIN_EXTERNAL_CC),\ - $$(call qstrip,$$(BR2_TOOLCHAIN_GCC_AT_LEAST))); \ + if test "$(BR2_TOOLCHAIN_EXTERNAL_GCC)" = "y" ; then \ + $(call check_gcc_version,$(TOOLCHAIN_EXTERNAL_CC),\ + $(call qstrip,$(BR2_TOOLCHAIN_GCC_AT_LEAST))); \ + else \ + $(call check_clang_version,$(TOOLCHAIN_EXTERNAL_CC),\ + $(call qstrip,$(BR2_TOOLCHAIN_CLANG_AT_LEAST))); \ + fi ; \ if test "$$(BR2_arm)" = "y" ; then \ $$(call check_arm_abi,\ "$$(TOOLCHAIN_EXTERNAL_CC) $$(TOOLCHAIN_EXTERNAL_CFLAGS)") ; \ diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options index fcffeb6b77..0dbf317b92 100644 --- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options +++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options @@ -40,8 +40,25 @@ config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX so you can leave this option at default value if you use them as external toolchain. +choice + bool "External toolchain Compiler" + default BR2_TOOLCHAIN_EXTERNAL_GCC + help + Select between gcc and clang + +config BR2_TOOLCHAIN_EXTERNAL_GCC + bool "gcc" + select BR2_TOOLCHAIN_USES_GCC + +config BR2_TOOLCHAIN_EXTERNAL_CLANG + bool "clang" + select BR2_TOOLCHAIN_USES_CLANG + +endchoice + choice bool "External toolchain gcc version" + depends on BR2_TOOLCHAIN_EXTERNAL_GCC help Set to the gcc version that is used by your external toolchain. @@ -146,6 +163,65 @@ endchoice comment "GCC older than 4.8 is not tested by Buildroot. Use at your own risk." depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 +choice + bool "External toolchain clang version" + default BR2_TOOLCHAIN_EXTERNAL_CLANG_4_0 + depends on BR2_TOOLCHAIN_EXTERNAL_CLANG + help + Set to the clang version that is used by your external + toolchain. + +config BR2_TOOLCHAIN_EXTERNAL_CLANG_4_0 + bool "4.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_4_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_5_0 + bool "5.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_5_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_6_0 + bool "6.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_6_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_7_0 + bool "7.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_7_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_9_0 + bool "9.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_9_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_10_0 + bool "10.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_10_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_11_0 + bool "11.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_11_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_12_0 + bool "12.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_12_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_13_0 + bool "13.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_13_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_14_0 + bool "14.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_14_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_15_0 + bool "15.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_15_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_16_0 + bool "16.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_16_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_17_0 + bool "17.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_17_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_18_0 + bool "18.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_18_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_19_0 + bool "19.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_19_0 +config BR2_TOOLCHAIN_EXTERNAL_CLANG_20_0 + bool "20.0" + select BR2_TOOLCHAIN_CLANG_AT_LEAST_20_0 + +endchoice + choice bool "External toolchain kernel headers series" default BR2_TOOLCHAIN_EXTERNAL_HEADERS_REALLY_OLD From patchwork Fri Oct 25 14:07:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002260 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3d1bD7z1xwF for ; Sat, 26 Oct 2024 01:07:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B0B9C8149E; Fri, 25 Oct 2024 14:07:32 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id RNgjsYKsXIvd; Fri, 25 Oct 2024 14:07:31 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6B7FB814AB Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 6B7FB814AB; Fri, 25 Oct 2024 14:07:31 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 1B78E2318 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EBF5060658 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wjV90iO7Mhzl for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 370F960626 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 370F960626 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp3.osuosl.org (Postfix) with ESMTPS id 370F960626 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PDMpEN028676 for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42fdtxn5me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7NjF003744 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:23 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:23 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:07 -0700 Message-ID: <20241025140714.2395033-6-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: pM7CCdKgy_U5YKtVJHDKm9flwQ0xvhMy X-Proofpoint-ORIG-GUID: pM7CCdKgy_U5YKtVJHDKm9flwQ0xvhMy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 mlxlogscore=585 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= lLGvtECen44tQNMwUZNT3YfxiXjlCgpZcKpLpgfqH94=; b=o8d6hbPkdBdiCRp5 HhrOSMt5w21Q7q6fyCL83GooyMOZKnJPOA0SrTpbEfSUqCH2auLonQT6UiBBAhOE DKufk14rfzxMdpTGcHBaDyrOYGoSYPygEuTE/W4SgtEqnfkMhwD+EOtyp4s64DL/ rm4IHCxEWeT+ur8vbPon4HsY3f4peNSQk635OJ1GZTx28VJnzwPHfM36d1BtV/JJ lcMEyJ5x0MyORPrpnKor4dImJWatbBHHQ+ZZCf8KjBzqDiA43mz/E70wAw5ukLhk I23S+p3mzXIwWgB1vK9Zi1YaNmR7P/DOZi7lqE9X9ujBGVNHs72FfM7isEFdbdkI pT0IIg== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=o8d6hbPk Subject: [Buildroot] [RFC 05/12] toolchain/toolchain-external: skip "-march=" for hexagon X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" For hexagon targets, clang rejects "-march" with: hexagon-unknown-linux-musl-clang: error: unsupported option '-march=' for target 'hexagon-unknown-linux-musl' Signed-off-by: Brian Cain --- toolchain/toolchain-external/pkg-toolchain-external.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk index 3948ad1107..8a7c4a5c1e 100644 --- a/toolchain/toolchain-external/pkg-toolchain-external.mk +++ b/toolchain/toolchain-external/pkg-toolchain-external.mk @@ -210,9 +210,11 @@ TOOLCHAIN_EXTERNAL_CFLAGS += -m64 TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_64 endif ifneq ($(GCC_TARGET_ARCH),) +ifneq ($(BR2_hexagon),y) TOOLCHAIN_EXTERNAL_CFLAGS += -march=$(GCC_TARGET_ARCH) TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_ARCH='"$(GCC_TARGET_ARCH)"' endif +endif ifneq ($(GCC_TARGET_CPU),) TOOLCHAIN_EXTERNAL_CFLAGS += -mcpu=$(GCC_TARGET_CPU) TOOLCHAIN_EXTERNAL_TOOLCHAIN_WRAPPER_ARGS += -DBR_CPU='"$(GCC_TARGET_CPU)"' From patchwork Fri Oct 25 14:07:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002264 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3n4wN6z1xwF for ; Sat, 26 Oct 2024 01:07:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2476881B71; Fri, 25 Oct 2024 14:07:47 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id TdJ0Y_82M3Gu; Fri, 25 Oct 2024 14:07:46 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 42B4281C21 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 42B4281C21; Fri, 25 Oct 2024 14:07:46 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 58C55497A for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 475AC60626 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ZESKMV0GgLay for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org B13356064E DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org B13356064E Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp3.osuosl.org (Postfix) with ESMTPS id B13356064E for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PB62Oa015727 for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ga5jrjt9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7OXG003747 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:23 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:08 -0700 Message-ID: <20241025140714.2395033-7-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: PYud-0TLvszPlM-aHATKmDbwZ1tlhQqx X-Proofpoint-GUID: PYud-0TLvszPlM-aHATKmDbwZ1tlhQqx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=704 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= o7DGHq64hlF+NVUeEuDkuNHZuBltesGCTk0OHxXmbNw=; b=Mjj/sMvV3LcnwjRY ZUqSz2i6yv4+nxSYBukODlgvOOpVz1GaHVeqN7W+hnA26fa4ajC34yrC+5WGj1q2 TJQGhUCONCUzcLUkzn+SBo33qxrsRJn2uGkK6uT1fAVbXog6Vk4TmWiQmTvs0+xW kCbi5on2MIGieaUgjKwFxvzzeolafVSEZcReWDkQu8QmY+t3txxJYBsY+Z8WV8F7 rUyhZyz8v9eEmRoAHXYEBMx2eU9GZlz0c/gfeso0KmZ/rxIl1oasfQA3ltus3r+V ttgjRSy/8adACXgR/B1oH9e3nmniWcIAIBuqeKDi596JnGcHN8sABDHObZIWv6wB shGung== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Mjj/sMvV Subject: [Buildroot] [RFC 06/12] linux: add support for hexagon clang X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- linux/linux.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/linux/linux.mk b/linux/linux.mk index 469a80db9f..f5d2a9e763 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -170,6 +170,16 @@ LINUX_MAKE_FLAGS = \ REGENERATE_PARSERS=1 \ DEPMOD=$(HOST_DIR)/sbin/depmod +ifeq ($(BR2_hexagon),y) +LINUX_MAKE_FLAGS += \ + AS=$(TARGET_CROSS)clang \ + CC=$(TARGET_CROSS)clang \ + LD=ld.lld \ + LLVM_IAS=1 \ + LLVM=1 \ + $() +endif + ifeq ($(BR2_REPRODUCIBLE),y) LINUX_MAKE_ENV += \ KBUILD_BUILD_VERSION=1 \ From patchwork Fri Oct 25 14:07:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002261 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3g5JSzz1xwF for ; Sat, 26 Oct 2024 01:07:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3A758815CA; Fri, 25 Oct 2024 14:07:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1f4dvkbuDDkW; Fri, 25 Oct 2024 14:07:37 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 414E6815CC Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 414E6815CC; Fri, 25 Oct 2024 14:07:37 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 771B42316 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 58E3081440 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id p2IFPLkW8OpT for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org CF0EB813D7 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org CF0EB813D7 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id CF0EB813D7 for ; Fri, 25 Oct 2024 14:07:25 +0000 (UTC) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PB204q000928 for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ga3s0juk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7Oue005021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:24 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:09 -0700 Message-ID: <20241025140714.2395033-8-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 89uyAh9TPjeuKyLnYSll7SUuuhpbOlwc X-Proofpoint-GUID: 89uyAh9TPjeuKyLnYSll7SUuuhpbOlwc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 impostorscore=0 bulkscore=0 mlxlogscore=658 malwarescore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 5f+w49v4ztcbINxiD0Qc0TuAC3gNLwc74ejSNp82FH0=; b=XNVrIBOODozlTpcr +EsQvTOrzxuypzhR2rrozcqSqMSvDraTzf3fOTwCa2Lx2qCW+X9fMYyynuRVknXN RFiPbkX3Z8msQrGBIzE7fvwTuDSp1L+d2tiWvymkcYTSJijg6KlfxZnfah6hwsc4 whtRN36vr6Jk8LF2Yml5tJyEPdBiXW1w1ktZsQJ87AXMrQJjj5NJQo5K2plFKQwc /HRoQ2ZDmaGMyMNU6M7Mk74qTqhbSFFC5dwlvkSqSrgqIX+bVlfl3pI6U8+y50Tw fIdZSp1mIFvkuP7YvEIObG9U1Ahc8vHWkpnmFq606gzqZDbxesJNiPARuybgC/ty 3sY5JQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=XNVrIBOO Subject: [Buildroot] [RFC 07/12] arch: add hexagon ARCH definition X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- arch/Config.in.hexagon | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/Config.in.hexagon b/arch/Config.in.hexagon index 9a7cb62278..4cf1e59e68 100644 --- a/arch/Config.in.hexagon +++ b/arch/Config.in.hexagon @@ -43,6 +43,12 @@ endchoice config BR2_ARCH default "hexagon" +config BR2_GCC_TARGET_ARCH + default "hexagon" + +config BR2_NORMALIZED_ARCH + default "hexagon" + config BR2_ENDIAN default "LITTLE" From patchwork Fri Oct 25 14:07:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002266 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3v6Yb6z1xxK for ; Sat, 26 Oct 2024 01:07:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0550440A7A; Fri, 25 Oct 2024 14:07:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id oEvQCU8HyjZm; Fri, 25 Oct 2024 14:07:52 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C6CA440939 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id C6CA440939; Fri, 25 Oct 2024 14:07:51 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id BFF7E2318 for ; Fri, 25 Oct 2024 14:07:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 3E28481416 for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id FntoTaYQvvRD for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 424BB8143C DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 424BB8143C Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id 424BB8143C for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PB5nqO015403 for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ga5jrjta-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7O00028948 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:24 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:24 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:10 -0700 Message-ID: <20241025140714.2395033-9-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: tIpuAoitOKWE0UtKNtVc4J2t5dvZUaD8 X-Proofpoint-GUID: tIpuAoitOKWE0UtKNtVc4J2t5dvZUaD8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=522 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Hq7CP0HcmpiDKb2yzFM0ThPKriC7MmfOt/svriG/M+o=; b=RM9viu4RXW89yIUh NQiop3/FzKBU5M6Pfdiqjtdn/4wOPpNMX07Bin/E2d6wRjjEUqMX4QHMvHNw7+md sHtKSh1OuagRwXCmVRNAFfxEi2S9xqpQmEHJ2fDRxK0/N802MbL91HcZRcYpz9Tz lf2+wcr9+4f6WyEd4tAOVw/0o/YWAsMH7aVENCQu1FIfMvQe/kmAK+tM7v6JIzsC rf78gW4FSAJMvg7hD78uWBk0sA4/PnNup5CofPIYihwJCpQSzH7e2+RixQbxkiqf +2vlt/fFsIcu4iJH/ff1IWZ3umu/WMotKEWoMwu+lAWPEeiz6iRRIeodjnC85lZH UKes5g== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=RM9viu4R Subject: [Buildroot] [RFC 08/12] package/hexagonMVM: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" MiniVM is a virtual machine used by the Linux kernel for the hexagon architecture. Signed-off-by: Brian Cain --- package/Config.in | 1 + package/hexagonMVM/Config.in | 8 ++++++++ package/hexagonMVM/hexagonMVM.hash | 5 +++++ package/hexagonMVM/hexagonMVM.mk | 27 +++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 package/hexagonMVM/Config.in create mode 100644 package/hexagonMVM/hexagonMVM.hash create mode 100644 package/hexagonMVM/hexagonMVM.mk diff --git a/package/Config.in b/package/Config.in index b43e11b806..97c15c274f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2816,6 +2816,7 @@ menu "System tools" source "package/ftop/Config.in" source "package/getent/Config.in" source "package/gkrellm/Config.in" + source "package/hexagonMVM/Config.in" source "package/htop/Config.in" source "package/ibm-sw-tpm2/Config.in" source "package/initscripts/Config.in" diff --git a/package/hexagonMVM/Config.in b/package/hexagonMVM/Config.in new file mode 100644 index 0000000000..b00666188b --- /dev/null +++ b/package/hexagonMVM/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_HEXAGONMVM + bool "Hexagon MiniVM" + depends on BR2_hexagon && BR2_TOOLCHAIN_CLANG_AT_LEAST_19_0 + help + Hexagon VM implementation. This virtual machine can be used + to boot linux or other operating systems / programs. + + https://github.com/quic/hexagonMVM diff --git a/package/hexagonMVM/hexagonMVM.hash b/package/hexagonMVM/hexagonMVM.hash new file mode 100644 index 0000000000..a1830939d3 --- /dev/null +++ b/package/hexagonMVM/hexagonMVM.hash @@ -0,0 +1,5 @@ + +# +# Locally computed +sha256 e5e3ba941af491cab37ece5db85eb7422db9dd0d13464ea528dbf2c01c24b5f0 LICENSE +sha256 a2ad5745e597d8401f696cba27eaaedac4dd43ebe0835f11daf90a8e8c307fa7 0.1.3.tar.gz diff --git a/package/hexagonMVM/hexagonMVM.mk b/package/hexagonMVM/hexagonMVM.mk new file mode 100644 index 0000000000..33e45792e0 --- /dev/null +++ b/package/hexagonMVM/hexagonMVM.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# Hexagon MiniVM +# +################################################################################ + +HEXAGONMVM_VERSION = 0.1.3 +HEXAGONMVM_SOURCE = $(HEXAGONMVM_VERSION).tar.gz +HEXAGONMVM_SITE = $(call github,quic,hexagonMVM,v$(HEXAGONMVM_VERSION)) + +HEXAGONMVM_LICENSE = BSD-3-Clause +HEXAGONMVM_LICENSE_FILES = LICENSE + +HEXAGONMVM_DEPENDENCIES = +HEXAGONMVM_INSTALL_IMAGES = YES + +HEXAGONMVM_CFLAGS=-fno-pie -fno-pic + +define HEXAGONMVM_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(HEXAGONMVM_CFLAGS)" -C $(@D) minivm +endef + +define HEXAGONMVM_INSTALL_IMAGES_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(HEXAGONMVM_CFLAGS)" bindir=$(BINARIES_DIR) -C $(@D) install +endef + +$(eval $(generic-package)) From patchwork Fri Oct 25 14:07:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002265 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3r5HLhz1xwF for ; Sat, 26 Oct 2024 01:07:52 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 468EC815CD; Fri, 25 Oct 2024 14:07:50 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id GIo7Jc1qM5Nr; Fri, 25 Oct 2024 14:07:49 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D150581E67 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id D150581E67; Fri, 25 Oct 2024 14:07:48 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 5F5E32318 for ; Fri, 25 Oct 2024 14:07:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 47A8B60AED for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id sXenPo5DwXGE for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 4A63E60658 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 4A63E60658 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4A63E60658 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PDRkhl028679 for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42fdtxn5mj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7PNO003754 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:24 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:11 -0700 Message-ID: <20241025140714.2395033-10-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: -ZRr5bzyj36IFPl8wReJEWVsRpxCo9xn X-Proofpoint-ORIG-GUID: -ZRr5bzyj36IFPl8wReJEWVsRpxCo9xn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 mlxlogscore=659 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= WHT4cXT+c3PyHR7DGypTaE4pPLAR2ZYDzPLikPsy/3w=; b=o/wH3YENwsLOUlbW C+CoDSdFBB1HVQ1tz5jnBjA5i24nQUpUMbVRVbSTmvgRrsO8iYveqb/iz+OZNByF Dz4AU7FTZ+8DJMwlEKnb8D/uRNkA06Kga7+mF9pv0trFbXx5wOA9QDZMwyNsophM FP1113VQTPf+WhsojnYtO6ZNi3W8b5XZdjgVfNbaWFxNIcIDGGjki68AAgwgBIRg n5aG0Hdx9rS+Szyj6hrdAKtS9iQDwxd3yVsg+xrTHr79UUzALG9HBJ+iXrnIma+l UXxFp4cKdPGmq208dFtBT3srbpUDqm7eLtGZPuzEJgf8+7/2kyWjg9MTmXZ3yid+ lak6gg== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=o/wH3YEN Subject: [Buildroot] [RFC 09/12] board/qcom/sa8775: add support for qcom sa8775-cdsp0 X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- board/qcom/sa8775/post_build.sh | 9 ++++++++ configs/qcom_sa8775_cdsp0_defconfig | 35 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 board/qcom/sa8775/post_build.sh create mode 100644 configs/qcom_sa8775_cdsp0_defconfig diff --git a/board/qcom/sa8775/post_build.sh b/board/qcom/sa8775/post_build.sh new file mode 100755 index 0000000000..af13225d58 --- /dev/null +++ b/board/qcom/sa8775/post_build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +TARGETDIR=$1 + +cat <> "${TARGETDIR}/etc/fstab" +devpts /dev/pts devpts gid=5,mode=620 0 0 +/dev/vda /mnt/persist ext2 defaults 0 0 +debugfs /sys/kernel/debug debugfs defaults 0 2 +EOF diff --git a/configs/qcom_sa8775_cdsp0_defconfig b/configs/qcom_sa8775_cdsp0_defconfig new file mode 100644 index 0000000000..e0b49869ca --- /dev/null +++ b/configs/qcom_sa8775_cdsp0_defconfig @@ -0,0 +1,35 @@ +BR2_hexagon=y +BR2_HEXAGON_v73=y +BR2_STATIC_LIBS=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y +BR2_TOOLCHAIN_EXTERNAL_CLANG=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/19.1.2/clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl.tar.xz" +BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH="x86_64-linux-gnu/bin" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="hexagon-unknown-linux-musl" +BR2_TOOLCHAIN_EXTERNAL_CLANG_19_0=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_7=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_TOOLCHAIN_EXTERNAL_CXX=y + +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_ROOTFS_DEVICE_CREATION_STATIC=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/qcom/sa8775/post_build.sh" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_BZIP2=y +BR2_PACKAGE_ZLIB=y +BR2_PACKAGE_LOCKDEV=n +BR2_PACKAGE_LIBEVENT=n +BR2_PACKAGE_ATFTP=n +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_LSH=y + +BR2_PACKAGE_LUA=y +BR2_PACKAGE_BASH=y +BR2_PACKAGE_ZSH=y + +BR2_PACKAGE_HEXAGONMVM=y +BR2_PACKAGE_XINETD=n +BR2_PACKAGE_COREUTILS=y +BR2_TARGET_ROOTFS_TAR_GZIP=y From patchwork Fri Oct 25 14:07:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002268 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3z6NN5z1xwF for ; Sat, 26 Oct 2024 01:07:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2A8578175F; Fri, 25 Oct 2024 14:07:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ROUbDAwULBTg; Fri, 25 Oct 2024 14:07:57 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 06C9481EDD Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 06C9481EDD; Fri, 25 Oct 2024 14:07:57 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 64885497A for ; Fri, 25 Oct 2024 14:07:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 9070D60631 for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 42-OI3W6WcjS for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 9BE136064E DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 9BE136064E Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9BE136064E for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PD6oVh028787 for ; Fri, 25 Oct 2024 14:07:26 GMT Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42fdtxn5mk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7P7s013326 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:24 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:12 -0700 Message-ID: <20241025140714.2395033-11-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: AlhihnS_r8EGQ4MZM5ZtgDoSWZPZb6i7 X-Proofpoint-ORIG-GUID: AlhihnS_r8EGQ4MZM5ZtgDoSWZPZb6i7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 mlxlogscore=918 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Ce80l7mQMHNyFqYmIQjaDRC25b8Oi6T1FX9Q/5bdpLE=; b=TL4Ma6XZAXfFtz3Z nS/hQgodRsUlSeXnA46Kuq+a1b1m8gGXIHFyzaiA1Nt6AZcw1YXeXyuE49wItmTm mIhEmuY6iikcRRcuJhqsEPtCTfZjZMOq45GoHWR2Uk6HiwjoNtu1tDOADprFNajE KlgvNgdrY12PQyPSqb+A7M9IzMYjEhrsjegZGexpFCAlfcBPgN22eTzyH3LGzM9l Pg7QKMqgTylUhJZLXsbtUKcW/DpuIy6P5QC98/IO6TK4q0p7jT1LlvY0awAX5pK3 Q1ozlfLNjp8zf7ar/NL+RE9KnGqG7gtKX/iW+w04PLkP6cQygePn174veCLaVNG7 gSs9sw== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=TL4Ma6XZ Subject: [Buildroot] [RFC 10/12] configs: add hexagon QEMU config X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- configs/qcom_dsp_qemu_defconfig | 44 +++++++++++++++++++++++++++++++++ linux/linux.hash | 1 + 2 files changed, 45 insertions(+) create mode 100644 configs/qcom_dsp_qemu_defconfig diff --git a/configs/qcom_dsp_qemu_defconfig b/configs/qcom_dsp_qemu_defconfig new file mode 100644 index 0000000000..f9a976fb91 --- /dev/null +++ b/configs/qcom_dsp_qemu_defconfig @@ -0,0 +1,44 @@ +BR2_hexagon=y +BR2_HEXAGON_v73=y +BR2_SHARED_LIBS=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y +BR2_TOOLCHAIN_EXTERNAL_CLANG=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/19.1.2/clang+llvm-19.1.2-cross-hexagon-unknown-linux-musl.tar.xz" +BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH="x86_64-linux-gnu/bin" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="hexagon-unknown-linux-musl" +BR2_TOOLCHAIN_EXTERNAL_CLANG_19_0=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_6_7=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y +BR2_TOOLCHAIN_EXTERNAL_CXX=y +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_ROOTFS_DEVICE_CREATION_STATIC=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/qcom/sa8775/post_build.sh" +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_BZIP2=y +BR2_PACKAGE_ZLIB=y +BR2_PACKAGE_LOCKDEV=n +BR2_PACKAGE_LIBEVENT=n +BR2_PACKAGE_ATFTP=n +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_LSH=y + +BR2_PACKAGE_BASH=y +BR2_PACKAGE_ZSH=y + +BR2_PACKAGE_LIQUID_DSP=y +BR2_PACKAGE_GNURADIO_FFT=y + +BR2_PACKAGE_XINETD=n +BR2_PACKAGE_COREUTILS=y +BR2_PACKAGE_HEXAGONMVM=y +BR2_TARGET_ROOTFS_TAR_GZIP=y +BR2_TARGET_ROOTFS_INITRAMFS=y + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="bcain/boot_qemu_v6.11" +BR2_LINUX_KERNEL_DEFCONFIG="qemu" + diff --git a/linux/linux.hash b/linux/linux.hash index 5233de2b0b..ca5581d474 100644 --- a/linux/linux.hash +++ b/linux/linux.hash @@ -11,6 +11,7 @@ sha256 4e27cdf999359876a0ff489bff6ece7ba5798ff37c2289db0c9e9422a9014162 linux- # Locally computed sha256 fb0edc3c18e47d2b6974cb0880a0afb5c3fa08f50ee87dfdf24349405ea5f8ae linux-cip-5.10.162-cip24.tar.gz sha256 b5539243f187e3d478d76d44ae13aab83952c94b885ad889df6fa9997e16a441 linux-cip-5.10.162-cip24-rt10.tar.gz +sha256 a97a6fdc814b57b15107139978369d4efd1474142911e8f76b050874cc9ee3e4 linux-bcain_boot_qemu_v6.11-git4.tar.gz # Licenses hashes sha256 fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0 COPYING From patchwork Fri Oct 25 14:07:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002267 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl3x12w5z1xwF for ; Sat, 26 Oct 2024 01:07:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 66E89814B8; Fri, 25 Oct 2024 14:07:55 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 1__CXlcr8_Ys; Fri, 25 Oct 2024 14:07:54 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 72A5581551 Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 72A5581551; Fri, 25 Oct 2024 14:07:54 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 4A3EB2316 for ; Fri, 25 Oct 2024 14:07:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 6B2FC81434 for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HD5Gicp7Grlm for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org D0033813D7 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D0033813D7 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id D0033813D7 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PB6MIM016721 for ; Fri, 25 Oct 2024 14:07:26 GMT Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42ga5jrjtc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:26 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7PjK003757 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:25 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:13 -0700 Message-ID: <20241025140714.2395033-12-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ISjT6r614zrYJfc7yD_IRg9tIo0Kvcml X-Proofpoint-GUID: ISjT6r614zrYJfc7yD_IRg9tIo0Kvcml X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=442 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 mlxscore=0 spamscore=0 suspectscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= vsPZHbMCeqimLqVkaahoma9fHWRThOAVwpFZIcb22HU=; b=enMPZXL6MWw3WVU7 Kwift12cCB1D9RbQx/WJ2RavJ+y4pzul27Re/Imu32uUO6IpBhtUzWyQSBm8BAEz vAoMsGshgcr+eio86EwbsDsRZ481xV8jEER5/ZeZOIf/gy5ye82k4iZrP/sIA5t3 gxhkLs/T7TNh59ziC7Ie9LGIUqSTQNsqdjmlUDYOsT6oXEmhEEcVJv6ou1ketkLZ 1ilYo0w8PKgq9Bjc+fivr9OKU3GsEsPN2011PaDd9ydtPmTtUOPX/QS+n3eRuLS+ Nm9NAR4f3QQSZsZ8WaU/qP8fL08Ow5Y+g3av8b2ZZmJNwrDClKBqH205GtJN3khZ mdtJgQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=enMPZXL6 Subject: [Buildroot] [RFC 11/12] DEVELOPERS: add myself as developer for hexagon X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Signed-off-by: Brian Cain --- DEVELOPERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DEVELOPERS b/DEVELOPERS index 9afd19d406..81f9c0ad8f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3483,3 +3483,11 @@ F: package/quazip/ F: package/shapelib/ F: package/simple-mail/ F: package/tinc/ + +N: Brian Cain +F: arch/Config.in.hexagon +F: board/qcom/ +F: configs/qcom_sa8775_cdsp0_defconfig +F: configs/qcom_dsp_qemu_defconfig +F: package/hexagonMVM +F: toolchain/toolchain-external/toolchain-external-hexagon/ From patchwork Fri Oct 25 14:07:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Cain X-Patchwork-Id: 2002269 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XZl430H0lz1xwF for ; Sat, 26 Oct 2024 01:08:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 406B040793; Fri, 25 Oct 2024 14:08:01 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id oZXms0zCmSu5; Fri, 25 Oct 2024 14:08:00 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 146BB40B3B Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 146BB40B3B; Fri, 25 Oct 2024 14:08:00 +0000 (UTC) X-Original-To: buildroot@buildroot.org Delivered-To: buildroot@buildroot.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 109AD2318 for ; Fri, 25 Oct 2024 14:07:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A036B813D7 for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SZwWv7S8QzbL for ; Fri, 25 Oct 2024 14:07:27 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.220.168.131; helo=mx0a-0031df01.pphosted.com; envelope-from=bcain@quicinc.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 0E27581440 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0E27581440 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0E27581440 for ; Fri, 25 Oct 2024 14:07:26 +0000 (UTC) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49PAulUK029345 for ; Fri, 25 Oct 2024 14:07:26 GMT Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 42em3w9b8m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:26 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49PE7PTW028955 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 14:07:25 GMT Received: from hu-bcain-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 25 Oct 2024 07:07:25 -0700 From: Brian Cain To: CC: Brian Cain Date: Fri, 25 Oct 2024 07:07:14 -0700 Message-ID: <20241025140714.2395033-13-bcain@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241025140714.2395033-1-bcain@quicinc.com> References: <20241025140714.2395033-1-bcain@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 7jqpZxHJPr4B33J-6SLBgRMkCRnnxbFQ X-Proofpoint-GUID: 7jqpZxHJPr4B33J-6SLBgRMkCRnnxbFQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=740 priorityscore=1501 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410250109 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= lchUfNcsvD/aSnS63QUk1sKdPfVjst1sZ0c9GhNKRDM=; b=RzDrFZv1jiHwQ52K wZv8OwIDIg+dgzq3OGv++AFOLILc0KQjkZYV56YyrPX+AsAYJnY6+XKeVf2lRgKp nJOyL/2lgqwslYLl//fCisOnCwhhYC8Rth7FCn+5DhRLTMtUZKZIWeCWE8vFRjR5 J0C1Yv2t6Cd037FpD3uJC+xBGon1MoKn8E/YHG213kFglJZeuITzo3ESQVAYxvO8 BaP2J5PNPf5qldCryCLz/8XeMAPkM+OQtdgAdBi7aR/CLfN398N6bhqgwmTKh6qb KzWsr81fi3AtHtHSJbqwZxhkHtaGvkeHVfgeQgYeNwVtv2wKDFMl3lUptVUEM1Ga HJ4fdg== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=quicinc.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=RzDrFZv1 Subject: [Buildroot] [RFC 12/12] package: disable -ztext for hexagon X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Without this commit, autotools compiler tests often fail with: hexagon-unknown-linux-musl-clang: error: unknown argument: '-ztext' ... but that's probably because we specified clang as LD and not lld. Signed-off-by: Brian Cain --- package/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index b54fe123ba..1f1b429462 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -171,8 +171,10 @@ TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS)) # "-z" to be passed and the "text" keyword to be dropped otherwise. Both # gcc and ld supports that, so it probably won't cause us problems. ifeq ($(BR2_TOOLCHAIN_USES_MUSL):$(BR2_STATIC_LIBS),y:) +ifneq ($(BR2_hexagon),y) TARGET_LDFLAGS += -ztext endif +endif # By design, _FORTIFY_SOURCE requires gcc optimization to be enabled. # Therefore, we need to pass _FORTIFY_SOURCE and the optimization level