a46f9850 | 27-Sep-2024 |
Brian Ma <chma0@nuvoton.com> |
bej_tree: initialize node attribute format
While initializing the parent and child nodes, initialize the reserved bit of the node attribute format to prevent unexpected reserved bit setting.
And al
bej_tree: initialize node attribute format
While initializing the parent and child nodes, initialize the reserved bit of the node attribute format to prevent unexpected reserved bit setting.
And also override gtest's PrintTo function to avoid accessing uninitialized areas due to structure alignment.
Tested: Run test cases pass
Change-Id: I5b113f47c41ad15de578b80bf5e859f3b0c40503 Signed-off-by: Brian Ma <chma0@nuvoton.com>
show more ...
|
be27f2e9 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I133f4f43d4955ba1b86b924fc741aa5a56f34239 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
2bc745a3 | 01-Apr-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
meson: Provide wrap for nlohmann
Currently on the system without nlohmann installed local build fails with error: """ ../test/include/bej_common_test.hpp:5:10: fatal error: nlohmann/json.hpp: No suc
meson: Provide wrap for nlohmann
Currently on the system without nlohmann installed local build fails with error: """ ../test/include/bej_common_test.hpp:5:10: fatal error: nlohmann/json.hpp: No such file or directory 5 | #include "nlohmann/json.hpp" """ Provide wrap file for nlohmann and add the necessary dependency to fix the issue.
Tested: Local build via "meson setup build && cd build && meson compile" now finishes without errors.
Change-Id: I8d63dac6f8963c7da2c5831a1fb1998663a12f6f Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
da6e5573 | 13-Mar-2023 |
Nikhil Namjoshi <nikhilnamjoshi@google.com> |
Add libbej encoder wrapper for C++
Add unit tests and the test data files needed for unit tests. Move APIs from bej_decoder_test.cpp to a common file, to share those with bej_encoder_test.cpp
Teste
Add libbej encoder wrapper for C++
Add unit tests and the test data files needed for unit tests. Move APIs from bej_decoder_test.cpp to a common file, to share those with bej_encoder_test.cpp
Tested: Verified that encoding using the wrapper works well at runtime. Verified that the unit tests pass.
Change-Id: I61b7c17690eb7e7fefd1973a22d4316c6214267e Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
show more ...
|
6eb945fa | 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer retur
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I0c79d23d21956ffd007b1d1001bf6aaa0f72103b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
6f3082ea | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: If45530480fdd7acb46a6a1b116187bcfcd90ac83 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
6df0c486 | 18-Aug-2023 |
kasunath <kasunath@google.com> |
Encode more BEJ data types
This patch add encoding support for bejString, bejReal, bejBool and bejPropertyAnnotation types.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I5c7dc30
Encode more BEJ data types
This patch add encoding support for bejString, bejReal, bejBool and bejPropertyAnnotation types.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I5c7dc302dfd4e374f792f2eee643f4adaac7e1f9
show more ...
|
0a29193f | 18-Aug-2023 |
kasunath <kasunath@google.com> |
Encode bejArray, bejNull, bejInteger and bejEnum
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I2b851be69b51fe95a14287d1ca5f94ffcf757d0f |
bde1bfa1 | 18-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for bejNull type
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I08d0c8f26e1ed64f67cfcf857fbdd8573dae75d4 |
de02e7da | 18-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for bejReal type
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ib5de2d4fde4a129cb32988268c3289ba06572b16 |
b250dd54 | 01-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for bejEnum type
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I6c135c8ff67952efa59143a37e60020cf8a1f492 |
061fbc6f | 01-Aug-2023 |
kasunath <kasunath@google.com> |
Get metadata for BEJ integer, string and bool
This change adds the support to derive bejInteger, bejString and bejBool node metadata.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id
Get metadata for BEJ integer, string and bool
This change adds the support to derive bejInteger, bejString and bejBool node metadata.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ib6efcd29bf7cb2acc9913f95756e60ee65f16c6d
show more ...
|
f68be959 | 01-Aug-2023 |
kasunath <kasunath@google.com> |
Initialize a parent node metadata
This adds the support needed to initialize a parent node metadata properties.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ibb90665064904cc7fe1
Initialize a parent node metadata
This adds the support needed to initialize a parent node metadata properties.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ibb90665064904cc7fe1bde6dd5590545592f7d41
show more ...
|
99bd6c90 | 30-Jul-2023 |
kasunath <kasunath@google.com> |
Add the framework needed for BEJ encoding
This change adds the framework needed for BEJ encoding. Inorder to keep the patch smaller, I only added the basic framework needed to understand how the enc
Add the framework needed for BEJ encoding
This change adds the framework needed for BEJ encoding. Inorder to keep the patch smaller, I only added the basic framework needed to understand how the encoding is done. Rest of the functionality and testing will be added in the later patches.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: If2bd315fe5a3e6c7afff2af1750434042517790b
show more ...
|
c1a807d2 | 15-Aug-2023 |
George Liu <liuxiwei@inspur.com> |
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using t
meson_options.txt: Support for reading options from meson.options
Support has been added for reading options from meson.options instead of meson_options.txt[1]. These are equivalent, but not using the .txt extension for a build file has a few advantages, chief among them many tools and text editors expect a file with the .txt extension to be plain text files, not build scripts.
[1] https://mesonbuild.com/Release-notes-for-1-1-0.html#support-for-reading-options-from-mesonoptions
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id4d34890b837f96b3c2ab90f94116c5b20e27d5f
show more ...
|
dc3f214b | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Add more support to bej_tree API
This change adds bejString, bejReal and bejBoolean node types, and also 2 new APIs, UpdateNodeFlags() and IsParentType().
Signed-off-by: Kasun Athukorala <kasunath@
Add more support to bej_tree API
This change adds bejString, bejReal and bejBoolean node types, and also 2 new APIs, UpdateNodeFlags() and IsParentType().
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I94d36a63dd95893acd3517d30790c8fe71917989
show more ...
|
2ebe82f5 | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Add BEJ tree API.
This API allows us to represent a JSON object with a linked list representation.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I7894e7c10e4db2ad02a79b01bb4d7a48
Add BEJ tree API.
This API allows us to represent a JSON object with a linked list representation.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I7894e7c10e4db2ad02a79b01bb4d7a48d5a197cd
show more ...
|
0686fd9f | 12-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I1233e212f7970796e770a
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I1233e212f7970796e770adbc79fb592f4f1bf6cd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
435526a5 | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I1ae768f5bd68d4eec70acab9964c43370423bf5e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
42627cab | 31-Jan-2023 |
kasunath <kasunath@google.com> |
Fix formating issues
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I9d3bc1564435adce8947101ad3863a00db7ba9ba |
c14fab6e | 23-Nov-2022 |
kasunath <kasunath@google.com> |
Fix missing comma for empty arrays/sets
When an array or a set is empty, and if it's not the last property within an object, we need to add a comma after empty brackets/braces.
This change fix this
Fix missing comma for empty arrays/sets
When an array or a set is empty, and if it's not the last property within an object, we need to add a comma after empty brackets/braces.
This change fix this issue. Also updated a test case to capture this.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ia087f341d052660191f2614add2060c81be67f61
show more ...
|
0aa36d82 | 23-Nov-2022 |
kasunath <kasunath@google.com> |
Rename rde_common to bej_common
bej_common.h is a more consistant name than rde_common.h.
Also this repo only contains code related to BEJ encoding and decoding. Therefore this change removes the r
Rename rde_common to bej_common
bej_common.h is a more consistant name than rde_common.h.
Also this repo only contains code related to BEJ encoding and decoding. Therefore this change removes the rde related structs defind in the bej_common.h. Those structs should be defined somewhere else (libpldm).
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: Ic296ece11efc0967366e197a8609c3c88c325610
show more ...
|
ec85e113 | 28-Nov-2022 |
kasunath <kasunath@google.com> |
Update include directories
Needs to add the "include" directory to libbej includes to prevent a clang-tidy failure in bios-bmc-smm-error-logger.
Signed-off-by: Kasun Athukorala <kasunath@google.com
Update include directories
Needs to add the "include" directory to libbej includes to prevent a clang-tidy failure in bios-bmc-smm-error-logger.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I5b0576f2956ccb2d16963ee2b26bf2e1586a9d09
show more ...
|
80ad94fc | 31-Oct-2022 |
kasunath <kasunath@google.com> |
Move headers into libbej folder
This change moves the libbej headers into its own libbej folder (similar to libpldm) and install the headers under libbej directory.
Signed-off-by: Kasun Athukorala
Move headers into libbej folder
This change moves the libbej headers into its own libbej folder (similar to libpldm) and install the headers under libbej directory.
Signed-off-by: Kasun Athukorala <kasunath@google.com> Change-Id: I59ccb599bb042596a2d6bea620b83e3f8ce9f37d
show more ...
|
cc4098e1 | 23-Jun-2022 |
Willy Tu <wltu@google.com> |
libbej: Export the package for other repo to use
Make the library non-static so that other repo can be linked to it. Also install the headers for libbej.
Change-Id: I89dba36859b569283b61d3ac448f232
libbej: Export the package for other repo to use
Make the library non-static so that other repo can be linked to it. Also install the headers for libbej.
Change-Id: I89dba36859b569283b61d3ac448f23289c21944a Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|