[oe-commits] Martin Jansa : linux: add new kernel task savedefconfig

git version control git at git.openembedded.org
Thu Jun 2 20:01:27 UTC 2011


Module: openembedded.git
Branch: testing-next
Commit: 8408a25f08ce6a0747253fc64b8743eb8fb92b01
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=8408a25f08ce6a0747253fc64b8743eb8fb92b01

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Fri May 20 08:39:00 2011 +0200

linux: add new kernel task savedefconfig

* like Andrea did for linux-kexecboot.inc in 3e4c19efcdac75f7c3af575e9be1f9ef75c4efa9
* because there is no "before build" param in addtask it's not problem
  when kernel doesn't support savedefconfig target yet and user has to
  call it manually with -c savedefconfig

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/linux/linux.inc |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 24e3406..beecf5c 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -254,6 +254,12 @@ do_devicetree_image() {
 
 addtask devicetree_image after do_install before do_package do_deploy
 
+do_savedefconfig() {
+       oe_runmake savedefconfig
+}
+
+addtask savedefconfig after do_configure
+
 pkg_postinst_kernel-devicetree () {
 	cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/devicetree devicetree devicetree-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 }





More information about the Openembedded-commits mailing list