From 6fa165975fcfc758243633559b0022f2d1f4acfe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 22 May 2008 00:03:36 +0000 Subject: 2008-05-21 Roland McGrath * scripts/soversions.awk: Grok ABI line. * Makeconfig ($(common-objpfx)soversions.mk): Likewise. Emit definition for abi-name variable. --- scripts/soversions.awk | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts') diff --git a/scripts/soversions.awk b/scripts/soversions.awk index 32ce076ba9..55577ccc7e 100644 --- a/scripts/soversions.awk +++ b/scripts/soversions.awk @@ -18,6 +18,16 @@ $2 ~ /WORDSIZE[3264]/ { next; } +$2 == "ABI" { + if ((config ~ thiscf) && !abiname) { + abiname = $3; + sub(/@CPU@/, cpu, abiname); + sub(/@VENDOR@/, vendor, abiname); + sub(/@OS@/, os, abiname); + } + next; +} + # Obey the first matching DEFAULT line. $2 == "DEFAULT" { $1 = $2 = ""; @@ -66,6 +76,9 @@ END { } } } + if (abiname) { + print "ABI", abiname + } for (c in lines) { print lines[c] } -- cgit 1.4.1