All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
@ 2019-11-20 19:25 Tom Hochstein
  2019-11-20 19:25 ` [PATCH 2/2] u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig Tom Hochstein
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tom Hochstein @ 2019-11-20 19:25 UTC (permalink / raw)
  To: openembedded-core

u-boot.inc supports u-boot recipes with or without menuconfig [1].
However, running devtool on a u-boot recipe that does not support menuconfig
results in an error:

cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory

The problem is the devtool logic assumes that any recipe with a do_menuconfig task
will generate a .config in do_configure().

Fix the problem by removing the assumption with a flag that the recipe can control,
like this:

do_configure() {
    if [ menuconfig-supported ]; then
        ...
    else
        DEVTOOL_DISABLE_MENUCONFIG=true
    fi
}

[1] https://github.com/openembedded/openembedded-core/commit/11278e3b2c75be80645b9841763a97dbb35daadc

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 scripts/lib/devtool/standard.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 8d9c1a3022..66bd1415c3 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
                         '}\n')
             if rd.getVarFlag('do_menuconfig','task'):
                 f.write('\ndo_configure_append() {\n'
-                '    cp ${B}/.config ${S}/.config.baseline\n'
-                '    ln -sfT ${B}/.config ${S}/.config.new\n'
+                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
+                '        cp ${B}/.config ${S}/.config.baseline\n'
+                '        ln -sfT ${B}/.config ${S}/.config.new\n'
+                '    fi\n'
                 '}\n')
             if initial_rev:
                 f.write('\n# initial_rev: %s\n' % initial_rev)
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/2] u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig
  2019-11-20 19:25 [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Tom Hochstein
@ 2019-11-20 19:25 ` Tom Hochstein
  2019-11-21 10:23 ` [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Peter Kjellerstedt
  2019-12-04 16:44 ` Schrempf Frieder
  2 siblings, 0 replies; 10+ messages in thread
From: Tom Hochstein @ 2019-11-20 19:25 UTC (permalink / raw)
  To: openembedded-core

For u-boot recipes without menuconfig support, running devtool results
in a do_configure error:

cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory

The problem arises because u-boot.inc supports recipes with and without
menuconfig.

Fix the problem by properly setting DEVTOOL_DISABLE_MENUCONFIG so that devtool
can control logic that applies only for menuconfig support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
 meta/recipes-bsp/u-boot/u-boot.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 9a754fd09b..d241347bf7 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -87,6 +87,8 @@ do_configure () {
         fi
         merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
         cml1_do_configure
+    else
+        DEVTOOL_DISABLE_MENUCONFIG=true
     fi
 }
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2019-11-20 19:25 [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Tom Hochstein
  2019-11-20 19:25 ` [PATCH 2/2] u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig Tom Hochstein
@ 2019-11-21 10:23 ` Peter Kjellerstedt
  2019-11-21 12:40   ` Tom Hochstein
  2019-12-04 16:44 ` Schrempf Frieder
  2 siblings, 1 reply; 10+ messages in thread
From: Peter Kjellerstedt @ 2019-11-21 10:23 UTC (permalink / raw)
  To: Tom Hochstein, openembedded-core

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-
> bounces@lists.openembedded.org> On Behalf Of Tom Hochstein
> Sent: den 20 november 2019 20:26
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to
> disable menuconfig logic
> 
> u-boot.inc supports u-boot recipes with or without menuconfig [1].
> However, running devtool on a u-boot recipe that does not support
> menuconfig
> results in an error:
> 
> cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-
> fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file
> or directory
> 
> The problem is the devtool logic assumes that any recipe with a
> do_menuconfig task
> will generate a .config in do_configure().
> 
> Fix the problem by removing the assumption with a flag that the recipe can
> control,
> like this:
> 
> do_configure() {
>     if [ menuconfig-supported ]; then
>         ...
>     else
>         DEVTOOL_DISABLE_MENUCONFIG=true
>     fi
> }
> 
> [1] https://github.com/openembedded/openembedded-
> core/commit/11278e3b2c75be80645b9841763a97dbb35daadc
> 
> Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
> ---
>  scripts/lib/devtool/standard.py | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/lib/devtool/standard.py
> b/scripts/lib/devtool/standard.py
> index 8d9c1a3022..66bd1415c3 100644
> --- a/scripts/lib/devtool/standard.py
> +++ b/scripts/lib/devtool/standard.py
> @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
>                          '}\n')
>              if rd.getVarFlag('do_menuconfig','task'):
>                  f.write('\ndo_configure_append() {\n'
> -                '    cp ${B}/.config ${S}/.config.baseline\n'
> -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
> +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
> +                '        cp ${B}/.config ${S}/.config.baseline\n'
> +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
> +                '    fi\n'

Why do you need the extra variable? Why not just check if the .config 
file exists before copying it:

                '    if -e ${B}/.config; then\n'
                '        cp ${B}/.config ${S}/.config.baseline\n'
                '        ln -sfT ${B}/.config ${S}/.config.new\n'
                '    fi\n'

>                  '}\n')
>              if initial_rev:
>                  f.write('\n# initial_rev: %s\n' % initial_rev)
> --
> 2.17.1

