a8c11e3c | 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: I84a952aae0e96b2960d8622659902df660d5ddb8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
7cc1ec9f | 25-Oct-2021 |
William A. Kennington III <wak@google.com> |
example/delayed_echo: Fix bogus compiler warning
An std::array size may be uninitialized? ok... ``` ../example/delayed_echo.cpp: In lambda function: ../example/delayed_echo.cpp:46:29: error: ‘buffer
example/delayed_echo: Fix bogus compiler warning
An std::array size may be uninitialized? ok... ``` ../example/delayed_echo.cpp: In lambda function: ../example/delayed_echo.cpp:46:29: error: ‘buffer’ may be used uninitialized [-Werror=maybe-uninitialized] 46 | ssize_t bytes = read(fd, buffer.data(), std::size(buffer)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/11/array:41, from ../example/delayed_echo.cpp:6: /usr/include/c++/11/bits/range_access.h:245:5: note: by argument 1 of type ‘const std::array<char, 4096>&’ to ‘constexpr decltype (__cont.size()) std::size(const _Container&) [with _Container = std::array<char, 4096>]’ declared here 245 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ ../example/delayed_echo.cpp:45:32: note: ‘buffer’ declared here 45 | std::array<char, 4096> buffer; ```
Change-Id: I534dcfe5c4e2b843a061066548d8a4f9e6f9cc6f Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
fc18eb03 | 15-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: rename dependency variable
Per [1], the naming convention for dependencies is '<project_name>_dep', for consistency when importing the project as a meson subproject. Rename the variable here
build: rename dependency variable
Per [1], the naming convention for dependencies is '<project_name>_dep', for consistency when importing the project as a meson subproject. Rename the variable here to match this convention.
Based on [2] there appears to not be any current users of this as a subproject which would need to be updated.
1. https://mesonbuild.com/Subprojects.html#naming-convention-for-dependency-variables 2. https://github.com/search?q=org%3Aopenbmc+get_variable&type=code
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I66082b3f667e9d00ede02184d0b008d0dd22d36b
show more ...
|
1b49b6f0 | 23-Mar-2019 |
William A. Kennington III <wak@google.com> |
example/heartbeat: Demonstrate a floating source
This adds a trivial example of a floating source.
Change-Id: Iefc30e69ee306f431eb0f2a68bf8906f23218636 Signed-off-by: William A. Kennington III <wak
example/heartbeat: Demonstrate a floating source
This adds a trivial example of a floating source.
Change-Id: Iefc30e69ee306f431eb0f2a68bf8906f23218636 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
b315a2ab | 27-Jun-2019 |
William A. Kennington III <wak@google.com> |
clang-format: Apply update 6 -> 8 fixes
Change-Id: I327de53cbed42d46b88f40f0b15637fda6896f8b Signed-off-by: William A. Kennington III <wak@google.com> |
ce045aca | 26-Apr-2019 |
William A. Kennington III <wak@google.com> |
autotools: Remove
Meson is now used to build this package in all of the necessary places.
Change-Id: Ic5155621967fa94ec03eced2193e0d453b174eba Signed-off-by: William A. Kennington III <wak@google.c
autotools: Remove
Meson is now used to build this package in all of the necessary places.
Change-Id: Ic5155621967fa94ec03eced2193e0d453b174eba Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
8ec59e62 | 03-Apr-2019 |
William A. Kennington III <wak@google.com> |
meson: Use declare_dependency for libraries
Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look lik
meson: Use declare_dependency for libraries
Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look like any other system dependency.
Change-Id: Ife3bcd3dcbd423f08c513f9a05fc8cabff41e2f6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
2584f9d7 | 23-Mar-2019 |
William A. Kennington III <wak@google.com> |
example/heartbeat: Add signal handling
This makes the example a little more interesting as we now have multiple sources and we can analyze memory safety with valgrind by just sending a SIGINT to qui
example/heartbeat: Add signal handling
This makes the example a little more interesting as we now have multiple sources and we can analyze memory safety with valgrind by just sending a SIGINT to quit cleanly.
Change-Id: Id15fe58f798d3b137f91228025f48a5e4cd5fc50 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
d4b33e95 | 04-Dec-2018 |
William A. Kennington III <wak@google.com> |
meson: Add alternative build system
For now both autotools and meson will be maintained side by side. Eventually we should remove the autotools build system.
Change-Id: I04382b17d5267ee218e2658fc16
meson: Add alternative build system
For now both autotools and meson will be maintained side by side. Eventually we should remove the autotools build system.
Change-Id: I04382b17d5267ee218e2658fc163da17853f637a Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
ba04ffb5 | 20-Sep-2018 |
William A. Kennington III <wak@google.com> |
utility/timer: Implement oneshot timers
This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up t
utility/timer: Implement oneshot timers
This change is meant to enable users of the old openbmc timer class to trivially use the timer if they only want single executions. It also makes setting up the timer less verbose if you do not already know the timeout interval.
Tested: Run through unit tests and did a sample integration with phosphor-watchdog and phosphor-networkd. Verified that the new oneshot example works as expected.
Change-Id: I2cd006d1f19fff99bce3f732a16eac9ca9553666 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
fa9431d5 | 25-Sep-2018 |
William A. Kennington III <wak@google.com> |
example: Add a repeating timer sample
Tested: Ran through unit test suite and manually executed the example program to make sure it works as expected.
Change-Id: I77cffdd038df4eab774f0d162f
example: Add a repeating timer sample
Tested: Ran through unit test suite and manually executed the example program to make sure it works as expected.
Change-Id: I77cffdd038df4eab774f0d162f49273650638ad6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
406b86e4 | 25-Sep-2018 |
William A. Kennington III <wak@google.com> |
example/heartbeat: Refactor
This cleans up the clock and time source declarations by defining the ClockId and Timer types up front.
Tested: Built the example and it runs as expected.
Change-Id
example/heartbeat: Refactor
This cleans up the clock and time source declarations by defining the ClockId and Timer types up front.
Tested: Built the example and it runs as expected.
Change-Id: I67326f5804f8eea54624150f6aa5d735bbde05fd Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
8fd0cd4c | 23-Jul-2018 |
William A. Kennington III <wak@google.com> |
source/base: Improve some method types |
7b79fb55 | 23-Jul-2018 |
William A. Kennington III <wak@google.com> |
example/follow: Implement |
7e2e60e7 | 17-Jul-2018 |
William A. Kennington III <wak@google.com> |
example/heartbeat: Show a time example |
321ed011 | 17-Jul-2018 |
William A. Kennington III <wak@google.com> |
configure: Make examples optional |
ae7d4c50 | 17-Jul-2018 |
William A. Kennington III <wak@google.com> |
makefile: Clean up compiler flags |
8f90e28b | 17-Jul-2018 |
William A. Kennington III <wak@google.com> |
Initial Commit |