Patchwork kernel.bbcalss: Added do_savedefconfig task.

login
register
mail settings
Submitter Noor Ahsan
Date Aug. 2, 2011, 12:30 p.m.
Message ID <1312288218-15909-1-git-send-email-noor_ahsan@mentor.com>
Download mbox | patch
Permalink /patch/9065/
State New, archived
Headers show

Comments

Noor Ahsan - Aug. 2, 2011, 12:30 p.m.
* Added do_savedefconfig task to kernel.bbclass.

Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
---
 meta/classes/kernel.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Koen Kooi - Aug. 2, 2011, 1:19 p.m.
Op 2 aug. 2011, om 14:30 heeft Noor, Ahsan het volgende geschreven:

> * Added do_savedefconfig task to kernel.bbclass.
> 
> Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
> ---
> meta/classes/kernel.bbclass |    6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 25d2629..f2f05b1 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,12 @@ kernel_do_configure() {
> 
> do_configure[depends] += "${INITRAMFS_TASK}"
> 
> +do_savedefconfig() {
> +	oe_runmake savedefconfig
> +}
> +do_savedefconfig[nostamp] = "1"
> +addtask savedefconfig after do_configure
> +
> pkg_postinst_kernel () {
> 	cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
> }

Is there a matching function to copy it to deploy?
Saul Wold - Aug. 4, 2011, 2:53 p.m.
On 08/02/2011 05:30 AM, Noor, Ahsan wrote:
> * Added do_savedefconfig task to kernel.bbclass.
>
> Signed-off-by: Noor, Ahsan<noor_ahsan@mentor.com>
> ---
>   meta/classes/kernel.bbclass |    6 ++++++
>   1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 25d2629..f2f05b1 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -197,6 +197,12 @@ kernel_do_configure() {
>
>   do_configure[depends] += "${INITRAMFS_TASK}"
>
> +do_savedefconfig() {
> +	oe_runmake savedefconfig
> +}
> +do_savedefconfig[nostamp] = "1"
> +addtask savedefconfig after do_configure
> +
>   pkg_postinst_kernel () {
>   	cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
>   }

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 25d2629..f2f05b1 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -197,6 +197,12 @@  kernel_do_configure() {
 
 do_configure[depends] += "${INITRAMFS_TASK}"
 
+do_savedefconfig() {
+	oe_runmake savedefconfig
+}
+do_savedefconfig[nostamp] = "1"
+addtask savedefconfig after do_configure
+
 pkg_postinst_kernel () {
 	cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 }