OpenSDE Packages Database (without history before r20070)
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.

106 lines
4.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bglibs/crc-gentab-native.patch.cross
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Author: Christian Wiese <morfoh@opensde.org>
  17. Origin: OpenSDE (http://opensde.org)
  18. Description: While cross-compiling we have to use a 'native' crc-gentab
  19. for being able to generate some source files.
  20. For this purpuse we introduce 'conf-crc-gentab-native' where
  21. the path to the natively built crc-gentab can be stored, to
  22. generate the 'crc-gentab-native' wrapper script which is used
  23. for generating the files.
  24. --- bglibs-1.102/Makefile.orig 2008-03-13 04:10:16.000000000 +0200
  25. +++ bglibs-1.102/Makefile 2008-03-13 04:16:24.000000000 +0200
  26. @@ -241,14 +241,21 @@
  27. ) >compile
  28. chmod 755 compile
  29. +crc-gentab-native: conf-crc-gentab-native
  30. + ( \
  31. + echo '#!/bin/sh';\
  32. + echo exec `head -n 1 conf-crc-gentab-native` '"$$@"' ; \
  33. + ) >crc-gentab-native
  34. + chmod 755 crc-gentab-native
  35. +
  36. crc-gentab: crc-gentab.o load libbg-msg.a libbg-iobuf.a libbg-sysdeps.a
  37. ./load crc-gentab libbg-msg.a libbg-iobuf.a libbg-sysdeps.a
  38. crc-gentab.o: compile crc-gentab.c sysdeps.h iobuf/iobuf.h iobuf/common.h iobuf/ibuf.h iobuf/common.h iobuf/obuf.h iobuf/common.h msg/msg.h
  39. ./compile crc-gentab.c
  40. -crc/crc16_arc_table.c: crc-gentab
  41. - ./crc-gentab crc16_arc 16 0x8005 reflected >$@
  42. +crc/crc16_arc_table.c: crc-gentab crc-gentab-native
  43. + ./crc-gentab-native crc16_arc 16 0x8005 reflected >$@
  44. crc/crc16_arc_table.lo: libcompile crc/crc16_arc_table.c crc/crc16_arc.h crc/gcrc.h sysdeps.h
  45. ./libcompile crc/crc16_arc_table.c
  46. @@ -256,8 +263,8 @@
  47. crc/crc16_arc_table.o: compile crc/crc16_arc_table.c crc/crc16_arc.h crc/gcrc.h sysdeps.h
  48. ./compile crc/crc16_arc_table.c
  49. -crc/crc16_ccitt_table.c: crc-gentab
  50. - ./crc-gentab crc16_ccitt 16 0x1021 normal >$@
  51. +crc/crc16_ccitt_table.c: crc-gentab crc-gentab-native
  52. + ./crc-gentab-native crc16_ccitt 16 0x1021 normal >$@
  53. crc/crc16_ccitt_table.lo: libcompile crc/crc16_ccitt_table.c crc/crc16_ccitt.h crc/gcrc.h sysdeps.h
  54. ./libcompile crc/crc16_ccitt_table.c
  55. @@ -265,8 +272,8 @@
  56. crc/crc16_ccitt_table.o: compile crc/crc16_ccitt_table.c crc/crc16_ccitt.h crc/gcrc.h sysdeps.h
  57. ./compile crc/crc16_ccitt_table.c
  58. -crc/crc16_xmodem_table.c: crc-gentab
  59. - ./crc-gentab crc16_xmodem 16 0x8408 reflected >$@
  60. +crc/crc16_xmodem_table.c: crc-gentab crc-gentab-native
  61. + ./crc-gentab-native crc16_xmodem 16 0x8408 reflected >$@
  62. crc/crc16_xmodem_table.lo: libcompile crc/crc16_xmodem_table.c crc/crc16_xmodem.h uint16.h sysdeps.h uintnn.h
  63. ./libcompile crc/crc16_xmodem_table.c
  64. @@ -274,8 +281,8 @@
  65. crc/crc16_xmodem_table.o: compile crc/crc16_xmodem_table.c crc/crc16_xmodem.h uint16.h sysdeps.h uintnn.h
  66. ./compile crc/crc16_xmodem_table.c
  67. -crc/crc32_table.c: crc-gentab
  68. - ./crc-gentab crc32 32 0x04C11DB7 reflected >$@
  69. +crc/crc32_table.c: crc-gentab crc-gentab-native
  70. + ./crc-gentab-native crc32 32 0x04C11DB7 reflected >$@
  71. crc/crc32_table.lo: libcompile crc/crc32_table.c crc/crc32.h crc/gcrc.h sysdeps.h uint32.h sysdeps.h uintnn.h
  72. ./libcompile crc/crc32_table.c
  73. @@ -283,8 +290,8 @@
  74. crc/crc32_table.o: compile crc/crc32_table.c crc/crc32.h crc/gcrc.h sysdeps.h uint32.h sysdeps.h uintnn.h
  75. ./compile crc/crc32_table.c
  76. -crc/crc32c_table.c: crc-gentab
  77. - ./crc-gentab crc32c 32 0x1EDC6F41 reflected >$@
  78. +crc/crc32c_table.c: crc-gentab crc-gentab-native
  79. + ./crc-gentab-native crc32c 32 0x1EDC6F41 reflected >$@
  80. crc/crc32c_table.lo: libcompile crc/crc32c_table.c crc/crc32c.h crc/gcrc.h sysdeps.h
  81. ./libcompile crc/crc32c_table.c
  82. @@ -292,8 +299,8 @@
  83. crc/crc32c_table.o: compile crc/crc32c_table.c crc/crc32c.h crc/gcrc.h sysdeps.h
  84. ./compile crc/crc32c_table.c
  85. -crc/crc64_table.c: crc-gentab
  86. - ./crc-gentab crc64 64 0x42F0E1EBA9EA3693 normal >$@
  87. +crc/crc64_table.c: crc-gentab crc-gentab-native
  88. + ./crc-gentab-native crc64 64 0x42F0E1EBA9EA3693 normal >$@
  89. crc/crc64_table.lo: libcompile crc/crc64_table.c crc/crc64.h crc/gcrc.h sysdeps.h
  90. ./libcompile crc/crc64_table.c