mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-10-22 23:13:04 +02:00
syzkaller: Add nativesdk
Signed-off-by: Stefan Wiehler <me@sephalon.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
163506182f
commit
70a9c5ca6e
|
@ -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}"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user