aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linux/linux.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-05-20 08:39:00 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2011-05-27 17:55:01 +0200
commit8408a25f08ce6a0747253fc64b8743eb8fb92b01 (patch)
treed50c43de73ac82461b64bd82140f12a11888055d /recipes/linux/linux.inc
parent03578a4aa342add60202d2e97f527e17da22b67d (diff)
downloadopenembedded-8408a25f08ce6a0747253fc64b8743eb8fb92b01.tar.gz
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@gmail.com>
Diffstat (limited to 'recipes/linux/linux.inc')
-rw-r--r--recipes/linux/linux.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index 24e3406e96..beecf5c11d 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
}