summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-04-03 14:40:24 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2020-04-05 18:52:17 +0200
commitb54760295e27abea8c6139245ff4412b75ca7f5f (patch)
tree60ccc260e0301a9410ab1bbd43387b932dd388c4 /scripts
parentfabf6aa8faea8666d3c8273db7c30ef3a0961502 (diff)
downloadDistroKit-b54760295e27abea8c6139245ff4412b75ca7f5f.tar.gz
DistroKit-b54760295e27abea8c6139245ff4412b75ca7f5f.tar.xz
platform-mips: add a script to update all configs
Add a script to make updating of barebox and kernel packages easier. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-diffs-mips.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/update-diffs-mips.sh b/scripts/update-diffs-mips.sh
new file mode 100755
index 0000000..b1bdde3
--- /dev/null
+++ b/scripts/update-diffs-mips.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ -z "$PTXDIST" ]; then
+ PTXDIST=ptxdist
+else
+ tput setaf 3 # yellow
+ echo Note: using PTXDIST=$PTXDIST
+ tput sgr 0 # back to normal
+fi
+
+PACKAGES="barebox-common barebox-ar9331 barebox-malta kernel kernel-ar9331 kernel-malta"
+for pkg in $PACKAGES; do
+ $PTXDIST --platformconfig="configs/platform-mips/platformconfig" oldconfig $pkg
+done