From patchwork Tue Oct 29 09:17:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongxu Jia X-Patchwork-Id: 1302 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB494D2AB06 for ; Tue, 29 Oct 2024 09:17:30 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.14823.1730193446214056862 for ; Tue, 29 Oct 2024 02:17:26 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=103298b06a=hongxu.jia@windriver.com) Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49T4cLXl031504; Tue, 29 Oct 2024 09:17:25 GMT Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [147.11.82.254]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 42gqd8kau1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 29 Oct 2024 09:17:24 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 29 Oct 2024 02:17:23 -0700 Received: from ala-lpggp7.wrs.com (147.11.136.210) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 29 Oct 2024 02:17:23 -0700 From: Hongxu Jia To: CC: Subject: [RR V2][0/7] Support SPDX include source for work-share directory Date: Tue, 29 Oct 2024 02:17:16 -0700 Message-ID: <20241029091723.2851061-1-hongxu.jia@windriver.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: lizwOQg32N5Mbh9_a6IMnxsI--2XD72_ X-Authority-Analysis: v=2.4 cv=dKj0m/Zb c=1 sm=1 tr=0 ts=6720a824 cx=c_pps a=K4BcnWQioVPsTJd46EJO2w==:117 a=K4BcnWQioVPsTJd46EJO2w==:17 a=DAUX931o1VcA:10 a=24AZYWMyAAAA:8 a=_m_OQ7XaKNAgo1gC_v8A:9 a=bG88sKzkDEFeXWNnvthB:22 X-Proofpoint-GUID: lizwOQg32N5Mbh9_a6IMnxsI--2XD72_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-29_04,2024-10-28_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 mlxlogscore=918 adultscore=0 impostorscore=0 malwarescore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2409260000 definitions=main-2410290072 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 29 Oct 2024 09:17:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/206477 Summary: Support SPDX include source for work-share directory ====== Testing ====== * Commands 1. For SPDX 3.0 $ echo 'MACHINE = "qemux86-64"' >> conf/local.conf $ echo 'SPDX_INCLUDE_SOURCES = "1"' >> conf/local.conf $ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 nativesdk-gcc -ccleansstate $ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 nativesdk-gcc $ oe-selftest -r spdx.SPDX30Check.test_gcc_include_source ... 2024-10-26 01:33:38,475 - oe-selftest - INFO - The spdxId of gcc-14.2.0/README in gcc.spdx.json is http://spdx.org/spdxdocs/gcc-f2eaeb0d-b54b-53ba-899a-8c36c21139bf/88d5068ffd41e5ea6b4e0dd390b23bf499bb2b6674a41e09eaf2a887eced16c8/sourcefile/42 2024-10-26 01:33:40,794 - oe-selftest - INFO - ... ok 2024-10-26 01:33:47,890 - oe-selftest - INFO - ---------------------------------------------------------------------- 2024-10-26 01:33:47,891 - oe-selftest - INFO - Ran 1 test in 261.233s 2024-10-26 01:33:47,891 - oe-selftest - INFO - OK 2024-10-26 01:33:59,913 - oe-selftest - INFO - RESULTS: 2024-10-26 01:33:59,914 - oe-selftest - INFO - RESULTS - spdx.SPDX30Check.test_gcc_include_source: PASSED (253.93s) 2024-10-26 01:34:00,304 - oe-selftest - INFO - SUMMARY: 2024-10-26 01:34:00,304 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 261.234s 2024-10-26 01:34:00,304 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0) 2. For SPDX 2.2 echo 'INHERIT:remove = "create-spdx"' >> conf/local.conf echo 'INHERIT += "create-spdx-2.2"' >> conf/local.conf $ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 nativesdk-gcc -ccleansstate $ bitbake gcc-source-14.2.0 gcc libgcc gcc-runtime gcc-cross-x86_64 nativesdk-gcc * Expected Results All builds are successfully