From patchwork Thu Aug 14 07:39:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wiehler X-Patchwork-Id: 68506 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 110FECA0EDC for ; Thu, 14 Aug 2025 07:41:51 +0000 (UTC) Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by mx.groups.io with SMTP id smtpd.web11.17395.1755157306971460583 for ; Thu, 14 Aug 2025 00:41:47 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@sephalon.net header.s=MBO0001 header.b=mESbBdpT; spf=none, err=permanent DNS error (domain: sephalon.net, ip: 80.241.56.152, mailfrom: me@sephalon.net) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4c2cd33Y1gz9tm8; Thu, 14 Aug 2025 09:41:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sephalon.net; s=MBO0001; t=1755157303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZSm+IPgjccCtnOtGzP8UfYmzteMTMxmvzZ1UilHhtpA=; b=mESbBdpTzIll9UI7T2xRLKskDhE8g0x55clbeGqs6NLMItxiI2jXyCH78ItY0Ou742FRzR dL/RjJwvi2w8aGjJpd+CNytgr5X0B6vtMwaSZ7xC8HjCvyZ9sFzWo13GJPkfRKFfDEGUyz BVp/rQIy08R1q9ANRQ3yGKz79jaNbcKZEa12Un5EeAKW+NuLUS47XJ+gVEMPxZNFArq/0u 9Bio3tKD+4atAj9V1v9ZWDtzwLFLtGQKhwYULRN4PVmGyuhkBanO2fE7oDitfHeS3l6XIv zErc/vfatxiCoBz7W2Vm5qziottDUzCCoGBCvAF8m6we9mxBQmOj7nzrljLUpg== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=none (outgoing_mbo_mout: domain of me@sephalon.net has no SPF policy when checking 2001:67c:2050:b231:465::2) smtp.mailfrom=me@sephalon.net From: Stefan Wiehler To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Stefan Wiehler Subject: [meta-oe][PATCH v3 2/2] syzkaller: Add nativesdk Date: Thu, 14 Aug 2025 09:39:22 +0200 Message-ID: <20250814073921.1757918-3-me@sephalon.net> In-Reply-To: <20250814073921.1757918-2-me@sephalon.net> References: <20250814073921.1757918-2-me@sephalon.net> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4c2cd33Y1gz9tm8 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 ; Thu, 14 Aug 2025 07:41:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118932 Signed-off-by: Stefan Wiehler --- .../syzkaller/syzkaller-licenses.inc | 5 ++++- .../recipes-test/syzkaller/syzkaller_git.bb | 22 ++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/meta-oe/recipes-test/syzkaller/syzkaller-licenses.inc b/meta-oe/recipes-test/syzkaller/syzkaller-licenses.inc index 2be12f2853..af118a4dd4 100644 --- a/meta-oe/recipes-test/syzkaller/syzkaller-licenses.inc +++ b/meta-oe/recipes-test/syzkaller/syzkaller-licenses.inc @@ -73,8 +73,11 @@ LIC_FILES_CHKSUM += "\ file://pkg/mod/google.golang.org/protobuf@v1.36.6/LICENSE;md5=02d4002e9171d41a8fad93aa7faf3956;spdx=BSD-3-Clause \ " -LIC_FILES_CHKSUM:class-native += "\ +LIC_FILES_CHKSUM_HOST = "\ file://pkg/mod/github.com/golang/protobuf@v1.5.4/LICENSE;md5=939cce1ec101726fa754e698ac871622;spdx=BSD-3-Clause \ file://pkg/mod/github.com/gorilla/handlers@v1.5.2/LICENSE;md5=c30eee78985cf2584cded5f89ba3d787;spdx=Unknown \ file://pkg/mod/google.golang.org/appengine/v2@v2.0.6/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57;spdx=Apache-2.0 \ " + +LIC_FILES_CHKSUM:class-native += "${LIC_FILES_CHKSUM_HOST}" +LIC_FILES_CHKSUM:class-nativesdk += "${LIC_FILES_CHKSUM_HOST}" diff --git a/meta-oe/recipes-test/syzkaller/syzkaller_git.bb b/meta-oe/recipes-test/syzkaller/syzkaller_git.bb index 370fe44186..e35a8a77be 100644 --- a/meta-oe/recipes-test/syzkaller/syzkaller_git.bb +++ b/meta-oe/recipes-test/syzkaller/syzkaller_git.bb @@ -41,13 +41,21 @@ LDFLAGS:append:class-target = "${@bb.utils.contains_any("TC_CXX_RUNTIME", "llvm DEPENDS:class-native += "qemu-system-native" -do_compile:class-native() { +compile_native() { export HOSTOS="${GOHOSTOS}" export HOSTARCH="${GOHOSTARCH}" oe_runmake HOSTGO="${GO}" host } +do_compile:class-native() { + compile_native +} + +do_compile:class-nativesdk() { + compile_native +} + do_compile:class-target() { export HOSTOS="${GOOS}" export HOSTARCH="${GOARCH}" @@ -63,7 +71,7 @@ do_compile:class-target() { oe_runmake GO="${GO}" REV=${SRCREV} target } -do_install:class-native() { +install_native() { SYZ_BINS_NATIVE="syz-manager syz-repro syz-mutate syz-prog2c syz-db \ syz-upgrade" @@ -74,6 +82,14 @@ do_install:class-native() { done } +do_install:class-native() { + install_native +} + +do_install:class-nativesdk() { + install_native +} + do_install:class-target() { SYZ_TARGET_DIR="${TARGETOS}_${TARGETARCH}" SYZ_BINS_TARGET="syz-execprog syz-executor" @@ -85,4 +101,4 @@ do_install:class-target() { done } -BBCLASSEXTEND += "native" +BBCLASSEXTEND += "native nativesdk"