You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.4 KiB

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