* [PATCH] Revert "kernel: restore scripts in the sysroot"
@ 2013-11-27 13:44 Richard Purdie
2013-11-27 13:46 ` Bruce Ashfield
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-11-27 13:44 UTC (permalink / raw)
To: openembedded-core
This reverts commit 6a6735cb98d529c8c5376aedb5c951339f54fe96.
The module class already ensures the scripts are rebuilt correctly. Running
this at sstate installation time is problematic since it can require the
cross compiler. Adding such a dependency would cause issues of its own.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4974507..24ac778 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -290,17 +290,6 @@ kernel_do_install() {
}
do_install[prefuncs] += "package_get_auto_pr"
-
-SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst"
-kernelscripts_sstate_postinst () {
- if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]; then
- (
- cd ${STAGING_KERNEL_DIR}
- oe_runmake scripts
- )
- fi
-}
-
python sysroot_stage_all () {
oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}"))
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "kernel: restore scripts in the sysroot"
2013-11-27 13:44 [PATCH] Revert "kernel: restore scripts in the sysroot" Richard Purdie
@ 2013-11-27 13:46 ` Bruce Ashfield
2013-11-27 15:43 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2013-11-27 13:46 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
On 13-11-27 08:44 AM, Richard Purdie wrote:
> This reverts commit 6a6735cb98d529c8c5376aedb5c951339f54fe96.
>
> The module class already ensures the scripts are rebuilt correctly. Running
> this at sstate installation time is problematic since it can require the
> cross compiler. Adding such a dependency would cause issues of its own.
I was waiting for the dust to clear and have been running with the
same thing here, saves me from sending it and I've removed it from
my queue.
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 4974507..24ac778 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -290,17 +290,6 @@ kernel_do_install() {
> }
> do_install[prefuncs] += "package_get_auto_pr"
>
> -
> -SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst"
> -kernelscripts_sstate_postinst () {
> - if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]; then
> - (
> - cd ${STAGING_KERNEL_DIR}
> - oe_runmake scripts
> - )
> - fi
> -}
> -
> python sysroot_stage_all () {
> oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}"))
> }
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "kernel: restore scripts in the sysroot"
2013-11-27 13:46 ` Bruce Ashfield
@ 2013-11-27 15:43 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2013-11-27 15:43 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
On Wednesday, November 27, 2013, Bruce Ashfield wrote:
> On 13-11-27 08:44 AM, Richard Purdie wrote:
>
>> This reverts commit 6a6735cb98d529c8c5376aedb5c951339f54fe96.
>>
>> The module class already ensures the scripts are rebuilt correctly.
>> Running
>> this at sstate installation time is problematic since it can require the
>> cross compiler. Adding such a dependency would cause issues of its own.
>>
>
> I was waiting for the dust to clear and have been running with the
> same thing here, saves me from sending it and I've removed it from
> my queue.
>
> Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
>
>
Looks ok to me
>
>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>> ---
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 4974507..24ac778 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -290,17 +290,6 @@ kernel_do_install() {
>> }
>> do_install[prefuncs] += "package_get_auto_pr"
>>
>> -
>> -SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst"
>> -kernelscripts_sstate_postinst () {
>> - if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o
>> "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]; then
>> - (
>> - cd ${STAGING_KERNEL_DIR}
>> - oe_runmake scripts
>> - )
>> - fi
>> -}
>> -
>> python sysroot_stage_all () {
>> oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"),
>> d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}"))
>> }
>>
>>
>>
>
[-- Attachment #2: Type: text/html, Size: 2348 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-27 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27 13:44 [PATCH] Revert "kernel: restore scripts in the sysroot" Richard Purdie
2013-11-27 13:46 ` Bruce Ashfield
2013-11-27 15:43 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox