examples: add flexible nfs/bind mount implementation#27
Open
KarlK90 wants to merge 3 commits intopengutronix:mainfrom
Open
examples: add flexible nfs/bind mount implementation#27KarlK90 wants to merge 3 commits intopengutronix:mainfrom
KarlK90 wants to merge 3 commits intopengutronix:mainfrom
Conversation
8faec8f to
16c0131
Compare
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
This example show cases how the command line parser hooks can be used to implement custom bind and nfs mount options. Mostly used for debugging and development. Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
16c0131 to
09cba5e
Compare
michaelolbrich
requested changes
Mar 9, 2026
|
|
||
| %-build: check-toolchain | ||
| CROSS_CONTAINER_ENGINE=$(CROSS_CONTAINER_ENGINE) RUSTFLAGS="$(RUSTFLAGS)" $(CARGO_RUNNER) +nightly build --target $* $(if $(TARGET_PROFILE),--profile $(TARGET_PROFILE)) $(CARGO_FLAGS) | ||
| CROSS_CONTAINER_ENGINE=$(CROSS_CONTAINER_ENGINE) RUSTFLAGS="$(RUSTFLAGS)" $(CARGO_RUNNER) +nightly build --all-targets --target $* $(if $(TARGET_PROFILE),--profile $(TARGET_PROFILE)) $(CARGO_FLAGS) |
Member
There was a problem hiding this comment.
Hmm, this should be added to .github/workflows/rust.yml as well, I think.
| Ok(()) | ||
| } | ||
|
|
||
| #[derive(Debug, PartialEq)] |
| } | ||
|
|
||
| #[derive(Debug, PartialEq)] | ||
|
|
| options: String, | ||
| } | ||
|
|
||
| #[derive(Default, Debug, PartialEq)] |
Member
There was a problem hiding this comment.
Same as above (except Default)
| cd $T && gzip --keep --best --force init-$*.cpio | ||
| @echo "Packaging: $T/init" | ||
| @$(call create-init-cpio,$T/init,$T/init-$*) | ||
| @for bin in $T/examples/*; do \ |
Member
There was a problem hiding this comment.
I'm seeing two binaries for each example, with the same content, <name> and <name>-<hash>.
It looks like some hash, at least.
A cpio is created for both. Can we skip the second one?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This example show cases how the command line parser hooks can be used to implement custom bind and nfs mount options. Mostly used for debugging and development.