//Peter



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2019-11-21 10:23 ` [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Peter Kjellerstedt
@ 2019-11-21 12:40   ` Tom Hochstein
  0 siblings, 0 replies; 10+ messages in thread
From: Tom Hochstein @ 2019-11-21 12:40 UTC (permalink / raw)
  To: Peter Kjellerstedt, openembedded-core



> -----Original Message-----
> From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Sent: Thursday, November 21, 2019 4:24 AM
> To: Tom Hochstein <tom.hochstein@nxp.com>; openembedded-core@lists.openembedded.org
> Subject: RE: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
> 
> > -----Original Message-----
> > From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-
> > bounces@lists.openembedded.org> On Behalf Of Tom Hochstein
> > Sent: den 20 november 2019 20:26
> > To: openembedded-core@lists.openembedded.org
> > Subject: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to
> > disable menuconfig logic
> >
> > @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
> >                          '}\n')
> >              if rd.getVarFlag('do_menuconfig','task'):
> >                  f.write('\ndo_configure_append() {\n'
> > -                '    cp ${B}/.config ${S}/.config.baseline\n'
> > -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
> > +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
> > +                '        cp ${B}/.config ${S}/.config.baseline\n'
> > +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
> > +                '    fi\n'
> 
> Why do you need the extra variable? Why not just check if the .config
> file exists before copying it:
> 
>                 '    if -e ${B}/.config; then\n'
>                 '        cp ${B}/.config ${S}/.config.baseline\n'
>                 '        ln -sfT ${B}/.config ${S}/.config.new\n'
>                 '    fi\n'
> 
> >                  '}\n')
> >              if initial_rev:
> >                  f.write('\n# initial_rev: %s\n' % initial_rev)
> > --
> > 2.17.1
> 
> //Peter

I wanted to preserve the existing error handling in the case that menuconfig is supported and .config is unexpectedly missing. Having the cp fail immediately seems best.

