diff mbox series

[1/3] scripts/boards.sh: Fix M3-W identifier

Message ID 20200615121935.108142-2-jacopo@jmondi.org (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series [1/3] scripts/boards.sh: Fix M3-W identifier | expand

Commit Message

Jacopo Mondi June 15, 2020, 12:19 p.m. UTC
The M3-W SoC has been renamed to r8a77960, adjust the board.sh script to
identify it correctly.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
 scripts/boards.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham June 22, 2020, 9:53 a.m. UTC | #1
Hi Jacopo,

On 15/06/2020 13:19, Jacopo Mondi wrote:
> The M3-W SoC has been renamed to r8a77960, adjust the board.sh script to
> identify it correctly.
> 

We probably don't need to keep backwards compatibility indeed ...

> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
>  scripts/boards.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/boards.sh b/scripts/boards.sh
> index 0ec2981..2069494 100644
> --- a/scripts/boards.sh
> +++ b/scripts/boards.sh
> @@ -13,7 +13,7 @@ case $info in
>          vins="0 1 2 3 4 5 6 7"
>          csis="20 40 41"
>          ;;
> -    "Renesas Salvator-X board based on r8a7796" | \
> +    "Renesas Salvator-X board based on r8a77960" | \
>          "Renesas Salvator-X 2nd version board based on r8a77965")

But I wonder if this script should use more 'wildcard' matching.
It does seem awkward to match generically in some cases though, so
nothing wrong with keeping things explicit for now.

Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>

But now I've written that I see these patches are already integrated ...
never mind.
--
Kieran


>          gen="gen3"
>          vins="0 1 2 3 4 5 6 7"
>
Niklas Söderlund June 22, 2020, 10:34 a.m. UTC | #2
Hi Kieran,

On 2020-06-22 10:53:12 +0100, Kieran Bingham wrote:
> Hi Jacopo,
> 
> On 15/06/2020 13:19, Jacopo Mondi wrote:
> > The M3-W SoC has been renamed to r8a77960, adjust the board.sh script to
> > identify it correctly.
> > 
> 
> We probably don't need to keep backwards compatibility indeed ...

If the cost is low, as in this case I think backwards compatibility is 
nice. More often then not do I bisect over large ranges and then it's 
nice that things like this "just work" ;-)

> 
> > Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> > ---
> >  scripts/boards.sh | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/scripts/boards.sh b/scripts/boards.sh
> > index 0ec2981..2069494 100644
> > --- a/scripts/boards.sh
> > +++ b/scripts/boards.sh
> > @@ -13,7 +13,7 @@ case $info in
> >          vins="0 1 2 3 4 5 6 7"
> >          csis="20 40 41"
> >          ;;
> > -    "Renesas Salvator-X board based on r8a7796" | \
> > +    "Renesas Salvator-X board based on r8a77960" | \
> >          "Renesas Salvator-X 2nd version board based on r8a77965")
> 
> But I wonder if this script should use more 'wildcard' matching.
> It does seem awkward to match generically in some cases though, so
> nothing wrong with keeping things explicit for now.
> 
> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
> 
> But now I've written that I see these patches are already integrated ...
> never mind.
> --
> Kieran
> 
> 
> >          gen="gen3"
> >          vins="0 1 2 3 4 5 6 7"
> > 
>
Kieran Bingham June 22, 2020, 10:45 a.m. UTC | #3
On 22/06/2020 11:34, Niklas Söderlund wrote:
> Hi Kieran,
> 
> On 2020-06-22 10:53:12 +0100, Kieran Bingham wrote:
>> Hi Jacopo,
>>
>> On 15/06/2020 13:19, Jacopo Mondi wrote:
>>> The M3-W SoC has been renamed to r8a77960, adjust the board.sh script to
>>> identify it correctly.
>>>
>>
>> We probably don't need to keep backwards compatibility indeed ...
> 
> If the cost is low, as in this case I think backwards compatibility is 
> nice. More often then not do I bisect over large ranges and then it's 
> nice that things like this "just work" ;-)

Ah yes, bisecting indeed would be useful here.


> 
>>
>>> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
>>> ---
>>>  scripts/boards.sh | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/scripts/boards.sh b/scripts/boards.sh
>>> index 0ec2981..2069494 100644
>>> --- a/scripts/boards.sh
>>> +++ b/scripts/boards.sh
>>> @@ -13,7 +13,7 @@ case $info in
>>>          vins="0 1 2 3 4 5 6 7"
>>>          csis="20 40 41"
>>>          ;;
>>> -    "Renesas Salvator-X board based on r8a7796" | \

So perhaps this line should be re-added, or the fields updated for
wildcards some how, or a better form of matching the target.

Things like the H3 could be tricky though where the ES1 and ES2
revisions (I think from what I recall) might have subtle differences.

I guess in that case it's harder to make a catch-all match, but that's
just a per-target thing to consider.

--
Kieran


>>> +    "Renesas Salvator-X board based on r8a77960" | \
>>>          "Renesas Salvator-X 2nd version board based on r8a77965")
>>
>> But I wonder if this script should use more 'wildcard' matching.
>> It does seem awkward to match generically in some cases though, so
>> nothing wrong with keeping things explicit for now.
>>
>> Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
>>
>> But now I've written that I see these patches are already integrated ...
>> never mind.
>> --
>> Kieran
>>
>>
>>>          gen="gen3"
>>>          vins="0 1 2 3 4 5 6 7"
>>>
>>
>
diff mbox series

Patch

diff --git a/scripts/boards.sh b/scripts/boards.sh
index 0ec2981..2069494 100644
--- a/scripts/boards.sh
+++ b/scripts/boards.sh
@@ -13,7 +13,7 @@  case $info in
         vins="0 1 2 3 4 5 6 7"
         csis="20 40 41"
         ;;
-    "Renesas Salvator-X board based on r8a7796" | \
+    "Renesas Salvator-X board based on r8a77960" | \
         "Renesas Salvator-X 2nd version board based on r8a77965")
         gen="gen3"
         vins="0 1 2 3 4 5 6 7"