new file mode 100644
@@ -0,0 +1,31 @@
+SUMMARY = "Apply, delete or show boot config"
+DESCRIPTION = "bootconfig is a tool that can be used to add a boot config block \
+at the end of a kernel initramfs, as well as remove it or show its content."
+LICENSE = "GPL-2.0-only"
+
+inherit kernelsrc kernel-arch native
+
+do_populate_lic[depends] += "virtual/kernel:do_shared_workdir"
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
+EXTRA_OEMAKE = "\
+ -C ${S}/tools/bootconfig O=${B} \
+ CC="${KERNEL_CC}" LD="${KERNEL_LD}" STRIP="${KERNEL_STRIP}" \
+ HOSTCC="${BUILD_CC}" HOSTCFLAGS="${BUILD_CFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}" \
+ 'DESTDIR=${D}' 'prefix=${prefix}' 'bindir=${bindir}' \
+"
+
+do_compile() {
+ oe_runmake ${B}/bootconfig V=1
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ oe_runmake install
+}
+
+python do_package:prepend() {
+ d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
+}
+
+B = "${WORKDIR}/${BPN}-${PV}"
Add a new recipe for the bootconfig tool, with source coming directly from the Linux kernel shared workdir. Signed-off-by: Francesco Valla <francesco@valla.it> --- .../linux-bootconfig/linux-bootconfig-native.bb | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+)