#
e42fb487 |
| 15-Oct-2024 |
Thu Nguyen <thu@os.amperecomputing.com> |
Change include style to use system includes
The libcper header files in `libcper` are installed to `usr/include/libcper`. Use that system includes in `libcper` source instead of using the project in
Change include style to use system includes
The libcper header files in `libcper` are installed to `usr/include/libcper`. Use that system includes in `libcper` source instead of using the project includes.
Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
show more ...
|
#
a3b7f8a2 |
| 04-Nov-2024 |
Ed Tanous <etanous@nvidia.com> |
Unflatten edk includes
Installing the edk headers into a folder requires us to do odd things with imports, and either include headers with "..", or otherwise get the include directories lined up.
M
Unflatten edk includes
Installing the edk headers into a folder requires us to do odd things with imports, and either include headers with "..", or otherwise get the include directories lined up.
Move the contents of edk/*.c/h up a level, and just simplify the include structure. This is done to fix the immediate change of the prior patch and make this build again. Happy to discuss other options.
Change-Id: I328f20bca6d23100993493445bee0e5e11d2866a Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
c44aa26c |
| 14-Oct-2024 |
Thu Nguyen <thu@os.amperecomputing.com> |
Install libcper header files to libcper directory
In the current implementation, the header files of `libcper` will be installed directly to `/usr/include`. This can causes the collision in package
Install libcper header files to libcper directory
In the current implementation, the header files of `libcper` will be installed directly to `/usr/include`. This can causes the collision in package manages when it installs the header files of other libs which the file names are duplicated. Moreover, the libcper is new and porting this to meson a few months ago, so there are no upstream applications using libcper at this time.
Change meson build to install the `libcper` header files to sub folder `libcper` in `/usr/include`.
Change-Id: I853dc8fc7465626317d5829e7f00704bbae9fac2 Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
show more ...
|
#
0df69a8b |
| 03-Oct-2024 |
Ed Tanous <etanous@nvidia.com> |
Clean up meson file
Sort lists alphabetically Use files() where appropriate Collapse function calls where there were duplicates.
Tested: code compiles. Unit tests pass.
Change-Id: Iba55e191aa4109
Clean up meson file
Sort lists alphabetically Use files() where appropriate Collapse function calls where there were duplicates.
Tested: code compiles. Unit tests pass.
Change-Id: Iba55e191aa410922d8517cd9d2418108a79987d9 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
10eb6de3 |
| 03-Oct-2024 |
Ed Tanous <ed@tanous.net> |
Format meson files
Format with
meson format -i $(git ls-files | grep "meson.*$")
Tested: code compiles. Whitespace only.
Change-Id: I63f2e78aeb7924f9560c3b45ba3b5c4059c47e12 Signed-off-by: Ed Ta
Format meson files
Format with
meson format -i $(git ls-files | grep "meson.*$")
Tested: code compiles. Whitespace only.
Change-Id: I63f2e78aeb7924f9560c3b45ba3b5c4059c47e12 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
eed88bbf |
| 03-Oct-2024 |
Ed Tanous <ed@tanous.net> |
Allow building code locally
json_c doesn't compile without warnings, but is a library so does need to build when used as a subproject. Break out the subproject.
Tested: Unit tests pass
Change-Id:
Allow building code locally
json_c doesn't compile without warnings, but is a library so does need to build when used as a subproject. Break out the subproject.
Tested: Unit tests pass
Change-Id: I7f50711d2ab972034ec5b7de96975084081c95ca Signed-off-by: Ed Tanous <etanous@nvidia.com>
show more ...
|
#
04f57716 |
| 29-Aug-2024 |
Dung Cao <dung@os.amperecomputing.com> |
Add support for AMPERE CPERs
Support Ampere CPER entries
Change-Id: I607a89209138fa53914c55c07aba8b7d6f382e5e Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
|
#
5220c9bd |
| 08-Aug-2024 |
Karthik Rajagopalan <krajagopalan@nvidia.com> |
Add ability to use lib without json-c dependency
Adds 2 wrapper APIs to parse raw CPER & return char* for json cperbuf_to_str_ir - parses a full CPER cperbuf_single_section_to_str_ir - parses a sing
Add ability to use lib without json-c dependency
Adds 2 wrapper APIs to parse raw CPER & return char* for json cperbuf_to_str_ir - parses a full CPER cperbuf_single_section_to_str_ir - parses a single-section CPER
Change-Id: Ief018cc421497a8c366157a21e83ef60641e2646 Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>
show more ...
|
#
9fe2cb5f |
| 08-Aug-2024 |
Karthik Rajagopalan <krajagopalan@nvidia.com> |
Generate pkgconfig dependency for parser library
Had to rename overloaded variables & change tests/meson.build to match
Change-Id: Id92a71e6ff4c7edcdc0b64de90e078936921b4d5 Signed-off-by: Karthik R
Generate pkgconfig dependency for parser library
Had to rename overloaded variables & change tests/meson.build to match
Change-Id: Id92a71e6ff4c7edcdc0b64de90e078936921b4d5 Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>
show more ...
|
#
45e7332f |
| 26-Jul-2024 |
Karthik Rajagopalan <krajagopalan@nvidia.com> |
Fix build error when building an app with libcper as a subproject
Addresses the following error from meson setup: subprojects/libcper/meson.build:15:0: ERROR: Function 'add_global_arguments' cannot
Fix build error when building an app with libcper as a subproject
Addresses the following error from meson setup: subprojects/libcper/meson.build:15:0: ERROR: Function 'add_global_arguments' cannot be used in subprojects because there is no way to make that reliable.
Change-Id: I69f42e19c0c8cbc13e21dbee2848275effc65e45 Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>
show more ...
|
#
683e0550 |
| 07-Mar-2024 |
Karthik Rajagopalan <krajagopalan@nvidia.com> |
Add support for NVIDIA CPERs
Support Nvidia CPER entries.
Change-Id: Iea9bde181ead55ad99cdb2a341501bf48e1d82a8 Signed-off-by: Ed Tanous <etanous@nvidia.com>
|
#
4482c48b |
| 02-Jul-2024 |
Andrew Adriance <aadriance@nvidia.com> |
Update limits headers for better platform compat
This change enables building libcper based cli tools on mac systems.
Change-Id: If9b0134d3677b84c57603fa83d546b58e8c2d073 Signed-off-by: Andrew Adri
Update limits headers for better platform compat
This change enables building libcper based cli tools on mac systems.
Change-Id: If9b0134d3677b84c57603fa83d546b58e8c2d073 Signed-off-by: Andrew Adriance <aadriance@nvidia.com>
show more ...
|
#
358c7e16 |
| 15-Jul-2024 |
Ed Tanous <ed@tanous.net> |
Remove json-schema install
This code just copies the json-schema from the source dir to the compile dir. It doesn't actually accomplish anything.
Move the source dir to a compile flag, and let uni
Remove json-schema install
This code just copies the json-schema from the source dir to the compile dir. It doesn't actually accomplish anything.
Move the source dir to a compile flag, and let unit tests read in the schema directly.
Note: Copy was actually done in two places.
Change-Id: I26aee9edbac5b253ca426d32118b71cc5f905e10 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
a84fc937 |
| 15-Jul-2024 |
Ed Tanous <ed@tanous.net> |
Fix meson warnings
Clean up some variable naming conventions, remove some unused variables.
Change-Id: I87fc4645853b9ce33968863ece0f73cf4bae71fc Signed-off-by: Ed Tanous <ed@tanous.net>
|
#
a7d2cddd |
| 15-Jul-2024 |
Ed Tanous <etanous@nvidia.com> |
Move to embedded base64
Base64 encode/decode is a relatively simple algorithm, and currently libcper takes a dependency on libb64 for this. libb64 does not have methods for determining the encoded
Move to embedded base64
Base64 encode/decode is a relatively simple algorithm, and currently libcper takes a dependency on libb64 for this. libb64 does not have methods for determining the encoded size or decoded size, and rely on the user to provide the right buffer sizes, which libcper currently approximates as 2X the input size (which is incorrect).
This commit removes the libb64 dependency entirely, and inlines a libcper specific base64 encoder and decoder, using EDK2-allowed types.
The implementation itself is unique to libcper and makes the following design decisions. 1. Malloc is performed within the base64_<> functions. This reduces the number of malloc calls total, and removes the need for separately determining the output size. 2. Arguments are passed in by EDK2-types under the assumption that this will keep compatibility with EDK2 implementations. 3. Incremental parsing is not supported. CPER records are expected to be algorithmically small, and buffered such that the entire value fits in memory. This was already an assumption, but dropping the support for incremental encoding significantly reduces the amount of code to support it. It could be added back in the future if needed.
Change-Id: Idb010db105067ea317dbee05c2663511ab3c6611 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
1a908984 |
| 02-Jul-2024 |
Andrew Adriance <aadriance@nvidia.com> |
Update meson.build to respect default_library for libb64
Allows building a fully static libcper when default_library=static
Change-Id: I5790a53c38609fe2b92614775f0da100e140dd77 Signed-off-by: Andre
Update meson.build to respect default_library for libb64
Allows building a fully static libcper when default_library=static
Change-Id: I5790a53c38609fe2b92614775f0da100e140dd77 Signed-off-by: Andrew Adriance <aadriance@nvidia.com>
show more ...
|
#
a5b3d49b |
| 18-Jun-2024 |
Ed Tanous <etanous@nvidia.com> |
Format meson file with muon
Whitespace only change.
Change-Id: Ic8f5fa88938d0e407a37c34f8654138c03048cd0 Signed-off-by: Ed Tanous <etanous@nvidia.com>
|
#
1e267b64 |
| 18-Jun-2024 |
Ed Tanous <etanous@nvidia.com> |
Suppress meson warning
Meson warns that this will be required in the future. Add it.
Change-Id: I799d868dda86892eea3de4943b238fc3147c9912 Signed-off-by: Ed Tanous <etanous@nvidia.com>
|
#
abc62b89 |
| 22-May-2024 |
John Chung <john.chung@arm.com> |
Update meson build configuration
* Add meson option to build libcper utility * Using find_package for libbase64
Signed-off-by: John Chung <john.chung@arm.com> Change-Id: I9fa742fed7dcbd8e61b2e2dc00
Update meson build configuration
* Add meson option to build libcper utility * Using find_package for libbase64
Signed-off-by: John Chung <john.chung@arm.com> Change-Id: I9fa742fed7dcbd8e61b2e2dc00da87801d64c87a
show more ...
|
#
197ea120 |
| 03-May-2024 |
John Chung <john.chung@arm.com> |
Move to meson build configuration
cmake is Deprecated
Signed-off-by: John Chung <john.chung@arm.com> Change-Id: I9d08b087828aa5a16f601785dcb7868704ec73a3
|