Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake libuci dependency improvement #144

Merged
merged 8 commits into from Jun 7, 2022
Merged

cmake libuci dependency improvement #144

merged 8 commits into from Jun 7, 2022

Conversation

aloisklink
Copy link
Contributor

@aloisklink aloisklink commented May 27, 2022

Two changes:

  • First, uci and ubox is now built at compile time using ExternalProject.
    This allows make -j4 to build it with multiprocessing, and makes
    cmake a lot faster, since the hard work is now during cmake --build.
  • Secondly, -DBUILD_UCI_LIB=OFF now works.
    This will make UCI/UBOX compiliation optional, and should hopefully mean that EDGESec now compiles correctly with the OpenWRT SDK.

Moves common iface depencies out of the `if()` statements
Previously, this did not exist, which could cause issues when
building in parallel
subscriber_events was missing a dependency on supervisor_config.

As subscriber_event's dependency on iface was through supervisor_config,
this meant that we could remove it too.
A bunch of difference cmake targets had incorrect dependencies on
iface.

For example, they should be dependending on supervisor_config,
which then dependends on iface.
Compiles libuci in the `cmake --build` compile step,
instead of compiling during the `cmake` configure step,
using ExternalProject.
Compiles `libubox` in the `cmake --build` compile step,
instead of compiling during the `cmake` configure step,
using ExternalProject.
When compiling using the OpenWRT SDK,
libuci is already installed, so there's no need to compile
it manually.
@aloisklink aloisklink added the dependencies Pull requests that update a dependency file label May 30, 2022
@mereacre mereacre self-requested a review June 7, 2022 15:39
Copy link
Contributor

@mereacre mereacre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work

@mereacre mereacre marked this pull request as ready for review June 7, 2022 15:45
@mereacre mereacre merged commit 56b0db8 into main Jun 7, 2022
@aloisklink aloisklink deleted the make-uci-optional branch June 7, 2022 20:34
@aloisklink aloisklink mentioned this pull request Jun 10, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants