cml1: add do_savedefconfig
PATCH 1/1 cml1: add do_savedefconfig
From: Adrian Freihofer <[email protected]>
Move the do_savedefconfig task definition from u-boot and kernel to cml1.bbclass. There are more recipes which use the kbuild framework and benefit from a do_savedefconfig task.
Signed-off-by Adrian Freihofer <[email protected]>
--- meta/classes-recipe/cml1.bbclass | 7 +++++++ meta/classes-recipe/kernel.bbclass | 7 ------- meta/recipes-bsp/u-boot/u-boot.inc | 6 ------ 3 files changed, 7 insertions(+), 13 deletions(-)
meta/classes-recipe/cml1.bbclass +7 -0
@@ -113,3 +113,10 @@ do_showconfig() { } do_showconfig[nostamp] = "1" addtask showconfig after do_configure + +do_savedefconfig() { + bbplain "Saving defconfig to:\n${B}/defconfig" + oe_runmake -C ${B} savedefconfig +} +do_savedefconfig[nostamp] = "1" +addtask savedefconfig after do_configure
meta/classes-recipe/kernel.bbclass +0 -7
@@ -689,13 +689,6 @@ kernel_do_configure() { ${KERNEL_CONFIG_COMMAND} } -do_savedefconfig() { - bbplain "Saving defconfig to:\n${B}/defconfig" - oe_runmake -C ${B} savedefconfig -} -do_savedefconfig[nostamp] = "1" -addtask savedefconfig after do_configure - inherit cml1 pkgconfig # Need LD, HOSTLDFLAGS and more for config operations
meta/recipes-bsp/u-boot/u-boot.inc +0 -6
@@ -31,12 +31,6 @@ UBOOT_INITIAL_ENV ?= "${PN}-initial-env" require u-boot-configure.inc -do_savedefconfig() { - bbplain "Saving defconfig to:\n${B}/defconfig" - oe_runmake -C ${B} savedefconfig -} -do_savedefconfig[nostamp] = "1" -addtask savedefconfig after do_configure UBOOT_ARCH_DIR = "${@'arm' if d.getVar('UBOOT_ARCH').startswith('arm') else d.getVar('UBOOT_ARCH')}" do_compile () { if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then
Signature · 1 line
2.46.0