scripts: Add abi-dump-updater

The intent is to run this from inside an instance of the OpenBMC CI
docker container.

Change-Id: I02dd4e8b100d02f44ce540137decfb66f5481488
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/scripts/abi-dump-updater b/scripts/abi-dump-updater
new file mode 100755
index 0000000..59f841d
--- /dev/null
+++ b/scripts/abi-dump-updater
@@ -0,0 +1,18 @@
+#!/usr/bin/sh
+
+set -x
+
+set -eu
+
+UPDATE_BUILDDIR="$(mktemp -d)"
+
+trap "rm -rf $UPDATE_BUILDDIR" EXIT
+
+export CC=gcc
+export CXX=g++;
+
+[ $(uname -m) = 'x86_64' ]
+
+meson setup -Dabi=deprecated,stable "$UPDATE_BUILDDIR"
+meson compile -C "$UPDATE_BUILDDIR" abi-dump
+./scripts/abi-dump-formatter < "$UPDATE_BUILDDIR"/src/current.dump > abi/x86_64/gcc.dump