summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Wiehler <me@sephalon.net>2025-08-14 09:39:22 +0200
committerKhem Raj <raj.khem@gmail.com>2025-08-14 07:40:09 -0700
commit70a9c5ca6e73b10bd7a9cd8bda9e77d5111998b6 (patch)
tree342cab7e81e105399bbbadf2b3fa6ec79f894cbf
parent163506182f54973f468ef438f5c7e6664f6546bc (diff)
downloadmeta-openembedded-70a9c5ca6e73b10bd7a9cd8bda9e77d5111998b6.tar.gz
syzkaller: Add nativesdk
Signed-off-by: Stefan Wiehler <me@sephalon.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-test/syzkaller/syzkaller-licenses.inc5
-rw-r--r--meta-oe/recipes-test/syzkaller/syzkaller_git.bb22
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 += "\
73 file://pkg/mod/google.golang.org/protobuf@v1.36.6/LICENSE;md5=02d4002e9171d41a8fad93aa7faf3956;spdx=BSD-3-Clause \ 73 file://pkg/mod/google.golang.org/protobuf@v1.36.6/LICENSE;md5=02d4002e9171d41a8fad93aa7faf3956;spdx=BSD-3-Clause \
74" 74"
75 75
76LIC_FILES_CHKSUM:class-native += "\ 76LIC_FILES_CHKSUM_HOST = "\
77 file://pkg/mod/github.com/golang/protobuf@v1.5.4/LICENSE;md5=939cce1ec101726fa754e698ac871622;spdx=BSD-3-Clause \ 77 file://pkg/mod/github.com/golang/protobuf@v1.5.4/LICENSE;md5=939cce1ec101726fa754e698ac871622;spdx=BSD-3-Clause \
78 file://pkg/mod/github.com/gorilla/handlers@v1.5.2/LICENSE;md5=c30eee78985cf2584cded5f89ba3d787;spdx=Unknown \ 78 file://pkg/mod/github.com/gorilla/handlers@v1.5.2/LICENSE;md5=c30eee78985cf2584cded5f89ba3d787;spdx=Unknown \
79 file://pkg/mod/google.golang.org/appengine/v2@v2.0.6/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57;spdx=Apache-2.0 \ 79 file://pkg/mod/google.golang.org/appengine/v2@v2.0.6/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57;spdx=Apache-2.0 \
80" 80"
81
82LIC_FILES_CHKSUM:class-native += "${LIC_FILES_CHKSUM_HOST}"
83LIC_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
41 41
42DEPENDS:class-native += "qemu-system-native" 42DEPENDS:class-native += "qemu-system-native"
43 43
44do_compile:class-native() { 44compile_native() {
45 export HOSTOS="${GOHOSTOS}" 45 export HOSTOS="${GOHOSTOS}"
46 export HOSTARCH="${GOHOSTARCH}" 46 export HOSTARCH="${GOHOSTARCH}"
47 47
48 oe_runmake HOSTGO="${GO}" host 48 oe_runmake HOSTGO="${GO}" host
49} 49}
50 50
51do_compile:class-native() {
52 compile_native
53}
54
55do_compile:class-nativesdk() {
56 compile_native
57}
58
51do_compile:class-target() { 59do_compile:class-target() {
52 export HOSTOS="${GOOS}" 60 export HOSTOS="${GOOS}"
53 export HOSTARCH="${GOARCH}" 61 export HOSTARCH="${GOARCH}"
@@ -63,7 +71,7 @@ do_compile:class-target() {
63 oe_runmake GO="${GO}" REV=${SRCREV} target 71 oe_runmake GO="${GO}" REV=${SRCREV} target
64} 72}
65 73
66do_install:class-native() { 74install_native() {
67 SYZ_BINS_NATIVE="syz-manager syz-repro syz-mutate syz-prog2c syz-db \ 75 SYZ_BINS_NATIVE="syz-manager syz-repro syz-mutate syz-prog2c syz-db \
68 syz-upgrade" 76 syz-upgrade"
69 77
@@ -74,6 +82,14 @@ do_install:class-native() {
74 done 82 done
75} 83}
76 84
85do_install:class-native() {
86 install_native
87}
88
89do_install:class-nativesdk() {
90 install_native
91}
92
77do_install:class-target() { 93do_install:class-target() {
78 SYZ_TARGET_DIR="${TARGETOS}_${TARGETARCH}" 94 SYZ_TARGET_DIR="${TARGETOS}_${TARGETARCH}"
79 SYZ_BINS_TARGET="syz-execprog syz-executor" 95 SYZ_BINS_TARGET="syz-execprog syz-executor"
@@ -85,4 +101,4 @@ do_install:class-target() {
85 done 101 done
86} 102}
87 103
88BBCLASSEXTEND += "native" 104BBCLASSEXTEND += "native nativesdk"