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

Initial CMake support for yocto #409

Merged
merged 1 commit into from
May 24, 2024
Merged

Initial CMake support for yocto #409

merged 1 commit into from
May 24, 2024

Conversation

asac
Copy link
Contributor

@asac asac commented Mar 10, 2024

Switch build system to CMake for alchemy and yocto

install trust certs from PANTAVISOR_PVS_DIR

CMake Flags:
PANTAVISOR_DEBUG=ON - passes -DPANTAVISOR_DEBUG to build
PANTAVISOR_DM_VERITY=ON - enable dm verity feature
PANTAVISOR_DM_CRYPT=ON - enable dm crypt disk feature
PANTAVISOR_TESTS=ON - build tests

atom.mk:

  • move all build targets to BUILD_CMAKE or BUILD_CUSTOM (for dummy support)
  • use CONFIG_ALCHEMY_BUILD_INIT_DM to enable PANTAVISOR_DM_VERITY feature flag
  • use CONFIG_ALCHEMY_BUILD_INIT_CRYPT to enable PANTAVISOR_DM_CRYPT feature flag
  • introduce pvtests module to build pantavisor including tests

Create skeleton dirs at runtime

  • mkdir /tmp and early mount dirs
  • install scripts with 0755 permissions

@asac asac mentioned this pull request Mar 10, 2024
@asac asac force-pushed the feature/cmake branch 5 times, most recently from 57a9ac3 to 3186a8f Compare March 23, 2024 14:20
@asac asac force-pushed the feature/cmake branch 2 times, most recently from 45a1ccd to 163b65f Compare May 15, 2024 07:27
@asac asac force-pushed the feature/cmake branch 5 times, most recently from d2b1a4d to 6a770a8 Compare May 23, 2024 20:58
install trust certs from PANTAVISOR_PVS_DIR

CMake Flags:
  PANTAVISOR_DEBUG=ON - passes -DPANTAVISOR_DEBUG to build
  PANTAVISOR_DM_VERITY=ON - enable dm verity feature
  PANTAVISOR_DM_CRYPT=ON - enable dm crypt disk feature
  PANTAVISOR_TESTS=ON - build tests

atom.mk:
  - move all build targets to BUILD_CMAKE or BUILD_CUSTOM (for dummy support)
  - use CONFIG_ALCHEMY_BUILD_INIT_DM to enable PANTAVISOR_DM_VERITY feature flag
  - use CONFIG_ALCHEMY_BUILD_INIT_CRYPT to enable PANTAVISOR_DM_CRYPT feature flag
  - introduce pvtests module to build pantavisor including tests

Create skeleton dirs at runtime
  - mkdir /tmp and early mount dirs
  - install scripts with 0755 permissions
@asac asac merged commit 905f44b into master May 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant