]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cml1: add do_savedefconfig
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Wed, 4 Sep 2024 14:46:21 +0000 (16:46 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Sep 2024 20:48:31 +0000 (21:48 +0100)
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 <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass
meta/classes-recipe/kernel.bbclass
meta/recipes-bsp/u-boot/u-boot.inc

index 03e5fe6f4723c58a02db84ce8ed60d9490cc6b68..8c207daec416842fbe990994ca87178baee9c462 100644 (file)
@@ -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
index cdcc5e003202a93c4964fcebac2a3b1fb82f1e7a..a7c4bf0ef4126fdebf0944883ce5f75cf3792e2d 100644 (file)
@@ -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
index ed3822784ef90d7676f2d9f8cb41c34195f229c4..9100964c73ed98070763ad5e68253b6d1ac86416 100644 (file)
@@ -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