-
Notifications
You must be signed in to change notification settings - Fork 683
Modify the build method of NuttX target. #2154
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
Modify the build method of NuttX target. #2154
Conversation
2755a91
to
eadc6f7
Compare
I think it is a good approach to use CMake to build jerryscript. Could you please check #2103, and also update the NuttX related parts? |
eadc6f7
to
d998677
Compare
@robertsipka Thanks for your comment. I've updated the README.md based on #2103 NuttX part. |
targets/nuttx-stm32f4/README.md
Outdated
sudo apt-get install gperf flex bison libncurses-dev | ||
|
||
# Assuming you are in jerry-nuttx folder. | ||
git clone https://github.com/jameswalmsley/kconfig-frontends.git |
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.
As akosthekiss mentioned in #2103, the nuttx/tools repo contains its own kconfig sources. I think that cloning the https://bitbucket.org/nuttx/tools.git
would be better.
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.
@robertsipka Sorry, I missed that :) I will modify the README.md file.
I think this can land after a few minor changes. |
d998677
to
f3aa2c4
Compare
Modified the Makefile of the NuttX target to build only the application file (targets/nuttx-stm32f4/jerry-main.c) and not the whole project. It helps to build JerryScript separately and use the static libs when building NuttX. Also modified the README.md to describe the new build process. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
f3aa2c4
to
10f58e6
Compare
@zherczeg @robertsipka Okay, I've updated the README.md with all the missing information that are mentioned in #2103. |
LGTM (informally) |
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.
LGTM
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.
LGTM
Currently, NuttX compiles the whole JerryScript (with the target app) by the targets/nuttx-stm32f4/Makefile. I think, this is not the best because there are many compile/feature-options (in build.py) that are not supported neither in Makefile nor in KConfig.
This development helps to build JerryScript separately from NuttX. In this case it's simple enough just build the target app (targets/nuttx-stm32f4/jerry-main.c) by NuttX and use the JerryScript's static libraries.
The compile/feature-options maintenance could be better because it doesn't need to duplicate them in the Makefile and in the KConfig files.