Skip to content

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

Merged

Conversation

rtakacs
Copy link
Contributor

@rtakacs rtakacs commented Dec 20, 2017

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.

@rtakacs rtakacs force-pushed the modify-nuttx-target-build branch from 2755a91 to eadc6f7 Compare December 21, 2017 08:42
@robertsipka
Copy link
Contributor

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?

@rtakacs rtakacs force-pushed the modify-nuttx-target-build branch from eadc6f7 to d998677 Compare December 21, 2017 14:51
@rtakacs
Copy link
Contributor Author

rtakacs commented Dec 21, 2017

@robertsipka Thanks for your comment. I've updated the README.md based on #2103 NuttX part.

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
Copy link
Contributor

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.

Copy link
Contributor Author

@rtakacs rtakacs Dec 29, 2017

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.

@zherczeg
Copy link
Member

zherczeg commented Jan 8, 2018

I think this can land after a few minor changes.

@rtakacs rtakacs force-pushed the modify-nuttx-target-build branch from d998677 to f3aa2c4 Compare January 8, 2018 14:15
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]
@rtakacs rtakacs force-pushed the modify-nuttx-target-build branch from f3aa2c4 to 10f58e6 Compare January 8, 2018 14:16
@rtakacs
Copy link
Contributor Author

rtakacs commented Jan 8, 2018

@zherczeg @robertsipka Okay, I've updated the README.md with all the missing information that are mentioned in #2103.

@robertsipka
Copy link
Contributor

LGTM (informally)

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

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.

4 participants