Skip to content

examples: add flexible nfs/bind mount implementation#27

Open
KarlK90 wants to merge 3 commits intopengutronix:mainfrom
KarlK90:feature/nfs-mounts
Open

examples: add flexible nfs/bind mount implementation#27
KarlK90 wants to merge 3 commits intopengutronix:mainfrom
KarlK90:feature/nfs-mounts

Conversation

@KarlK90
Copy link
Copy Markdown
Member

@KarlK90 KarlK90 commented Feb 4, 2026

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.

@KarlK90 KarlK90 force-pushed the feature/nfs-mounts branch 4 times, most recently from 8faec8f to 16c0131 Compare February 10, 2026 13:19
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>
Comment thread Makefile

%-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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hmm, this should be added to .github/workflows/rust.yml as well, I think.

Ok(())
}

#[derive(Debug, PartialEq)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where is this used?

}

#[derive(Debug, PartialEq)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Extra empty line.

options: String,
}

#[derive(Default, Debug, PartialEq)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same as above (except Default)

Comment thread Makefile
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 \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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?

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.

2 participants