Skip to contentSkip to conversation

tools: genboardscfg: move buildman path to first

PATCH In review Peng Fan 4 participants 6 messages Jul 24, 2018 – Jul 30, 2018

lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 tools: genboardscfg: move buildman path to first

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Cc Masahiro Yamada <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
---
 tools/genboardscfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/genboardscfg.py +1 -1
index 0648472af0..e9bbd15e15 100755
@@ -24,7 +24,7 @@ import sys
 import tempfile
 import time
 
-sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'buildman'))
 import kconfiglib
 
 ### constant variables ###
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 tools: genboardscfg: move buildman path to first

2018-07-24 15:27 GMT+09:00 Peng Fan <[email protected]>:

Quoted 9 lines

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Cc Masahiro Yamada <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>

---

Quoted 23 lines
 tools/genboardscfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/genboardscfg.py +1 -2
index 0648472af0..e9bbd15e15 100755
@@ -24,7 +24,7 @@ import sys
 import tempfile
 import time
 
-sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'buildman'))
 import kconfiglib
 
 ### constant variables ###
--

2.14.1

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

PATCH 1/1 tools: genboardscfg: move buildman path to first

In reply to Peng Fan

Hi Peng,

Quoted 17 lines · Peng Fan

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Cc Masahiro Yamada <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
---
 tools/genboardscfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/genboardscfg.py +0 -0
index 0648472af0..e9bbd15e15 100755

tools/genboardscfg.py import sys · line 27

Quoted 5 lines
tools/genboardscfg.py +1 -1
@@ -24,7 +24,7 @@ import sys
 import tempfile
 import time
 
-sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'buildman'))

How come you insert this second in the list rather than first? If that is deliberate, can you please add a comment?

Quoted 6 lines
tools/genboardscfg.py +0 -1
 import kconfiglib
 
 ### constant variables ###
--

2.14.1

Regards,
Simon

author
#3 lore raw

PATCH 1/1 tools: genboardscfg: move buildman path to first

Hi Simon,

Quoted 32 lines

-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: 2018年7月25日 10:45
To: Peng Fan <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; dl-linux-imx <[email protected]>; Masahiro Yamada <[email protected]>; Tom Rini <[email protected]>
Subject: Re: [PATCH] tools: genboardscfg: move buildman path to first

Hi Peng,

Quoted 20 lines · Peng Fan

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Cc Masahiro Yamada <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
---
 tools/genboardscfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/genboardscfg.py index renamed from tools/genboardscfg.py +0 -0

0648472af0..e9bbd15e15 100755

tools/genboardscfg.py +0 -0
@@ -24,7 +24,7 @@ import sys
 import tempfile
 import time
 
Quoted 6 lines

tools/genboardscfg.py import sys · line 28

Quoted 3 lines
tools/genboardscfg.py +2 -1
-sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__),
+'buildman'))

How come you insert this second in the list rather than first? If that is deliberate, can you please add a comment?

Do you mean I need to use sys.path.insert(0, os.path.join(os.path.dirname(__file__), +'buildman'))?

I print my sys.path, the first is '', So I follow other code in uboot, and use '1' here.

Thanks,
Peng.

Quoted 10 lines
Quoted 7 lines
tools/genboardscfg.py +0 -1
 import kconfiglib
 
 ### constant variables ###
--

2.14.1

Regards,
Simon

#4 lore raw

PATCH 1/1 tools: genboardscfg: move buildman path to first

Hi Peng,

Quoted 41 lines · Peng Fan

Hi Simon,

Quoted 32 lines

-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: 2018年7月25日 10:45
To: Peng Fan <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; dl-linux-imx <[email protected]>; Masahiro Yamada <[email protected]>; Tom Rini <[email protected]>
Subject: Re: [PATCH] tools: genboardscfg: move buildman path to first

Hi Peng,

Quoted 20 lines · Peng Fan

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Cc Masahiro Yamada <[email protected]>
Cc Simon Glass <[email protected]>
Cc Tom Rini <[email protected]>
---
 tools/genboardscfg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/genboardscfg.py index renamed from tools/genboardscfg.py +0 -0

0648472af0..e9bbd15e15 100755

tools/genboardscfg.py +0 -0
@@ -24,7 +24,7 @@ import sys
 import tempfile
 import time
 
Quoted 6 lines

tools/genboardscfg.py import sys · line 28

Quoted 3 lines
tools/genboardscfg.py +2 -1
-sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__),
+'buildman'))

How come you insert this second in the list rather than first? If that is deliberate, can you please add a comment?

Quoted 3 lines

Do you mean I need to use sys.path.insert(0, os.path.join(os.path.dirname(__file__), +'buildman'))?

I print my sys.path, the first is '', So I follow other code in uboot, and use '1' here.

OK I see, fair enough.

#5 lore raw
In reply to Peng Fan
Quoted 10 lines · Peng Fan

To system which has kconfiglib installed, genboardscfg will use system kconfiglib, we need it use U-Boot owned version, so move the buildman path to first.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180730/0ee97bf5/attachment.sig>