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

pkg/nanopb: simplify setup procedure #53

Merged
merged 2 commits into from
Sep 10, 2019

Conversation

benpicco
Copy link

@benpicco benpicco commented Sep 9, 2019

Contribution description

No need to request manual intervention by the user, your PR already includes everything to make nanopb just work™ with only minor additions.

Testing procedure

Just build tests/pkg_nanopb

Issues/PRs references

RIOT-OS#11565

@benpicco benpicco changed the title Make pkg/nanopb just w pkg/nanopb: simplify setup procedure Sep 9, 2019
@@ -15,6 +15,7 @@ $(GENSRC): $(PROTOBUF_FILES)
$(Q)D=$(BINDIR)/$(MODULE) && \
mkdir -p "$$D" && \
cd $(CURDIR) && \
make -C $(PKGDIRBASE)/nanopb/generator/proto && \
Copy link
Owner

@kaspar030 kaspar030 Sep 9, 2019

Choose a reason for hiding this comment

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

can you we guard this with something like if $PROTOC_GEN_NANOPB == $(PKGDIRBASE)/nanopb/generator/protoc-gen-nanopb, so that make will only be called if the user doesn't supply an external version?

Or is that overkill...?

Copy link
Author

Choose a reason for hiding this comment

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

The question is why would the user ever want to provide an external version?

I can add such check, but I don't quite see the use case for it yet.

Copy link
Owner

Choose a reason for hiding this comment

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

ok, fine with me!

@kaspar030 kaspar030 merged commit e02da61 into kaspar030:pr/pkg/nanopb Sep 10, 2019
@benpicco benpicco deleted the pr/pkg/nanopb branch September 10, 2019 11:28
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