From 48c8f8ddfc80551db7615e1eb3555c1dc3f6a657 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 18 Sep 2018 14:54:08 +0200 Subject: syscfg: Support ARC CPUs and simplify aliasing table. * src/mkheader.c (xmalloc): New. (xstrdup): Implement using xmalloc. (canon_host_triplet): Add supporr for arc CPU. Adjust alias table to also alias *-pc-*. Rename ibm to unknown. Add internal arg. Add unknown vendor hack. (main): New mode to just print the canonicalized form. * src/Makefile.am (lock_obj_pub): s/-(pc|ibm)-/-unknown/. Also rename files accordingly. -- config.sub does no real aliasing and thus we would need to add several vendors to the alising tables despite that this has no technical meanding. Instead we now replace the vendor with "unknown" for the 4-part-"triplets". This change will make maintenace easier. Signed-off-by: Werner Koch --- src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h (limited to 'src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h') diff --git a/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h b/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h new file mode 100644 index 0000000..b97273b --- /dev/null +++ b/src/syscfg/lock-obj-pub.i686-unknown-linux-gnu.h @@ -0,0 +1,23 @@ +## lock-obj-pub.i686-pc-linux-gnu.h +## File created by gen-posix-lock-obj - DO NOT EDIT +## To be included by mkheader into gpg-error.h + +typedef struct +{ + long _vers; + union { + volatile char _priv[24]; + long _x_align; + long *_xp_align; + } u; +} gpgrt_lock_t; + +#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0, \ + 0,0,0,0,0,0,0,0}}} +## +## Local Variables: +## mode: c +## buffer-read-only: t +## End: +## -- cgit v1.2.3