summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-04-10 17:56:52 -0500
committerStewart Smith <stewart@linux.ibm.com>2018-04-10 22:18:26 -0500
commit9480007ff988740595e2f1943450976135cdf221 (patch)
treed0776175baa0570f030b404adf93fa3d8e53cdc7
parent9b1006d43737e31adc54df36340b817d5364d54f (diff)
downloadtalos-op-build-9480007ff988740595e2f1943450976135cdf221.tar.gz
talos-op-build-9480007ff988740595e2f1943450976135cdf221.zip
openpower/scripts: Check (with travis) that defconfigs are correct
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--.travis.yml1
-rw-r--r--openpower/scripts/update-defconfigs.sh18
2 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 88bc1800..405b2543 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,6 +27,7 @@ python:
install:
- "pip install -r doc/requirements.txt"
script:
+ - bash openpower/scripts/update-defconfigs.sh
- cd doc/; make latexpdf html
deploy:
diff --git a/openpower/scripts/update-defconfigs.sh b/openpower/scripts/update-defconfigs.sh
new file mode 100644
index 00000000..c82900c3
--- /dev/null
+++ b/openpower/scripts/update-defconfigs.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -x
+
+set -uo pipefail
+
+. op-build-env
+
+for c in openpower/configs/*defconfig; do
+ PLATFORM=`basename $c _defconfig`
+ PLATFORM_DEFCONFIG=`basename $c`
+ echo $PLATFORM
+ ODIR=`mktemp -d`
+ op-build O=$ODIR $PLATFORM_DEFCONFIG
+ op-build O=$ODIR olddefconfig
+ op-build O=$ODIR savedefconfig
+ rm -rf $ODIR
+done
+
+git diff --exit-code
OpenPOWER on IntegriCloud