Tom


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2019-11-20 19:25 [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Tom Hochstein
  2019-11-20 19:25 ` [PATCH 2/2] u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig Tom Hochstein
  2019-11-21 10:23 ` [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Peter Kjellerstedt
@ 2019-12-04 16:44 ` Schrempf Frieder
  2019-12-13 16:14   ` Tom Hochstein
  2 siblings, 1 reply; 10+ messages in thread
From: Schrempf Frieder @ 2019-12-04 16:44 UTC (permalink / raw)
  To: Tom Hochstein, openembedded-core

Hi,

On 20.11.19 20:25, Tom Hochstein wrote:
> u-boot.inc supports u-boot recipes with or without menuconfig [1].
> However, running devtool on a u-boot recipe that does not support menuconfig
> results in an error:
> 
> cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-2018.03//.config': No such file or directory
> 
> The problem is the devtool logic assumes that any recipe with a do_menuconfig task
> will generate a .config in do_configure().
> 
> Fix the problem by removing the assumption with a flag that the recipe can control,
> like this:
> 
> do_configure() {
>      if [ menuconfig-supported ]; then
>          ...
>      else
>          DEVTOOL_DISABLE_MENUCONFIG=true
>      fi
> }
> 
> [1] https://github.com/openembedded/openembedded-core/commit/11278e3b2c75be80645b9841763a97dbb35daadc
> 
> Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>

I'm experiencing this issue since moving to zeus. Your fix in this 
series works fine for me and I would really like to see this merged in zeus.

Thanks,
Frieder

> ---
>   scripts/lib/devtool/standard.py | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
> index 8d9c1a3022..66bd1415c3 100644
> --- a/scripts/lib/devtool/standard.py
> +++ b/scripts/lib/devtool/standard.py
> @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
>                           '}\n')
>               if rd.getVarFlag('do_menuconfig','task'):
>                   f.write('\ndo_configure_append() {\n'
> -                '    cp ${B}/.config ${S}/.config.baseline\n'
> -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
> +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
> +                '        cp ${B}/.config ${S}/.config.baseline\n'
> +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
> +                '    fi\n'
>                   '}\n')
>               if initial_rev:
>                   f.write('\n# initial_rev: %s\n' % initial_rev)
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2019-12-04 16:44 ` Schrempf Frieder
@ 2019-12-13 16:14   ` Tom Hochstein
  2020-01-08  8:32     ` Schrempf Frieder
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Hochstein @ 2019-12-13 16:14 UTC (permalink / raw)
  To: Schrempf Frieder, openembedded-core

I made a PR as well:

https://github.com/openembedded/openembedded-core/pull/57

Tom

> -----Original Message-----
> From: Schrempf Frieder <frieder.schrempf@kontron.de>
> Sent: Wednesday, December 4, 2019 10:44 AM
> To: Tom Hochstein <tom.hochstein@nxp.com>; openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
> 
> Hi,
> 
> On 20.11.19 20:25, Tom Hochstein wrote:
> > u-boot.inc supports u-boot recipes with or without menuconfig [1].
> > However, running devtool on a u-boot recipe that does not support menuconfig
> > results in an error:
> >
> > cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-
> 2018.03//.config': No such file or directory
> >
> > The problem is the devtool logic assumes that any recipe with a do_menuconfig task
> > will generate a .config in do_configure().
> >
> > Fix the problem by removing the assumption with a flag that the recipe can control,
> > like this:
> >
> > do_configure() {
> >      if [ menuconfig-supported ]; then
> >          ...
> >      else
> >          DEVTOOL_DISABLE_MENUCONFIG=true
> >      fi
> > }
> >
> > [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenembedded%2Fopenembedded-
> core%2Fcommit%2F11278e3b2c75be80645b9841763a97dbb35daadc&amp;data=02%7C01%7Ctom.hochstein%40nxp.com%7C5d668f64
> d3a044abb11e08d778d92bef%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637110746452407756&amp;sdata=AHjvw91G8N7
> Wuf%2BORB%2B5E7cxE5cciCpnEktIqkoFKMY%3D&amp;reserved=0
> >
> > Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
> 
> I'm experiencing this issue since moving to zeus. Your fix in this
> series works fine for me and I would really like to see this merged in zeus.
> 
> Thanks,
> Frieder
> 
> > ---
> >   scripts/lib/devtool/standard.py | 6 ++++--
> >   1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
> > index 8d9c1a3022..66bd1415c3 100644
> > --- a/scripts/lib/devtool/standard.py
> > +++ b/scripts/lib/devtool/standard.py
> > @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
> >                           '}\n')
> >               if rd.getVarFlag('do_menuconfig','task'):
> >                   f.write('\ndo_configure_append() {\n'
> > -                '    cp ${B}/.config ${S}/.config.baseline\n'
> > -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
> > +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
> > +                '        cp ${B}/.config ${S}/.config.baseline\n'
> > +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
> > +                '    fi\n'
> >                   '}\n')
> >               if initial_rev:
> >                   f.write('\n# initial_rev: %s\n' % initial_rev)
> >

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2019-12-13 16:14   ` Tom Hochstein
@ 2020-01-08  8:32     ` Schrempf Frieder
  2020-01-29  8:20       ` Schrempf Frieder
  0 siblings, 1 reply; 10+ messages in thread
From: Schrempf Frieder @ 2020-01-08  8:32 UTC (permalink / raw)
  To: Tom Hochstein, openembedded-core, akuster808, anuj.mittal,
	richard.purdie

On 13.12.19 17:14, Tom Hochstein wrote:
> I made a PR as well:
> 
> https://github.com/openembedded/openembedded-core/pull/57
> 
> Tom

I don't think PRs are accepted for oe-core. Your patches should be ok, 
if someone reviews and applies them.

Dear maintainers, could you consider to review/apply this fix for 
master/zeus? It fixes an annoying issue when working with devtool and 
u-boot.

> 
>> -----Original Message-----
>> From: Schrempf Frieder <frieder.schrempf@kontron.de>
>> Sent: Wednesday, December 4, 2019 10:44 AM
>> To: Tom Hochstein <tom.hochstein@nxp.com>; openembedded-core@lists.openembedded.org
>> Subject: Re: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
>>
>> Hi,
>>
>> On 20.11.19 20:25, Tom Hochstein wrote:
>>> u-boot.inc supports u-boot recipes with or without menuconfig [1].
>>> However, running devtool on a u-boot recipe that does not support menuconfig
>>> results in an error:
>>>
>>> cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-
>> 2018.03//.config': No such file or directory
>>>
>>> The problem is the devtool logic assumes that any recipe with a do_menuconfig task
>>> will generate a .config in do_configure().
>>>
>>> Fix the problem by removing the assumption with a flag that the recipe can control,
>>> like this:
>>>
>>> do_configure() {
>>>       if [ menuconfig-supported ]; then
>>>           ...
>>>       else
>>>           DEVTOOL_DISABLE_MENUCONFIG=true
>>>       fi
>>> }
>>>
>>> [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenembedded%2Fopenembedded-
>> core%2Fcommit%2F11278e3b2c75be80645b9841763a97dbb35daadc&amp;data=02%7C01%7Ctom.hochstein%40nxp.com%7C5d668f64
>> d3a044abb11e08d778d92bef%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637110746452407756&amp;sdata=AHjvw91G8N7
>> Wuf%2BORB%2B5E7cxE5cciCpnEktIqkoFKMY%3D&amp;reserved=0
>>>
>>> Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
>>
>> I'm experiencing this issue since moving to zeus. Your fix in this
>> series works fine for me and I would really like to see this merged in zeus.
>>
>> Thanks,
>> Frieder
>>
>>> ---
>>>    scripts/lib/devtool/standard.py | 6 ++++--
>>>    1 file changed, 4 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
>>> index 8d9c1a3022..66bd1415c3 100644
>>> --- a/scripts/lib/devtool/standard.py
>>> +++ b/scripts/lib/devtool/standard.py
>>> @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
>>>                            '}\n')
>>>                if rd.getVarFlag('do_menuconfig','task'):
>>>                    f.write('\ndo_configure_append() {\n'
>>> -                '    cp ${B}/.config ${S}/.config.baseline\n'
>>> -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
>>> +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
>>> +                '        cp ${B}/.config ${S}/.config.baseline\n'
>>> +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
>>> +                '    fi\n'
>>>                    '}\n')
>>>                if initial_rev:
>>>                    f.write('\n# initial_rev: %s\n' % initial_rev)
>>>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2020-01-08  8:32     ` Schrempf Frieder
@ 2020-01-29  8:20       ` Schrempf Frieder
  2020-01-29 11:55         ` Richard Purdie
  0 siblings, 1 reply; 10+ messages in thread
From: Schrempf Frieder @ 2020-01-29  8:20 UTC (permalink / raw)
  To: Tom Hochstein, openembedded-core, akuster808, anuj.mittal,
	richard.purdie

On 08.01.20 09:32, Schrempf Frieder wrote:
> On 13.12.19 17:14, Tom Hochstein wrote:
>> I made a PR as well:
>>
>> https://github.com/openembedded/openembedded-core/pull/57
>>
>> Tom
> 
> I don't think PRs are accepted for oe-core. Your patches should be ok,
> if someone reviews and applies them.
> 
> Dear maintainers, could you consider to review/apply this fix for
> master/zeus? It fixes an annoying issue when working with devtool and
> u-boot.

Ping again.

Can someone please at least look at these patches or give any reason why 
no one cares about them?

Thanks!

> 
>>
>>> -----Original Message-----
>>> From: Schrempf Frieder <frieder.schrempf@kontron.de>
>>> Sent: Wednesday, December 4, 2019 10:44 AM
>>> To: Tom Hochstein <tom.hochstein@nxp.com>; openembedded-core@lists.openembedded.org
>>> Subject: Re: [OE-core] [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
>>>
>>> Hi,
>>>
>>> On 20.11.19 20:25, Tom Hochstein wrote:
>>>> u-boot.inc supports u-boot recipes with or without menuconfig [1].
>>>> However, running devtool on a u-boot recipe that does not support menuconfig
>>>> results in an error:
>>>>
>>>> cp: cannot stat '/home/r60874/upstream/fsl-xwayland/tmp/work/imx8mmevk-fsl-linux/u-boot-imx/2018.03-r0/u-boot-imx-
>>> 2018.03//.config': No such file or directory
>>>>
>>>> The problem is the devtool logic assumes that any recipe with a do_menuconfig task
>>>> will generate a .config in do_configure().
>>>>
>>>> Fix the problem by removing the assumption with a flag that the recipe can control,
>>>> like this:
>>>>
>>>> do_configure() {
>>>>        if [ menuconfig-supported ]; then
>>>>            ...
>>>>        else
>>>>            DEVTOOL_DISABLE_MENUCONFIG=true
>>>>        fi
>>>> }
>>>>
>>>> [1] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenembedded%2Fopenembedded-
>>> core%2Fcommit%2F11278e3b2c75be80645b9841763a97dbb35daadc&amp;data=02%7C01%7Ctom.hochstein%40nxp.com%7C5d668f64
>>> d3a044abb11e08d778d92bef%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637110746452407756&amp;sdata=AHjvw91G8N7
>>> Wuf%2BORB%2B5E7cxE5cciCpnEktIqkoFKMY%3D&amp;reserved=0
>>>>
>>>> Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
>>>
>>> I'm experiencing this issue since moving to zeus. Your fix in this
>>> series works fine for me and I would really like to see this merged in zeus.
>>>
>>> Thanks,
>>> Frieder
>>>
>>>> ---
>>>>     scripts/lib/devtool/standard.py | 6 ++++--
>>>>     1 file changed, 4 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
>>>> index 8d9c1a3022..66bd1415c3 100644
>>>> --- a/scripts/lib/devtool/standard.py
>>>> +++ b/scripts/lib/devtool/standard.py
>>>> @@ -940,8 +940,10 @@ def modify(args, config, basepath, workspace):
>>>>                             '}\n')
>>>>                 if rd.getVarFlag('do_menuconfig','task'):
>>>>                     f.write('\ndo_configure_append() {\n'
>>>> -                '    cp ${B}/.config ${S}/.config.baseline\n'
>>>> -                '    ln -sfT ${B}/.config ${S}/.config.new\n'
>>>> +                '    if [ ! ${DEVTOOL_DISABLE_MENUCONFIG} ]; then\n'
>>>> +                '        cp ${B}/.config ${S}/.config.baseline\n'
>>>> +                '        ln -sfT ${B}/.config ${S}/.config.new\n'
>>>> +                '    fi\n'
>>>>                     '}\n')
>>>>                 if initial_rev:
>>>>                     f.write('\n# initial_rev: %s\n' % initial_rev)
>>>>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2020-01-29  8:20       ` Schrempf Frieder
@ 2020-01-29 11:55         ` Richard Purdie
  2020-01-29 13:03           ` Schrempf Frieder
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2020-01-29 11:55 UTC (permalink / raw)
  To: Schrempf Frieder, Tom Hochstein, openembedded-core, akuster808,
	anuj.mittal

On Wed, 2020-01-29 at 08:20 +0000, Schrempf Frieder wrote:
> On 08.01.20 09:32, Schrempf Frieder wrote:
> > On 13.12.19 17:14, Tom Hochstein wrote:
> > > I made a PR as well:
> > > 
> > > https://github.com/openembedded/openembedded-core/pull/57
> > > 
> > > Tom
> > 
> > I don't think PRs are accepted for oe-core. Your patches should be
> > ok,
> > if someone reviews and applies them.
> > 
> > Dear maintainers, could you consider to review/apply this fix for
> > master/zeus? It fixes an annoying issue when working with devtool
> > and
> > u-boot.
> 
> Ping again.
> 
> Can someone please at least look at these patches or give any reason
> why no one cares about them?

Sorry, the project is struggling with failing automated tests and
struggling to find people able to review patches for some subject
areas.

I don't know devtool very well and its hard for me to say if this is a
good change or if there is some other way we should be fixing this.

Of particular concern is there is no automated testing in this area and
devtool has good tests in general.

Not good answers I know, sorry :(.

I'll add this to -next for wider testing and see if I can find someone
to review.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic
  2020-01-29 11:55         ` Richard Purdie
@ 2020-01-29 13:03           ` Schrempf Frieder
  0 siblings, 0 replies; 10+ messages in thread
From: Schrempf Frieder @ 2020-01-29 13:03 UTC (permalink / raw)
  To: Richard Purdie, Tom Hochstein, openembedded-core, akuster808,
	anuj.mittal

On 29.01.20 12:55, Richard Purdie wrote:
> On Wed, 2020-01-29 at 08:20 +0000, Schrempf Frieder wrote:
>> On 08.01.20 09:32, Schrempf Frieder wrote:
>>> On 13.12.19 17:14, Tom Hochstein wrote:
>>>> I made a PR as well:
>>>>
>>>> https://github.com/openembedded/openembedded-core/pull/57
>>>>
>>>> Tom
>>>
>>> I don't think PRs are accepted for oe-core. Your patches should be
>>> ok,
>>> if someone reviews and applies them.
>>>
>>> Dear maintainers, could you consider to review/apply this fix for
>>> master/zeus? It fixes an annoying issue when working with devtool
>>> and
>>> u-boot.
>>
>> Ping again.
>>
>> Can someone please at least look at these patches or give any reason
>> why no one cares about them?
> 
> Sorry, the project is struggling with failing automated tests and
> struggling to find people able to review patches for some subject
> areas.
> 
> I don't know devtool very well and its hard for me to say if this is a
> good change or if there is some other way we should be fixing this.
> 
> Of particular concern is there is no automated testing in this area and
> devtool has good tests in general.
> 
> Not good answers I know, sorry :(.

Thanks for replying and providing the background information.

> 
> I'll add this to -next for wider testing and see if I can find someone
> to review.

Ok, thanks!
I would help myself, if I had the time and knowledge to do so.

> 
> Cheers,
> 
> Richard
> 
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-01-30 13:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20 19:25 [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Tom Hochstein
2019-11-20 19:25 ` [PATCH 2/2] u-boot.inc: Fix devtool build u-boot for u-boot without menuconfig Tom Hochstein
2019-11-21 10:23 ` [PATCH 1/2] devtool/standard.py: Allow recipe to disable menuconfig logic Peter Kjellerstedt
2019-11-21 12:40   ` Tom Hochstein
2019-12-04 16:44 ` Schrempf Frieder
2019-12-13 16:14   ` Tom Hochstein
2020-01-08  8:32     ` Schrempf Frieder
2020-01-29  8:20       ` Schrempf Frieder
2020-01-29 11:55         ` Richard Purdie
2020-01-29 13:03           ` Schrempf Frieder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.