Skip to contentSkip to conversation

MAKEALL, buildman: run genboardscfg.py to make sure boards.cfg is new

PATCH New Masahiro Yamada 3 participants 6 messages Aug 22, 2014 – Aug 29, 2014

lore
Share & tools
lore
#0 lore raw

cover MAKEALL, buildman: run genboardscfg.py to make sure boards.cfg is new

This series depends on the feature introduced by this commit:
http://patchwork.ozlabs.org/patch/381622/

Masahiro Yamada (2):
MAKEALL: run genboardscfg.py all the time
buildman: run genboardscfg.py all the time

 MAKEALL                   | 11 ++++-------
 tools/buildman/control.py | 10 ++++------
 2 files changed, 8 insertions(+), 13 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 MAKEALL: run genboardscfg.py all the time

This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new.

---

 MAKEALL | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
MAKEALL +4 -7
index 2e826c1..4822054 100755
@@ -171,13 +171,10 @@ GNU_MAKE=$(scripts/show-gnu-make) || {
 # echo "Remaining arguments:"
 # for arg do echo '--> '"\`$arg'" ; done
 
-if [ ! -r boards.cfg ]; then
-	echo "Could not find boards.cfg"
-	tools/genboardscfg.py || {
-		echo "Failed to generate boards.cfg" >&2
-		exit 1
-	}
-fi
+tools/genboardscfg.py || {
+	echo "Failed to generate boards.cfg" >&2
+	exit 1
+}
 
 FILTER="\$1 !~ /^#/"
 [ "$opt_a" ] && FILTER="${FILTER} && $opt_a"
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 MAKEALL: run genboardscfg.py all the time

Quoted 6 lines · Masahiro Yamada

This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140829/2bfa5fb0/attachment.pgp>
#3 lore raw

PATCH 2/2 buildman: run genboardscfg.py all the time

In reply to Masahiro Yamada

This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new.

---

 tools/buildman/control.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
tools/buildman/control.py +4 -6
index d98e50a..68ea961 100644
@@ -120,12 +120,10 @@ def DoBuildman(options, args):
 
     # Work out what subset of the boards we are building
     board_file = os.path.join(options.git, 'boards.cfg')
-    if not os.path.exists(board_file):
-        print 'Could not find %s' % board_file
-        status = subprocess.call([os.path.join(options.git,
-                                               'tools/genboardscfg.py')])
-        if status != 0:
-            sys.exit("Failed to generate boards.cfg")
+    status = subprocess.call([os.path.join(options.git,
+                                           'tools/genboardscfg.py')])
+    if status != 0:
+        sys.exit("Failed to generate boards.cfg")
 
     boards = board.Boards()
     boards.ReadBoards(os.path.join(options.git, 'boards.cfg'))
Signature · 1 line
1.9.1
#5 lore raw

PATCH 2/2 buildman: run genboardscfg.py all the time

In reply to Masahiro Yamada
Quoted 7 lines · Masahiro Yamada

This commit makes sure boards.cfg is up to date before starting the build tests. tools/genboardscfg.py exits immediately printing "boards.cfg is up to date. Nothing to do." when boards.cfg is already new.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140829/d51cfee2/attachment.pgp>