Re: [yocto] non-existent task do_package_write_rpm error

2022-01-22 Thread Alexander Kanavin
Congratulations, you now know the three major flavors of a recipe, and why and where they're needed :) Alex On Sat, 22 Jan 2022 at 14:34, Winfried wrote: > Update: > > TOOLCHAIN_HOST_TASK_append = “ nativesdk-hardening-check” > > does work. The SDK build succeeds and the hardening-check script

Re: [yocto] non-existent task do_package_write_rpm error

2022-01-22 Thread W. Dobbe
Update: TOOLCHAIN_HOST_TASK_append = “ nativesdk-hardening-check” does work. The SDK build succeeds and the hardening-check script is installed in the x86_64-pokysdk-linux sysroot. regards, Winfried > Op 22-01-2022 14:11 schreef Winfried : > > > Thanks. > With TOOLCHAIN_HOST_TASK_append = “

Re: [yocto] non-existent task do_package_write_rpm error

2022-01-22 Thread W. Dobbe
Thanks. With TOOLCHAIN_HOST_TASK_append = “ hardening-check” the sdk build progresses a bit further but then stops with error: ERROR: dynniq-image-flownode-acu-default-1.0-r0 do_populate_sdk: Could not invoke dnf. Command

Re: [yocto] non-existent task do_package_write_rpm error

2022-01-21 Thread Alexander Kanavin
Use TOOLCHAIN_HOST_TASK:append = " ..." in your image recipe. Alex On Fri, 21 Jan 2022 at 21:00, Winfried wrote: > Hi Alex, > > Thanks for the tip. When I add hardening-check to IMAGE_INSTALL the build > does indeed succeed. > But then the script is installed in the target sysroot of the SDK.

Re: [yocto] non-existent task do_package_write_rpm error

2022-01-21 Thread W. Dobbe
Hi Alex, Thanks for the tip. When I add hardening-check to IMAGE_INSTALL the build does indeed succeed. But then the script is installed in the target sysroot of the SDK. I would like to have it in the native (x86_64-pokysdk-linux) sysroot as it is a tool to use on the build server. Any idea

Re: [yocto] non-existent task do_package_write_rpm error

2022-01-21 Thread Alexander Kanavin
You need to drop the -native suffix when installing to target image or SDK. -native is only for the bitbake build itself. Alex On Fri, 21 Jan 2022 at 20:07, W. Dobbe wrote: > Hi, > > I'm writing a recipe for package hardening-check >

[yocto] non-existent task do_package_write_rpm error

2022-01-21 Thread W. Dobbe
Hi, I'm writing a recipe for package hardening-check http://deb.debian.org/debian/pool/main/h/hardening-wrapper/ . This package builds with only a simple Makefile (that has no install target). The recipe only installs a script hardening-check in /usr/bin. I would like to include this script in