xref: /openbmc/libpldm/scripts/abi-dump-updater (revision cd975641)
1*cd975641SAndrew Jeffery#!/usr/bin/sh
2*cd975641SAndrew Jeffery
3*cd975641SAndrew Jefferyset -x
4*cd975641SAndrew Jeffery
5*cd975641SAndrew Jefferyset -eu
6*cd975641SAndrew Jeffery
7*cd975641SAndrew JefferyUPDATE_BUILDDIR="$(mktemp -d)"
8*cd975641SAndrew Jeffery
9*cd975641SAndrew Jefferytrap "rm -rf $UPDATE_BUILDDIR" EXIT
10*cd975641SAndrew Jeffery
11*cd975641SAndrew Jefferyexport CC=gcc
12*cd975641SAndrew Jefferyexport CXX=g++;
13*cd975641SAndrew Jeffery
14*cd975641SAndrew Jeffery[ $(uname -m) = 'x86_64' ]
15*cd975641SAndrew Jeffery
16*cd975641SAndrew Jefferymeson setup -Dabi=deprecated,stable "$UPDATE_BUILDDIR"
17*cd975641SAndrew Jefferymeson compile -C "$UPDATE_BUILDDIR" abi-dump
18*cd975641SAndrew Jeffery./scripts/abi-dump-formatter < "$UPDATE_BUILDDIR"/src/current.dump > abi/x86_64/gcc.dump
19