summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-02-15 01:04:47 -0500
committerKhem Raj <raj.khem@gmail.com>2019-02-17 12:21:27 -0800
commit293fac92416b0bea72549159b2050ccde573d12d (patch)
treebab88bdc95b42da526684b9a8ad6d49e1b0c2543
parent2032f0f4d5aa0f443516d53452858469cffbbee7 (diff)
downloadmeta-openembedded-293fac92416b0bea72549159b2050ccde573d12d.tar.gz
hdf5: add version 1.8.19
License HDF5 is BSD-style. https://support.hdfgroup.org/products/licenses.html Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/licenses/HDF592
-rw-r--r--meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch71
-rw-r--r--meta-oe/recipes-support/hdf5/files/0002-Remove-suffix-shared-from-shared-library-name.patch50
-rw-r--r--meta-oe/recipes-support/hdf5/files/H5Tinit.c991
-rw-r--r--meta-oe/recipes-support/hdf5/files/H5lib_settings.c98
-rw-r--r--meta-oe/recipes-support/hdf5/hdf5_1.8.19.bb56
6 files changed, 1358 insertions, 0 deletions
diff --git a/meta-oe/licenses/HDF5 b/meta-oe/licenses/HDF5
new file mode 100644
index 000000000..10481dd10
--- /dev/null
+++ b/meta-oe/licenses/HDF5
@@ -0,0 +1,92 @@
1Copyright Notice and License Terms for
2HDF5 (Hierarchical Data Format 5) Software Library and Utilities
3-----------------------------------------------------------------------------
4
5HDF5 (Hierarchical Data Format 5) Software Library and Utilities
6Copyright (c) 2006-2018, The HDF Group.
7
8NCSA HDF5 (Hierarchical Data Format 5) Software Library and Utilities
9Copyright (c) 1998-2006, The Board of Trustees of the University of Illinois.
10
11All rights reserved.
12
13Redistribution and use in source and binary forms, with or without
14modification, are permitted for any purpose (including commercial purposes)
15provided that the following conditions are met:
16
171. Redistributions of source code must retain the above copyright notice,
18 this list of conditions, and the following disclaimer.
19
202. Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions, and the following disclaimer in the documentation
22 and/or materials provided with the distribution.
23
243. Neither the name of The HDF Group, the name of the University, nor the
25 name of any Contributor may be used to endorse or promote products derived
26 from this software without specific prior written permission from
27 The HDF Group, the University, or the Contributor, respectively.
28
29DISCLAIMER:
30THIS SOFTWARE IS PROVIDED BY THE HDF GROUP AND THE CONTRIBUTORS
31"AS IS" WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO EVENT SHALL THE HDF GROUP OR THE CONTRIBUTORS BE LIABLE FOR ANY DAMAGES SUFFERED BY THE USERS ARISING OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33You are under no obligation whatsoever to provide any bug fixes, patches, or upgrades to the features, functionality or performance of the source code ("Enhancements") to anyone; however, if you choose to make your Enhancements available either publicly, or directly to The HDF Group, without imposing a separate written license agreement for such Enhancements, then you hereby grant the following license: a non-exclusive, royalty-free perpetual license to install, use, modify, prepare derivative works, incorporate into other computer software, distribute, and sublicense such enhancements or derivative works thereof, in binary and source code form.
34
35-----------------------------------------------------------------------------
36-----------------------------------------------------------------------------
37
38Limited portions of HDF5 were developed by Lawrence Berkeley National
39Laboratory (LBNL). LBNL's Copyright Notice and Licensing Terms can be
40found here: COPYING_LBNL_HDF5 file in this directory or at
41http://support.hdfgroup.org/ftp/HDF5/releases/COPYING_LBNL_HDF5.
42
43-----------------------------------------------------------------------------
44-----------------------------------------------------------------------------
45
46Contributors: National Center for Supercomputing Applications (NCSA) at
47the University of Illinois, Fortner Software, Unidata Program Center (netCDF), The Independent JPEG Group (JPEG), Jean-loup Gailly and Mark Adler (gzip), and Digital Equipment Corporation (DEC).
48
49-----------------------------------------------------------------------------
50
51Portions of HDF5 were developed with support from the Lawrence Berkeley
52National Laboratory (LBNL) and the United States Department of Energy
53under Prime Contract No. DE-AC02-05CH11231.
54
55-----------------------------------------------------------------------------
56
57Portions of HDF5 were developed with support from the University of
58California, Lawrence Livermore National Laboratory (UC LLNL).
59The following statement applies to those portions of the product and must
60be retained in any redistribution of source code, binaries, documentation,
61and/or accompanying materials:
62
63 This work was partially produced at the University of California,
64 Lawrence Livermore National Laboratory (UC LLNL) under contract
65 no. W-7405-ENG-48 (Contract 48) between the U.S. Department of Energy
66 (DOE) and The Regents of the University of California (University)
67 for the operation of UC LLNL.
68
69 DISCLAIMER:
70 This work was prepared as an account of work sponsored by an agency of
71 the United States Government. Neither the United States Government nor
72 the University of California nor any of their employees, makes any
73 warranty, express or implied, or assumes any liability or responsibility
74 for the accuracy, completeness, or usefulness of any information,
75 apparatus, product, or process disclosed, or represents that its use
76 would not infringe privately- owned rights. Reference herein to any
77 specific commercial products, process, or service by trade name,
78 trademark, manufacturer, or otherwise, does not necessarily constitute
79 or imply its endorsement, recommendation, or favoring by the United
80 States Government or the University of California. The views and
81 opinions of authors expressed herein do not necessarily state or reflect
82 those of the United States Government or the University of California,
83 and shall not be used for advertising or product endorsement purposes.
84
85-----------------------------------------------------------------------------
86
87HDF5 is available with the SZIP compression library but SZIP is not part
88of HDF5 and has separate copyright and license terms. See SZIP Compression
89in HDF Products (www.hdfgroup.org/doc_resource/SZIP/) for further details.
90
91-----------------------------------------------------------------------------
92
diff --git a/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch b/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch
new file mode 100644
index 000000000..97f16bbc0
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch
@@ -0,0 +1,71 @@
1From 1b4fadf550587b46e405d7ccb777dcb00aa791a2 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 29 Jan 2019 15:39:15 +0800
4Subject: [PATCH 1/2] cross compiling support
5
6Do not generate config files at build time, use pre-generated
7files to instead.
8
9Upstream-Status: Inappropriate [oe specific]
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12---
13 CMakeLists.txt | 6 ++++++
14 src/CMakeLists.txt | 23 -----------------------
15 2 files changed, 6 insertions(+), 23 deletions(-)
16
17diff --git a/CMakeLists.txt b/CMakeLists.txt
18index 08a65c4..9af14d5 100644
19--- a/CMakeLists.txt
20+++ b/CMakeLists.txt
21@@ -817,4 +817,10 @@ endif ()
22 #-----------------------------------------------------------------------------
23 configure_file (${HDF_RESOURCES_DIR}/H5pubconf.h.in ${HDF5_BINARY_DIR}/H5pubconf.h @ONLY)
24
25+#-----------------------------------------------------------------------------
26+# Copy the pre-generated files in place
27+#-----------------------------------------------------------------------------
28+configure_file(H5Tinit.c H5Tinit.c COPYONLY)
29+configure_file(H5lib_settings.c H5lib_settings.c COPYONLY)
30+
31 include (CMakeInstallation.cmake)
32diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
33index d343208..d11525b 100644
34--- a/src/CMakeLists.txt
35+++ b/src/CMakeLists.txt
36@@ -613,32 +613,9 @@ set (H5_PRIVATE_HEADERS
37 #-----------------------------------------------------------------------------
38 add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c)
39 TARGET_C_PROPERTIES (H5detect STATIC " " " ")
40-if (MSVC OR MINGW)
41- target_link_libraries (H5detect "ws2_32.lib")
42-endif ()
43-
44-set (CMD $<TARGET_FILE:H5detect>)
45-add_custom_command (
46- OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c
47- COMMAND ${CMD}
48- ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c
49- DEPENDS H5detect
50-)
51
52 add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c)
53 TARGET_C_PROPERTIES (H5make_libsettings STATIC " " " ")
54-if (MSVC OR MINGW)
55- target_link_libraries (H5make_libsettings "ws2_32.lib")
56-endif ()
57-
58-set (CMD $<TARGET_FILE:H5make_libsettings>)
59-add_custom_command (
60- OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c
61- COMMAND ${CMD}
62- ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c
63- DEPENDS H5make_libsettings
64- WORKING_DIRECTORY ${HDF5_BINARY_DIR}
65-)
66
67 if (GENERATE_ERROR_HEADERS)
68 find_package (Perl)
69--
702.7.4
71
diff --git a/meta-oe/recipes-support/hdf5/files/0002-Remove-suffix-shared-from-shared-library-name.patch b/meta-oe/recipes-support/hdf5/files/0002-Remove-suffix-shared-from-shared-library-name.patch
new file mode 100644
index 000000000..6f893787f
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/0002-Remove-suffix-shared-from-shared-library-name.patch
@@ -0,0 +1,50 @@
1From f76141864edf7100c1c29bec159ea629077a7fa0 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 29 Jan 2019 11:13:42 +0800
4Subject: [PATCH 2/2] Remove suffix `-shared' from shared library name
5
6Upstream-Status: Inappropriate [OE specific]
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 CMakeLists.txt | 24 ++++++++++++------------
11 1 file changed, 12 insertions(+), 12 deletions(-)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index 9af14d5..05100e3 100644
15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -153,18 +153,18 @@ set (HDF5_F90_TEST_LIB_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-static")
18 set (HDF5_F90_C_TEST_LIB_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}-static")
19 set (HDF5_HL_F90_LIB_TARGET "${HDF5_HL_F90_LIB_CORENAME}-static")
20 set (HDF5_HL_F90_C_LIB_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}-static")
21-set (HDF5_LIBSH_TARGET "${HDF5_LIB_CORENAME}-shared")
22-set (HDF5_TEST_LIBSH_TARGET "${HDF5_TEST_LIB_CORENAME}-shared")
23-set (HDF5_CPP_LIBSH_TARGET "${HDF5_CPP_LIB_CORENAME}-shared")
24-set (HDF5_HL_LIBSH_TARGET "${HDF5_HL_LIB_CORENAME}-shared")
25-set (HDF5_HL_CPP_LIBSH_TARGET "${HDF5_HL_CPP_LIB_CORENAME}-shared")
26-set (HDF5_TOOLS_LIBSH_TARGET "${HDF5_TOOLS_LIB_CORENAME}-shared")
27-set (HDF5_F90_LIBSH_TARGET "${HDF5_F90_LIB_CORENAME}-shared")
28-set (HDF5_F90_C_LIBSH_TARGET "${HDF5_F90_C_LIB_CORENAME}-shared")
29-set (HDF5_F90_TEST_LIBSH_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-shared")
30-set (HDF5_F90_C_TEST_LIBSH_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}-shared")
31-set (HDF5_HL_F90_LIBSH_TARGET "${HDF5_HL_F90_LIB_CORENAME}-shared")
32-set (HDF5_HL_F90_C_LIBSH_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}-shared")
33+set (HDF5_LIBSH_TARGET "${HDF5_LIB_CORENAME}")
34+set (HDF5_TEST_LIBSH_TARGET "${HDF5_TEST_LIB_CORENAME}")
35+set (HDF5_CPP_LIBSH_TARGET "${HDF5_CPP_LIB_CORENAME}")
36+set (HDF5_HL_LIBSH_TARGET "${HDF5_HL_LIB_CORENAME}")
37+set (HDF5_HL_CPP_LIBSH_TARGET "${HDF5_HL_CPP_LIB_CORENAME}")
38+set (HDF5_TOOLS_LIBSH_TARGET "${HDF5_TOOLS_LIB_CORENAME}")
39+set (HDF5_F90_LIBSH_TARGET "${HDF5_F90_LIB_CORENAME}")
40+set (HDF5_F90_C_LIBSH_TARGET "${HDF5_F90_C_LIB_CORENAME}")
41+set (HDF5_F90_TEST_LIBSH_TARGET "${HDF5_F90_TEST_LIB_CORENAME}")
42+set (HDF5_F90_C_TEST_LIBSH_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}")
43+set (HDF5_HL_F90_LIBSH_TARGET "${HDF5_HL_F90_LIB_CORENAME}")
44+set (HDF5_HL_F90_C_LIBSH_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}")
45
46 #-----------------------------------------------------------------------------
47 # Define some CMake variables for use later in the project
48--
492.7.4
50
diff --git a/meta-oe/recipes-support/hdf5/files/H5Tinit.c b/meta-oe/recipes-support/hdf5/files/H5Tinit.c
new file mode 100644
index 000000000..85f79a6ae
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/H5Tinit.c
@@ -0,0 +1,991 @@
1/* Generated automatically by H5detect -- do not edit */
2
3
4
5/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6 * Copyright by The HDF Group. *
7 * Copyright by the Board of Trustees of the University of Illinois. *
8 * All rights reserved. *
9 * *
10 * This file is part of HDF5. The full HDF5 copyright notice, including *
11 * terms governing use, modification, and redistribution, is contained in *
12 * the COPYING file, which can be found at the root of the source code *
13 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
14 * If you do not have access to either file, you may request a copy from *
15 * help@hdfgroup.org. *
16 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17 *
18 * Created: Jan 29, 2019
19 * root <root@qemux86-64>
20 *
21 * Purpose: This machine-generated source code contains
22 * information about the various integer and
23 * floating point numeric formats found on this
24 * architecture. The parameters below should be
25 * checked carefully and errors reported to the
26 * HDF5 maintainer.
27 *
28 * Each of the numeric formats listed below are
29 * printed from most significant bit to least
30 * significant bit even though the actual bytes
31 * might be stored in a different order in
32 * memory. The integers above each binary byte
33 * indicate the relative order of the bytes in
34 * memory; little-endian machines have
35 * decreasing numbers while big-endian machines
36 * have increasing numbers.
37 *
38 * The fields of the numbers are printed as
39 * letters with `S' for the mantissa sign bit,
40 * `M' for the mantissa magnitude, and `E' for
41 * the exponent. The exponent has an associated
42 * bias which can be subtracted to find the
43 * true exponent. The radix point is assumed
44 * to be before the first `M' bit. Any bit
45 * of a floating-point value not falling into one
46 * of these categories is printed as a question
47 * mark. Bits of integer types are printed as
48 * `I' for 2's complement and `U' for magnitude.
49 *
50 * If the most significant bit of the normalized
51 * mantissa (always a `1' except for `0.0') is
52 * not stored then an `implicit=yes' appears
53 * under the field description. In thie case,
54 * the radix point is still assumed to be
55 * before the first `M' but after the implicit
56 * bit.
57 *
58 * Modifications:
59 *
60 * DO NOT MAKE MODIFICATIONS TO THIS FILE!
61 * It was generated by code in `H5detect.c'.
62 *
63 *-------------------------------------------------------------------------
64 */
65
66/****************/
67/* Module Setup */
68/****************/
69
70#define H5T_PACKAGE /*suppress error about including H5Tpkg.h*/
71
72
73/***********/
74/* Headers */
75/***********/
76#include "H5private.h" /* Generic Functions */
77#include "H5Eprivate.h" /* Error handling */
78#include "H5FLprivate.h" /* Free Lists */
79#include "H5Iprivate.h" /* IDs */
80#include "H5Tpkg.h" /* Datatypes */
81
82
83/****************/
84/* Local Macros */
85/****************/
86
87
88/******************/
89/* Local Typedefs */
90/******************/
91
92
93/********************/
94/* Package Typedefs */
95/********************/
96
97
98/********************/
99/* Local Prototypes */
100/********************/
101
102
103/********************/
104/* Public Variables */
105/********************/
106
107
108/*****************************/
109/* Library Private Variables */
110/*****************************/
111
112
113/*********************/
114/* Package Variables */
115/*********************/
116
117
118
119/*******************/
120/* Local Variables */
121/*******************/
122
123
124
125/*-------------------------------------------------------------------------
126 * Function: H5TN_init_interface
127 *
128 * Purpose: Initialize pre-defined native datatypes from code generated
129 * during the library configuration by H5detect.
130 *
131 * Return: Success: non-negative
132 * Failure: negative
133 *
134 * Programmer: Robb Matzke
135 * Wednesday, December 16, 1998
136 *
137 *-------------------------------------------------------------------------
138 */
139herr_t
140H5TN_init_interface(void)
141{
142 H5T_t *dt = NULL;
143 herr_t ret_value = SUCCEED;
144
145 FUNC_ENTER_NOAPI(FAIL)
146
147 /*
148 * 0
149 * IIIIIIII
150 * Alignment: none
151 */
152 if(NULL == (dt = H5T__alloc()))
153 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
154 dt->shared->state = H5T_STATE_IMMUTABLE;
155 dt->shared->type = H5T_INTEGER;
156 dt->shared->size = 1;
157 dt->shared->u.atomic.order = H5T_ORDER_LE;
158 dt->shared->u.atomic.offset = 0;
159 dt->shared->u.atomic.prec = 8;
160 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
161 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
162 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
163 if((H5T_NATIVE_SCHAR_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
164 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
165 H5T_NATIVE_SCHAR_ALIGN_g = 1;
166 H5T_NATIVE_SCHAR_COMP_ALIGN_g = 1;
167
168 /*
169 * 0
170 * UUUUUUUU
171 * Alignment: none
172 */
173 if(NULL == (dt = H5T__alloc()))
174 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
175 dt->shared->state = H5T_STATE_IMMUTABLE;
176 dt->shared->type = H5T_INTEGER;
177 dt->shared->size = 1;
178 dt->shared->u.atomic.order = H5T_ORDER_LE;
179 dt->shared->u.atomic.offset = 0;
180 dt->shared->u.atomic.prec = 8;
181 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
182 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
183 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
184 if((H5T_NATIVE_UCHAR_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
185 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
186 H5T_NATIVE_UCHAR_ALIGN_g = 1;
187
188 /*
189 * 1 0
190 * IIIIIIII IIIIIIII
191 * Alignment: none
192 */
193 if(NULL == (dt = H5T__alloc()))
194 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
195 dt->shared->state = H5T_STATE_IMMUTABLE;
196 dt->shared->type = H5T_INTEGER;
197 dt->shared->size = 2;
198 dt->shared->u.atomic.order = H5T_ORDER_LE;
199 dt->shared->u.atomic.offset = 0;
200 dt->shared->u.atomic.prec = 16;
201 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
202 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
203 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
204 if((H5T_NATIVE_SHORT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
205 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
206 H5T_NATIVE_SHORT_ALIGN_g = 1;
207 H5T_NATIVE_SHORT_COMP_ALIGN_g = 2;
208
209 /*
210 * 1 0
211 * UUUUUUUU UUUUUUUU
212 * Alignment: none
213 */
214 if(NULL == (dt = H5T__alloc()))
215 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
216 dt->shared->state = H5T_STATE_IMMUTABLE;
217 dt->shared->type = H5T_INTEGER;
218 dt->shared->size = 2;
219 dt->shared->u.atomic.order = H5T_ORDER_LE;
220 dt->shared->u.atomic.offset = 0;
221 dt->shared->u.atomic.prec = 16;
222 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
223 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
224 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
225 if((H5T_NATIVE_USHORT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
226 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
227 H5T_NATIVE_USHORT_ALIGN_g = 1;
228
229 /*
230 * 3 2 1 0
231 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
232 * Alignment: none
233 */
234 if(NULL == (dt = H5T__alloc()))
235 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
236 dt->shared->state = H5T_STATE_IMMUTABLE;
237 dt->shared->type = H5T_INTEGER;
238 dt->shared->size = 4;
239 dt->shared->u.atomic.order = H5T_ORDER_LE;
240 dt->shared->u.atomic.offset = 0;
241 dt->shared->u.atomic.prec = 32;
242 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
243 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
244 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
245 if((H5T_NATIVE_INT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
246 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
247 H5T_NATIVE_INT_ALIGN_g = 1;
248 H5T_NATIVE_INT_COMP_ALIGN_g = 4;
249
250 /*
251 * 3 2 1 0
252 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
253 * Alignment: none
254 */
255 if(NULL == (dt = H5T__alloc()))
256 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
257 dt->shared->state = H5T_STATE_IMMUTABLE;
258 dt->shared->type = H5T_INTEGER;
259 dt->shared->size = 4;
260 dt->shared->u.atomic.order = H5T_ORDER_LE;
261 dt->shared->u.atomic.offset = 0;
262 dt->shared->u.atomic.prec = 32;
263 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
264 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
265 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
266 if((H5T_NATIVE_UINT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
267 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
268 H5T_NATIVE_UINT_ALIGN_g = 1;
269
270 /*
271 * 7 6 5 4
272 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
273 * 3 2 1 0
274 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
275 * Alignment: none
276 */
277 if(NULL == (dt = H5T__alloc()))
278 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
279 dt->shared->state = H5T_STATE_IMMUTABLE;
280 dt->shared->type = H5T_INTEGER;
281 dt->shared->size = 8;
282 dt->shared->u.atomic.order = H5T_ORDER_LE;
283 dt->shared->u.atomic.offset = 0;
284 dt->shared->u.atomic.prec = 64;
285 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
286 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
287 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
288 if((H5T_NATIVE_LONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
289 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
290 H5T_NATIVE_LONG_ALIGN_g = 1;
291 H5T_NATIVE_LONG_COMP_ALIGN_g = 8;
292
293 /*
294 * 7 6 5 4
295 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
296 * 3 2 1 0
297 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
298 * Alignment: none
299 */
300 if(NULL == (dt = H5T__alloc()))
301 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
302 dt->shared->state = H5T_STATE_IMMUTABLE;
303 dt->shared->type = H5T_INTEGER;
304 dt->shared->size = 8;
305 dt->shared->u.atomic.order = H5T_ORDER_LE;
306 dt->shared->u.atomic.offset = 0;
307 dt->shared->u.atomic.prec = 64;
308 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
309 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
310 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
311 if((H5T_NATIVE_ULONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
312 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
313 H5T_NATIVE_ULONG_ALIGN_g = 1;
314
315 /*
316 * 0
317 * IIIIIIII
318 * Alignment: none
319 */
320 if(NULL == (dt = H5T__alloc()))
321 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
322 dt->shared->state = H5T_STATE_IMMUTABLE;
323 dt->shared->type = H5T_INTEGER;
324 dt->shared->size = 1;
325 dt->shared->u.atomic.order = H5T_ORDER_LE;
326 dt->shared->u.atomic.offset = 0;
327 dt->shared->u.atomic.prec = 8;
328 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
329 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
330 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
331 if((H5T_NATIVE_INT8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
332 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
333 H5T_NATIVE_INT8_ALIGN_g = 1;
334
335 /*
336 * 0
337 * UUUUUUUU
338 * Alignment: none
339 */
340 if(NULL == (dt = H5T__alloc()))
341 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
342 dt->shared->state = H5T_STATE_IMMUTABLE;
343 dt->shared->type = H5T_INTEGER;
344 dt->shared->size = 1;
345 dt->shared->u.atomic.order = H5T_ORDER_LE;
346 dt->shared->u.atomic.offset = 0;
347 dt->shared->u.atomic.prec = 8;
348 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
349 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
350 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
351 if((H5T_NATIVE_UINT8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
352 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
353 H5T_NATIVE_UINT8_ALIGN_g = 1;
354
355 /*
356 * 0
357 * IIIIIIII
358 * Alignment: none
359 */
360 if(NULL == (dt = H5T__alloc()))
361 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
362 dt->shared->state = H5T_STATE_IMMUTABLE;
363 dt->shared->type = H5T_INTEGER;
364 dt->shared->size = 1;
365 dt->shared->u.atomic.order = H5T_ORDER_LE;
366 dt->shared->u.atomic.offset = 0;
367 dt->shared->u.atomic.prec = 8;
368 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
369 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
370 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
371 if((H5T_NATIVE_INT_LEAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
372 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
373 H5T_NATIVE_INT_LEAST8_ALIGN_g = 1;
374
375 /*
376 * 0
377 * UUUUUUUU
378 * Alignment: none
379 */
380 if(NULL == (dt = H5T__alloc()))
381 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
382 dt->shared->state = H5T_STATE_IMMUTABLE;
383 dt->shared->type = H5T_INTEGER;
384 dt->shared->size = 1;
385 dt->shared->u.atomic.order = H5T_ORDER_LE;
386 dt->shared->u.atomic.offset = 0;
387 dt->shared->u.atomic.prec = 8;
388 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
389 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
390 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
391 if((H5T_NATIVE_UINT_LEAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
392 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
393 H5T_NATIVE_UINT_LEAST8_ALIGN_g = 1;
394
395 /*
396 * 0
397 * IIIIIIII
398 * Alignment: none
399 */
400 if(NULL == (dt = H5T__alloc()))
401 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
402 dt->shared->state = H5T_STATE_IMMUTABLE;
403 dt->shared->type = H5T_INTEGER;
404 dt->shared->size = 1;
405 dt->shared->u.atomic.order = H5T_ORDER_LE;
406 dt->shared->u.atomic.offset = 0;
407 dt->shared->u.atomic.prec = 8;
408 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
409 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
410 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
411 if((H5T_NATIVE_INT_FAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
412 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
413 H5T_NATIVE_INT_FAST8_ALIGN_g = 1;
414
415 /*
416 * 0
417 * UUUUUUUU
418 * Alignment: none
419 */
420 if(NULL == (dt = H5T__alloc()))
421 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
422 dt->shared->state = H5T_STATE_IMMUTABLE;
423 dt->shared->type = H5T_INTEGER;
424 dt->shared->size = 1;
425 dt->shared->u.atomic.order = H5T_ORDER_LE;
426 dt->shared->u.atomic.offset = 0;
427 dt->shared->u.atomic.prec = 8;
428 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
429 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
430 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
431 if((H5T_NATIVE_UINT_FAST8_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
432 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
433 H5T_NATIVE_UINT_FAST8_ALIGN_g = 1;
434
435 /*
436 * 1 0
437 * IIIIIIII IIIIIIII
438 * Alignment: none
439 */
440 if(NULL == (dt = H5T__alloc()))
441 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
442 dt->shared->state = H5T_STATE_IMMUTABLE;
443 dt->shared->type = H5T_INTEGER;
444 dt->shared->size = 2;
445 dt->shared->u.atomic.order = H5T_ORDER_LE;
446 dt->shared->u.atomic.offset = 0;
447 dt->shared->u.atomic.prec = 16;
448 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
449 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
450 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
451 if((H5T_NATIVE_INT16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
452 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
453 H5T_NATIVE_INT16_ALIGN_g = 1;
454
455 /*
456 * 1 0
457 * UUUUUUUU UUUUUUUU
458 * Alignment: none
459 */
460 if(NULL == (dt = H5T__alloc()))
461 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
462 dt->shared->state = H5T_STATE_IMMUTABLE;
463 dt->shared->type = H5T_INTEGER;
464 dt->shared->size = 2;
465 dt->shared->u.atomic.order = H5T_ORDER_LE;
466 dt->shared->u.atomic.offset = 0;
467 dt->shared->u.atomic.prec = 16;
468 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
469 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
470 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
471 if((H5T_NATIVE_UINT16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
472 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
473 H5T_NATIVE_UINT16_ALIGN_g = 1;
474
475 /*
476 * 1 0
477 * IIIIIIII IIIIIIII
478 * Alignment: none
479 */
480 if(NULL == (dt = H5T__alloc()))
481 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
482 dt->shared->state = H5T_STATE_IMMUTABLE;
483 dt->shared->type = H5T_INTEGER;
484 dt->shared->size = 2;
485 dt->shared->u.atomic.order = H5T_ORDER_LE;
486 dt->shared->u.atomic.offset = 0;
487 dt->shared->u.atomic.prec = 16;
488 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
489 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
490 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
491 if((H5T_NATIVE_INT_LEAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
492 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
493 H5T_NATIVE_INT_LEAST16_ALIGN_g = 1;
494
495 /*
496 * 1 0
497 * UUUUUUUU UUUUUUUU
498 * Alignment: none
499 */
500 if(NULL == (dt = H5T__alloc()))
501 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
502 dt->shared->state = H5T_STATE_IMMUTABLE;
503 dt->shared->type = H5T_INTEGER;
504 dt->shared->size = 2;
505 dt->shared->u.atomic.order = H5T_ORDER_LE;
506 dt->shared->u.atomic.offset = 0;
507 dt->shared->u.atomic.prec = 16;
508 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
509 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
510 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
511 if((H5T_NATIVE_UINT_LEAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
512 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
513 H5T_NATIVE_UINT_LEAST16_ALIGN_g = 1;
514
515 /*
516 * 7 6 5 4
517 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
518 * 3 2 1 0
519 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
520 * Alignment: none
521 */
522 if(NULL == (dt = H5T__alloc()))
523 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
524 dt->shared->state = H5T_STATE_IMMUTABLE;
525 dt->shared->type = H5T_INTEGER;
526 dt->shared->size = 8;
527 dt->shared->u.atomic.order = H5T_ORDER_LE;
528 dt->shared->u.atomic.offset = 0;
529 dt->shared->u.atomic.prec = 64;
530 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
531 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
532 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
533 if((H5T_NATIVE_INT_FAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
534 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
535 H5T_NATIVE_INT_FAST16_ALIGN_g = 1;
536
537 /*
538 * 7 6 5 4
539 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
540 * 3 2 1 0
541 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
542 * Alignment: none
543 */
544 if(NULL == (dt = H5T__alloc()))
545 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
546 dt->shared->state = H5T_STATE_IMMUTABLE;
547 dt->shared->type = H5T_INTEGER;
548 dt->shared->size = 8;
549 dt->shared->u.atomic.order = H5T_ORDER_LE;
550 dt->shared->u.atomic.offset = 0;
551 dt->shared->u.atomic.prec = 64;
552 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
553 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
554 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
555 if((H5T_NATIVE_UINT_FAST16_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
556 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
557 H5T_NATIVE_UINT_FAST16_ALIGN_g = 1;
558
559 /*
560 * 3 2 1 0
561 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
562 * Alignment: none
563 */
564 if(NULL == (dt = H5T__alloc()))
565 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
566 dt->shared->state = H5T_STATE_IMMUTABLE;
567 dt->shared->type = H5T_INTEGER;
568 dt->shared->size = 4;
569 dt->shared->u.atomic.order = H5T_ORDER_LE;
570 dt->shared->u.atomic.offset = 0;
571 dt->shared->u.atomic.prec = 32;
572 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
573 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
574 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
575 if((H5T_NATIVE_INT32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
576 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
577 H5T_NATIVE_INT32_ALIGN_g = 1;
578
579 /*
580 * 3 2 1 0
581 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
582 * Alignment: none
583 */
584 if(NULL == (dt = H5T__alloc()))
585 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
586 dt->shared->state = H5T_STATE_IMMUTABLE;
587 dt->shared->type = H5T_INTEGER;
588 dt->shared->size = 4;
589 dt->shared->u.atomic.order = H5T_ORDER_LE;
590 dt->shared->u.atomic.offset = 0;
591 dt->shared->u.atomic.prec = 32;
592 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
593 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
594 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
595 if((H5T_NATIVE_UINT32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
596 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
597 H5T_NATIVE_UINT32_ALIGN_g = 1;
598
599 /*
600 * 3 2 1 0
601 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
602 * Alignment: none
603 */
604 if(NULL == (dt = H5T__alloc()))
605 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
606 dt->shared->state = H5T_STATE_IMMUTABLE;
607 dt->shared->type = H5T_INTEGER;
608 dt->shared->size = 4;
609 dt->shared->u.atomic.order = H5T_ORDER_LE;
610 dt->shared->u.atomic.offset = 0;
611 dt->shared->u.atomic.prec = 32;
612 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
613 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
614 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
615 if((H5T_NATIVE_INT_LEAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
616 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
617 H5T_NATIVE_INT_LEAST32_ALIGN_g = 1;
618
619 /*
620 * 3 2 1 0
621 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
622 * Alignment: none
623 */
624 if(NULL == (dt = H5T__alloc()))
625 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
626 dt->shared->state = H5T_STATE_IMMUTABLE;
627 dt->shared->type = H5T_INTEGER;
628 dt->shared->size = 4;
629 dt->shared->u.atomic.order = H5T_ORDER_LE;
630 dt->shared->u.atomic.offset = 0;
631 dt->shared->u.atomic.prec = 32;
632 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
633 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
634 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
635 if((H5T_NATIVE_UINT_LEAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
636 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
637 H5T_NATIVE_UINT_LEAST32_ALIGN_g = 1;
638
639 /*
640 * 7 6 5 4
641 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
642 * 3 2 1 0
643 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
644 * Alignment: none
645 */
646 if(NULL == (dt = H5T__alloc()))
647 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
648 dt->shared->state = H5T_STATE_IMMUTABLE;
649 dt->shared->type = H5T_INTEGER;
650 dt->shared->size = 8;
651 dt->shared->u.atomic.order = H5T_ORDER_LE;
652 dt->shared->u.atomic.offset = 0;
653 dt->shared->u.atomic.prec = 64;
654 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
655 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
656 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
657 if((H5T_NATIVE_INT_FAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
658 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
659 H5T_NATIVE_INT_FAST32_ALIGN_g = 1;
660
661 /*
662 * 7 6 5 4
663 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
664 * 3 2 1 0
665 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
666 * Alignment: none
667 */
668 if(NULL == (dt = H5T__alloc()))
669 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
670 dt->shared->state = H5T_STATE_IMMUTABLE;
671 dt->shared->type = H5T_INTEGER;
672 dt->shared->size = 8;
673 dt->shared->u.atomic.order = H5T_ORDER_LE;
674 dt->shared->u.atomic.offset = 0;
675 dt->shared->u.atomic.prec = 64;
676 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
677 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
678 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
679 if((H5T_NATIVE_UINT_FAST32_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
680 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
681 H5T_NATIVE_UINT_FAST32_ALIGN_g = 1;
682
683 /*
684 * 7 6 5 4
685 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
686 * 3 2 1 0
687 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
688 * Alignment: none
689 */
690 if(NULL == (dt = H5T__alloc()))
691 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
692 dt->shared->state = H5T_STATE_IMMUTABLE;
693 dt->shared->type = H5T_INTEGER;
694 dt->shared->size = 8;
695 dt->shared->u.atomic.order = H5T_ORDER_LE;
696 dt->shared->u.atomic.offset = 0;
697 dt->shared->u.atomic.prec = 64;
698 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
699 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
700 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
701 if((H5T_NATIVE_INT64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
702 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
703 H5T_NATIVE_INT64_ALIGN_g = 1;
704
705 /*
706 * 7 6 5 4
707 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
708 * 3 2 1 0
709 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
710 * Alignment: none
711 */
712 if(NULL == (dt = H5T__alloc()))
713 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
714 dt->shared->state = H5T_STATE_IMMUTABLE;
715 dt->shared->type = H5T_INTEGER;
716 dt->shared->size = 8;
717 dt->shared->u.atomic.order = H5T_ORDER_LE;
718 dt->shared->u.atomic.offset = 0;
719 dt->shared->u.atomic.prec = 64;
720 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
721 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
722 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
723 if((H5T_NATIVE_UINT64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
724 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
725 H5T_NATIVE_UINT64_ALIGN_g = 1;
726
727 /*
728 * 7 6 5 4
729 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
730 * 3 2 1 0
731 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
732 * Alignment: none
733 */
734 if(NULL == (dt = H5T__alloc()))
735 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
736 dt->shared->state = H5T_STATE_IMMUTABLE;
737 dt->shared->type = H5T_INTEGER;
738 dt->shared->size = 8;
739 dt->shared->u.atomic.order = H5T_ORDER_LE;
740 dt->shared->u.atomic.offset = 0;
741 dt->shared->u.atomic.prec = 64;
742 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
743 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
744 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
745 if((H5T_NATIVE_INT_LEAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
746 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
747 H5T_NATIVE_INT_LEAST64_ALIGN_g = 1;
748
749 /*
750 * 7 6 5 4
751 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
752 * 3 2 1 0
753 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
754 * Alignment: none
755 */
756 if(NULL == (dt = H5T__alloc()))
757 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
758 dt->shared->state = H5T_STATE_IMMUTABLE;
759 dt->shared->type = H5T_INTEGER;
760 dt->shared->size = 8;
761 dt->shared->u.atomic.order = H5T_ORDER_LE;
762 dt->shared->u.atomic.offset = 0;
763 dt->shared->u.atomic.prec = 64;
764 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
765 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
766 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
767 if((H5T_NATIVE_UINT_LEAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
768 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
769 H5T_NATIVE_UINT_LEAST64_ALIGN_g = 1;
770
771 /*
772 * 7 6 5 4
773 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
774 * 3 2 1 0
775 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
776 * Alignment: none
777 */
778 if(NULL == (dt = H5T__alloc()))
779 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
780 dt->shared->state = H5T_STATE_IMMUTABLE;
781 dt->shared->type = H5T_INTEGER;
782 dt->shared->size = 8;
783 dt->shared->u.atomic.order = H5T_ORDER_LE;
784 dt->shared->u.atomic.offset = 0;
785 dt->shared->u.atomic.prec = 64;
786 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
787 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
788 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
789 if((H5T_NATIVE_INT_FAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
790 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
791 H5T_NATIVE_INT_FAST64_ALIGN_g = 1;
792
793 /*
794 * 7 6 5 4
795 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
796 * 3 2 1 0
797 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
798 * Alignment: none
799 */
800 if(NULL == (dt = H5T__alloc()))
801 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
802 dt->shared->state = H5T_STATE_IMMUTABLE;
803 dt->shared->type = H5T_INTEGER;
804 dt->shared->size = 8;
805 dt->shared->u.atomic.order = H5T_ORDER_LE;
806 dt->shared->u.atomic.offset = 0;
807 dt->shared->u.atomic.prec = 64;
808 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
809 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
810 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
811 if((H5T_NATIVE_UINT_FAST64_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
812 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
813 H5T_NATIVE_UINT_FAST64_ALIGN_g = 1;
814
815 /*
816 * 7 6 5 4
817 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
818 * 3 2 1 0
819 * IIIIIIII IIIIIIII IIIIIIII IIIIIIII
820 * Alignment: none
821 */
822 if(NULL == (dt = H5T__alloc()))
823 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
824 dt->shared->state = H5T_STATE_IMMUTABLE;
825 dt->shared->type = H5T_INTEGER;
826 dt->shared->size = 8;
827 dt->shared->u.atomic.order = H5T_ORDER_LE;
828 dt->shared->u.atomic.offset = 0;
829 dt->shared->u.atomic.prec = 64;
830 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
831 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
832 dt->shared->u.atomic.u.i.sign = H5T_SGN_2;
833 if((H5T_NATIVE_LLONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
834 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
835 H5T_NATIVE_LLONG_ALIGN_g = 1;
836 H5T_NATIVE_LLONG_COMP_ALIGN_g = 8;
837
838 /*
839 * 7 6 5 4
840 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
841 * 3 2 1 0
842 * UUUUUUUU UUUUUUUU UUUUUUUU UUUUUUUU
843 * Alignment: none
844 */
845 if(NULL == (dt = H5T__alloc()))
846 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
847 dt->shared->state = H5T_STATE_IMMUTABLE;
848 dt->shared->type = H5T_INTEGER;
849 dt->shared->size = 8;
850 dt->shared->u.atomic.order = H5T_ORDER_LE;
851 dt->shared->u.atomic.offset = 0;
852 dt->shared->u.atomic.prec = 64;
853 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
854 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
855 dt->shared->u.atomic.u.i.sign = H5T_SGN_NONE;
856 if((H5T_NATIVE_ULLONG_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
857 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
858 H5T_NATIVE_ULLONG_ALIGN_g = 1;
859
860 /*
861 * 3 2 1 0
862 * SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM
863 * Implicit bit? yes
864 * Alignment: none
865 */
866 if(NULL == (dt = H5T__alloc()))
867 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
868 dt->shared->state = H5T_STATE_IMMUTABLE;
869 dt->shared->type = H5T_FLOAT;
870 dt->shared->size = 4;
871 dt->shared->u.atomic.order = H5T_ORDER_LE;
872 dt->shared->u.atomic.offset = 0;
873 dt->shared->u.atomic.prec = 32;
874 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
875 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
876 dt->shared->u.atomic.u.f.sign = 31;
877 dt->shared->u.atomic.u.f.epos = 23;
878 dt->shared->u.atomic.u.f.esize = 8;
879 dt->shared->u.atomic.u.f.ebias = 0x0000007f;
880 dt->shared->u.atomic.u.f.mpos = 0;
881 dt->shared->u.atomic.u.f.msize = 23;
882 dt->shared->u.atomic.u.f.norm = H5T_NORM_IMPLIED;
883 dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO;
884 if((H5T_NATIVE_FLOAT_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
885 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
886 H5T_NATIVE_FLOAT_ALIGN_g = 1;
887 H5T_NATIVE_FLOAT_COMP_ALIGN_g = 4;
888
889 /*
890 * 7 6 5 4
891 * SEEEEEEE EEEEMMMM MMMMMMMM MMMMMMMM
892 * 3 2 1 0
893 * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM
894 * Implicit bit? yes
895 * Alignment: none
896 */
897 if(NULL == (dt = H5T__alloc()))
898 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
899 dt->shared->state = H5T_STATE_IMMUTABLE;
900 dt->shared->type = H5T_FLOAT;
901 dt->shared->size = 8;
902 dt->shared->u.atomic.order = H5T_ORDER_LE;
903 dt->shared->u.atomic.offset = 0;
904 dt->shared->u.atomic.prec = 64;
905 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
906 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
907 dt->shared->u.atomic.u.f.sign = 63;
908 dt->shared->u.atomic.u.f.epos = 52;
909 dt->shared->u.atomic.u.f.esize = 11;
910 dt->shared->u.atomic.u.f.ebias = 0x000003ff;
911 dt->shared->u.atomic.u.f.mpos = 0;
912 dt->shared->u.atomic.u.f.msize = 52;
913 dt->shared->u.atomic.u.f.norm = H5T_NORM_IMPLIED;
914 dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO;
915 if((H5T_NATIVE_DOUBLE_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
916 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
917 H5T_NATIVE_DOUBLE_ALIGN_g = 1;
918 H5T_NATIVE_DOUBLE_COMP_ALIGN_g = 8;
919
920 /*
921 * 15 14 13 12
922 * ???????? ???????? ???????? ????????
923 * 11 10 9 8
924 * ???????? ???????? SEEEEEEE EEEEEEEE
925 * 7 6 5 4
926 * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM
927 * 3 2 1 0
928 * MMMMMMMM MMMMMMMM MMMMMMMM MMMMMMMM
929 * Implicit bit? no
930 * Alignment: none
931 */
932 if(NULL == (dt = H5T__alloc()))
933 HGOTO_ERROR(H5E_DATATYPE, H5E_NOSPACE, FAIL, "datatype allocation failed")
934 dt->shared->state = H5T_STATE_IMMUTABLE;
935 dt->shared->type = H5T_FLOAT;
936 dt->shared->size = 16;
937 dt->shared->u.atomic.order = H5T_ORDER_LE;
938 dt->shared->u.atomic.offset = 0;
939 dt->shared->u.atomic.prec = 80;
940 dt->shared->u.atomic.lsb_pad = H5T_PAD_ZERO;
941 dt->shared->u.atomic.msb_pad = H5T_PAD_ZERO;
942 dt->shared->u.atomic.u.f.sign = 79;
943 dt->shared->u.atomic.u.f.epos = 64;
944 dt->shared->u.atomic.u.f.esize = 15;
945 dt->shared->u.atomic.u.f.ebias = 0x00003fff;
946 dt->shared->u.atomic.u.f.mpos = 0;
947 dt->shared->u.atomic.u.f.msize = 64;
948 dt->shared->u.atomic.u.f.norm = H5T_NORM_NONE;
949 dt->shared->u.atomic.u.f.pad = H5T_PAD_ZERO;
950 if((H5T_NATIVE_LDOUBLE_g = H5I_register(H5I_DATATYPE, dt, FALSE)) < 0)
951 HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "can't register ID for built-in datatype")
952 H5T_NATIVE_LDOUBLE_ALIGN_g = 1;
953 H5T_NATIVE_LDOUBLE_COMP_ALIGN_g = 16;
954
955 /* Set the native order for this machine */
956 H5T_native_order_g = H5T_ORDER_LE;
957
958 /* Structure alignment for pointers, hvl_t, hobj_ref_t, hdset_reg_ref_t */
959 H5T_POINTER_COMP_ALIGN_g = 8;
960 H5T_HVL_COMP_ALIGN_g = 8;
961 H5T_HOBJREF_COMP_ALIGN_g = 8;
962 H5T_HDSETREGREF_COMP_ALIGN_g = 1;
963
964done:
965 if(ret_value < 0) {
966 if(dt != NULL) {
967 dt->shared = H5FL_FREE(H5T_shared_t, dt->shared);
968 dt = H5FL_FREE(H5T_t, dt);
969 } /* end if */
970 } /* end if */
971
972 FUNC_LEAVE_NOAPI(ret_value);
973} /* end H5TN_init_interface() */
974
975/****************************************/
976/* ALIGNMENT and signal-handling status */
977/****************************************/
978/* Signal() support: yes */
979/* setjmp() support: yes */
980/* longjmp() support: yes */
981/* sigsetjmp() support: yes */
982/* siglongjmp() support: yes */
983/* sigprocmask() support: yes */
984
985/******************************/
986/* signal handlers statistics */
987/******************************/
988/* signal_handlers tested: 15 times */
989/* sigbus_handler called: 5 times */
990/* sigsegv_handler called: 5 times */
991/* sigill_handler called: 5 times */
diff --git a/meta-oe/recipes-support/hdf5/files/H5lib_settings.c b/meta-oe/recipes-support/hdf5/files/H5lib_settings.c
new file mode 100644
index 000000000..c243aee12
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/H5lib_settings.c
@@ -0,0 +1,98 @@
1/* Generated automatically by H5make_libsettings -- do not edit */
2
3
4
5/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
6 * Copyright by The HDF Group. *
7 * Copyright by the Board of Trustees of the University of Illinois. *
8 * All rights reserved. *
9 * *
10 * This file is part of HDF5. The full HDF5 copyright notice, including *
11 * terms governing use, modification, and redistribution, is contained in *
12 * the COPYING file, which can be found at the root of the source code *
13 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
14 * If you do not have access to either file, you may request a copy from *
15 * help@hdfgroup.org. *
16 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17 *
18 * Created: Jan 29, 2019
19 * root <root@qemux86-64>
20 *
21 * Purpose: This machine-generated source code contains
22 * information about the library build configuration
23 *
24 * Modifications:
25 *
26 * DO NOT MAKE MODIFICATIONS TO THIS FILE!
27 * It was generated by code in `H5make_libsettings.c'.
28 *
29 *-------------------------------------------------------------------------
30 */
31
32char H5libhdf5_settings[]=
33 " SUMMARY OF THE HDF5 CONFIGURATION\n"
34 " =================================\n"
35 "\n"
36 "General Information:\n"
37 "-------------------\n"
38 " HDF5 Version: 1.8.19\n"
39 " Configured on: 2019-01-29\n"
40 " Configured by: Ninja\n"
41 " Configure mode: CMAKE 3.12.2\n"
42 " Host system: Linux-4.4.0-31-generic\n"
43 " Uname information: Linux\n"
44 " Byte sex: little-endian\n"
45 " Libraries: \n"
46 " Installation point: /usr\n"
47 "\n"
48 "Compiling Options:\n"
49 "------------------\n"
50 " Compilation Mode: \n"
51 " H5_CFLAGS: \n"
52 " AM_CFLAGS: \n"
53 " CPPFLAGS: \n"
54 " H5_CPPFLAGS: \n"
55 " AM_CPPFLAGS: \n"
56 " Shared C Library: YES\n"
57 " Static C Library: YES\n"
58 " Statically Linked Executables: OFF\n"
59 " LDFLAGS: -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed\n"
60 " AM_LDFLAGS: \n"
61 " Extra libraries: m;dl\n"
62 " Debugged Packages: \n"
63 " API Tracing: OFF\n"
64 "\n"
65 "Languages:\n"
66 "----------\n"
67 " Fortran: OFF\n"
68 " Fortran Compiler: \n"
69 " Fortran 2003 Compiler: \n"
70 " Fortran Flags: \n"
71 " H5 Fortran Flags: \n"
72 " AM Fortran Flags: \n"
73 " Shared Fortran Library: YES\n"
74 " Static Fortran Library: YES\n"
75 "\n"
76 " H5 C++ Flags: \n"
77 " AM C++ Flags: \n"
78 " Shared C++ Library: YES\n"
79 " Static C++ Library: YES\n"
80 "\n"
81 "Features:\n"
82 "---------\n"
83 " Parallel HDF5: OFF\n"
84 " High Level library: ON\n"
85 " Threadsafety: OFF\n"
86 " Default API Mapping: v18\n"
87 " With Deprecated Public Symbols: ON\n"
88 " I/O filters (external): \n"
89 " MPE: \n"
90 " Direct VFD: \n"
91 " dmalloc: \n"
92 "Clear file buffers before write: ON\n"
93 " Using memory checker: OFF\n"
94 " Function Stack Tracing: OFF\n"
95 " Strict File Format Checks: OFF\n"
96 " Optimization Instrumentation: \n"
97;
98
diff --git a/meta-oe/recipes-support/hdf5/hdf5_1.8.19.bb b/meta-oe/recipes-support/hdf5/hdf5_1.8.19.bb
new file mode 100644
index 000000000..7ea6f6477
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/hdf5_1.8.19.bb
@@ -0,0 +1,56 @@
1SUMMARY = "Unique technology suite that makes possible the management of \
2extremely large and complex data collections"
3HOMEPAGE = "https://www.hdfgroup.org/"
4SECTION = "libs"
5
6LICENSE = "HDF5"
7LIC_FILES_CHKSUM = "file://COPYING;md5=57e5351b17591e659eedae107265c606"
8
9inherit cmake
10
11SRC_URI = " \
12 https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-${PV}/src/${BPN}-${PV}.tar.bz2 \
13 file://H5lib_settings.c \
14 file://H5Tinit.c \
15 file://0001-cross-compiling-support.patch \
16 file://0002-Remove-suffix-shared-from-shared-library-name.patch \
17"
18
19SRC_URI[md5sum] = "6f0353ee33e99089c110a1c8d2dd1b22"
20SRC_URI[sha256sum] = "59c03816105d57990329537ad1049ba22c2b8afe1890085f0c022b75f1727238"
21
22FILES_${PN} += "${libdir}/libhdf5.settings ${datadir}/*"
23
24EXTRA_OECMAKE = " \
25 -DTEST_LFS_WORKS_RUN=0 \
26 -DTEST_LFS_WORKS_RUN__TRYRUN_OUTPUT=0 \
27 -DH5_PRINTF_LL_TEST_RUN=1 \
28 -DH5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT='8' \
29 -DH5_LDOUBLE_TO_LONG_SPECIAL_RUN=0 \
30 -DH5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT= \
31 -DH5_LONG_TO_LDOUBLE_SPECIAL_RUN=0 \
32 -DH5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT= \
33 -DH5_LDOUBLE_TO_LLONG_ACCURATE_RUN=0 \
34 -DH5_LDOUBLE_TO_LLONG_ACCURATE_RUN__TRYRUN_OUTPUT= \
35 -DH5_LLONG_TO_LDOUBLE_CORRECT_RUN=0 \
36 -DH5_LLONG_TO_LDOUBLE_CORRECT_RUN__TRYRUN_OUTPUT= \
37 -DH5_NO_ALIGNMENT_RESTRICTIONS_RUN=0 \
38 -DH5_NO_ALIGNMENT_RESTRICTIONS_RUN__TRYRUN_OUTPUT= \
39 -DCMAKE_INSTALL_PREFIX='${prefix}' \
40"
41
42do_unpack[postfuncs] += "gen_hd5file"
43gen_hd5file() {
44 install -m 544 ${WORKDIR}/H5lib_settings.c ${S}
45 install -m 544 ${WORKDIR}/H5Tinit.c ${S}
46}
47
48do_install_append() {
49 # Used for generating config files on target
50 install -m 755 ${B}/bin/H5detect ${D}${bindir}
51 install -m 755 ${B}/bin/H5make_libsettings ${D}${bindir}
52}
53
54BBCLASSEXTEND = "native"
55
56SRC_DISTRIBUTE_LICENSES += "HDF5"