MAKEALL: fix get_target_arch() to adjust to '-' in Status field
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Since the Kconfig conversion, boards.cfg scanned by MAKEALL is generated by tools/genboardscfg.py. Every board is supposed to have its own MAINTAINERS that contains maintainer and status information, but, in fact, MAINTAINERS is missing from some boards.
For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently, get_target_arch() returns a wrong field and MAKEALL fails to get a correct toolchain.
- Improve git description
---
MAKEALL | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
MAKEALL +1 -7
@@ -551,13 +551,7 @@ get_target_maintainers() { get_target_arch() { local target=$1 - # Automatic mode - local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg` - - if [ -z "${line}" ] ; then echo "" ; return ; fi - - set ${line} - echo "$2" + awk '$7 == "'$target'" { print $2 }' boards.cfg } list_target() {
Signature · 1 line
1.9.1
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Hi Masahiro,
Quoted 5 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.
Quoted 7 lines
For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Should we perhaps apply the patch to deprecate MAKEALL?
Regards,
Simon
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Quoted 14 lines · Simon Glass
Hi Masahiro,
Quoted 10 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Should we perhaps apply the patch to deprecate MAKEALL?
With the last patch I posted about what binaries to save all my usecases are covered now.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150401/76ab8dd7/attachment.sig>
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Hi Tom,
Quoted 16 lines · Tom Rini
Quoted 14 lines · Simon Glass
Hi Masahiro,
Quoted 10 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Should we perhaps apply the patch to deprecate MAKEALL?
With the last patch I posted about what binaries to save all my usecases are covered now.
OK, do you think we can wait until the merge window before doing these? I don't see any great hurry.
Regards,
Simon
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Hi Simon, Tom,
2015-04-06 3:31 GMT+09:00 Simon Glass <[email protected]>:
Quoted 22 lines
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 17 lines · Simon Glass
Hi Masahiro,
Quoted 12 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Should we perhaps apply the patch to deprecate MAKEALL?
With the last patch I posted about what binaries to save all my usecases are covered now.
OK, do you think we can wait until the merge window before doing these? I don't see any great hurry.
I know MAKEALL is deprecated, but I still use it with a local-hack to compare MD5SUM.
Buildman is a bigger program than MAKEALL and I have not been able to find time to
dig into it.
The above is my personal reason, but this patch is an apparent bug-fix and it is easy enough.
Why don't we fix it?
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
Hi Masahiro,
Quoted 39 lines · Masahiro Yamada
Hi Simon, Tom,
2015-04-06 3:31 GMT+09:00 Simon Glass <[email protected]>:
Quoted 22 lines
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 17 lines · Simon Glass
Hi Masahiro,
Quoted 12 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Should we perhaps apply the patch to deprecate MAKEALL?
With the last patch I posted about what binaries to save all my usecases are covered now.
OK, do you think we can wait until the merge window before doing these? I don't see any great hurry.
I know MAKEALL is deprecated, but I still use it with a local-hack to compare MD5SUM.
Quoted 7 lines
Buildman is a bigger program than MAKEALL and I have not been able to find time to
dig into it.The above is my personal reason, but this patch is an apparent bug-fix and it is easy enough.
Why don't we fix it?
I wan't suggesting we don't fix it! I agree you patch is a good thing
- it just jogged my memory about MAKEALL deprecation.
Regards,
Simon
PATCH v2 1/1 MAKEALL: fix get_target_arch() to adjust to '-' in Status field
In reply to Simon GlassQuoted 22 lines · Simon Glass
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 17 lines · Simon Glass
Hi Masahiro,
Quoted 12 lines · Masahiro Yamada
Since the
Kconfigconversion, boards.cfg scanned by MAKEALL is generated bytools/genboardscfg.py. Every board is supposed to have its ownMAINTAINERSthat contains maintainer and status information, but, in fact,MAINTAINERSis missing from some boards.For such boards, the first field, Status, is filled with '-'. It causes a problem for "set" command, which ignores '-' in its arguments. Consequently,
get_target_arch()returns a wrong field and MAKEALL fails to get a correct toolchain.Signed-off-by Masahiro Yamada <[email protected]>- Improve git description
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Should we perhaps apply the patch to deprecate MAKEALL?
With the last patch I posted about what binaries to save all my usecases are covered now.
OK, do you think we can wait until the merge window before doing these? I don't see any great hurry.
I can continue cursing and doing make O=temp by hand for a bit longer, sure ;)
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150406/2d92db53/attachment.sig>