From 9480007ff988740595e2f1943450976135cdf221 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 10 Apr 2018 17:56:52 -0500 Subject: openpower/scripts: Check (with travis) that defconfigs are correct Signed-off-by: Stewart Smith --- .travis.yml | 1 + openpower/scripts/update-defconfigs.sh | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 openpower/scripts/update-defconfigs.sh 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 -- cgit v1.2.1