blob: 03387f8ee505d6d9c3d45d12a473ced0dc049dc0 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From: Mylene Josserand <mylene.josserand at bootlin.com>
2
3DesignWare ARC Processors are a family of 32-bit CPUs from Synopsys.
4This change allows us to build for and use libgpg-error on ARC cores.
5
6These values were obtained from a test application executed on ARC
7in simulation this way:
8
91. Instructions for cross-compilation used are here:
10 http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=README
11
122. Commands used on host:
13 # build="$(build-aux/config.guess)"
14 # ./configure --prefix=build/tmp-uclibc/sysroots/nsimhs/usr/ --host=arc-oe-linux-uclibc --build=$build
15 # cd src
16 # make gen-posix-lock-obj
17
183. Commands used on target:
19 # ./gen-posix-lock-obj
20
21Signed-off-by: Mylene Josserand <mylene.josserand at bootlin.com>
22Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
23---
24 src/Makefile.am | 1 +
25 .../lock-obj-pub.arc-unknown-linux-gnu.h | 23 +++++++++++++++++++
26 2 files changed, 24 insertions(+)
27 create mode 100644 src/syscfg/lock-obj-pub.arc-unknown-linux-gnu.h
28
29--- a/src/Makefile.am
30+++ b/src/Makefile.am
31@@ -40,6 +40,7 @@ lock_obj_pub = \
32 syscfg/lock-obj-pub.aarch64-unknown-linux-gnu_ilp32.h \
33 syscfg/lock-obj-pub.aarch64-apple-darwin.h \
34 syscfg/lock-obj-pub.alpha-unknown-linux-gnu.h \
35+ syscfg/lock-obj-pub.arc-unknown-linux-gnu.h \
36 syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h \
37 syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h \
38 syscfg/lock-obj-pub.arm-apple-darwin.h \
39--- /dev/null
40+++ b/src/syscfg/lock-obj-pub.arc-unknown-linux-gnu.h
41@@ -0,0 +1,23 @@
42+## lock-obj-pub.arc-oe-linux-uclibc.h
43+## File created by gen-posix-lock-obj - DO NOT EDIT
44+## To be included by mkheader into gpg-error.h
45+
46+typedef struct
47+{
48+ long _vers;
49+ union {
50+ volatile char _priv[24];
51+ long _x_align;
52+ long *_xp_align;
53+ } u;
54+} gpgrt_lock_t;
55+
56+#define GPGRT_LOCK_INITIALIZER {1,{{0,0,0,0,0,0,0,0, \
57+ 0,0,0,0,0,0,0,0, \
58+ 0,0,0,0,0,0,0,0}}}
59+##
60+## Local Variables:
61+## mode: c
62+## buffer-read-only: t
63+## End:
64+##