-
Notifications
You must be signed in to change notification settings - Fork 16
feat(endpoint): Improve endpoint build instructions #674
Conversation
cf4edef
to
6a1fdee
Compare
aca7793
to
8b506e9
Compare
6d1473e
to
6af9628
Compare
4fd9965
to
3cdc03e
Compare
21e3833
to
4818252
Compare
c46d81b
to
c7b244e
Compare
323ee43
to
081bc30
Compare
Makefile
Outdated
@@ -36,7 +52,15 @@ legato: cert | |||
# which can not be downloaded when the 'fetch' option is used. | |||
bazel --output_base=$(OUTPUT_BASE_DIR) build //endpoint:libendpoint.so | |||
# Generate endpoint Legato app | |||
(cd endpoint && leaf shell -c "mkapp -v -t wp77xx endpoint.adef") | |||
ifeq ($(TARGET), development_host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow the consistent indention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It must be space, not tab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By using define directives, you can customize commands which would be placed around here.
Check this: http://www.chiark.greenend.org.uk/doc/make-doc/make.html/Using-Variables.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, F9 microkernel invokes platform-specific flash command in flexible ways: https://github.com/f9micro/f9-kernel/blob/master/mk/generic.mk#L79
File platform/*/build.mk defines platform-flash-command
accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always write down elegant and pretty code.
Check CI pipeline. |
This commit adds the build instructions for generating endpoint test or app with different target. For compatibility with legato framework, we use the GNU Make build system to build endpoint. Use "make legato" to generate endpoint app. The macro TARGET intends to the target platform. The default TARGET is the platform on your development host. Set the TARGET like TARGET=wp77xx to generate specific platform endpoint app. The macro ENABLE_ENDPOINT_TEST is for generating the endpoint app in test mode. Set ENABLE_ENDPOINT_TEST=true to enable generating test mode endpoint app. The endpoint uses the sierra framework as based runtime system. Developers need to set up the sierra development environment to build endpoint as specific target. See docs/endpoint.md for more information. Close DLTcollab#591
This commit adds the build instructions for generating endpoint test
or app with different target. For compatibility with legato framework,
we use the GNU Make build system to build endpoint. Use "make legato"
to generate endpoint app.
The macro TARGET intends to the target to generate. The default TARGET
is the platform on your development host. Set the TARGET like
TARGET=wp77xx to generate specific platform endpoint app.
The macro ENABLE_ENDPOINT_TEST is for generating the endpoint app in test mode.
Set ENABLE_ENDPOINT_TEST=true to enable generating test mode endpoint app.
The endpoint uses the sierra framework as based runtime system.
Developers need to set up the sierra development environment
to build endpoint as specific target. See docs/endpoint.md for
more information.
The default port has been modified to pass the test on buildkite.
Close #591