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

utils: Add generator script for native apps #40

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

razvand
Copy link

@razvand razvand commented Dec 30, 2023

Add utils/native/generate.py script that generates configuration and scripts for native apps. It generates configuration files (for make-based builds), build scripts (for make and kraft) and run scripts (for qemu, firecracker, kraft).

@razvand razvand added the enhancement New feature or request label Dec 30, 2023
@razvand razvand force-pushed the razvand/utils/native/generate branch 6 times, most recently from 87782c5 to eb686ac Compare December 31, 2023 09:15
@razvand razvand force-pushed the razvand/utils/native/generate branch 4 times, most recently from 69d9838 to 22dd110 Compare May 2, 2024 21:15
razvand added 3 commits May 7, 2024 16:07
The script generates other scripts that setup, configure, build and run
native applications.

The input of the script is the `Kraftfile` of the application and the
`config.yaml` file that specifies configuration such as memory, path to
filesystem (if any), requirements for networking.

Also add the test support files (`test/common.sh` and `test/test.sh`) used
for testing. The application will define a `single_test.sh` script.

Signed-off-by: Razvan Deaconescu <[email protected]>
Add specific files to scripted actions. Add `config.yaml` and
`single_test.sh`.

The `config.yaml` file is used doring the setup, build and run phases to
generate the directory structure and scripts.

The `single_test.sh` script is used as the basic script. It is called
for each build and run phase by the generated `script/test/test.sh`
script.

Signed-off-by: Razvan Deaconescu <[email protected]>
Add instructions in README for testing applications using generated
scripts.

Signed-off-by: Razvan Deaconescu <[email protected]>
@razvand razvand force-pushed the razvand/utils/native/generate branch from 22dd110 to b4c210e Compare May 7, 2024 13:07
razvand added 4 commits May 31, 2024 10:52
Add `redis-cli`-based functions in `common.sh`.

Signed-off-by: Razvan Deaconescu <[email protected]>
Signed-off-by: Razvan Deaconescu <[email protected]>
@razvand
Copy link
Author

razvand commented Aug 19, 2024

This will be obsoleted by #44 . We'll keep this open for reference, until #44 gets merged.

A recent update in the core repository requires the QEMU command line
for ARM64 to be prepended with the image / program name. Add the kernel
image name when generating the run script for QEMU on ARM64.

Signed-off-by: Razvan Deaconescu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants