-
Notifications
You must be signed in to change notification settings - Fork 684
add target port: curie_bsp #1234
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
Conversation
|
Because of the flash limitation of arduino101, we build the minimal_cp profile (with ERROR_BUILTIN enabled), and the mem_heap size is 10k |
@LaszloLango Hi, do you have any comments about this patch? |
@jiangzidong, sorry I had no time to check the full patch. It is quite big :) AFAIK, @galpeter also started to check it. I'll review it today and give you some feedback. |
@LaszloLango Thanks. I'm just afraid that the patch is neglected :) |
|
||
#define alloca(size) __builtin_alloca(size) | ||
|
||
#endif |
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.
missing new line at the end of file
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.
(style) #endif not followed by a /* !ALLOCA_H */
comment (same in inttypes.h)
file_to_be_created.close() | ||
|
||
def main(curie_path, jerry_path): | ||
pass |
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.
why do we need the pass
here?
Hi, @galpeter @LaszloLango I fixed according to the comments above, except the " keep those dirs clean". Because Do you have any further comments? Thanks |
Hi @jiangzidong both Laszlo and Peter are not available this and next week. Can you wait a bit for review? |
@zherczeg, of course~ Thanks for your reply :) |
While the others are away, let me give some feedback:
More comments will follow inlined. |
#define __attr_unused___ __attribute__((unused)) | ||
#define __attr_used___ __attribute__((used)) | ||
#define __attr_noreturn___ __attribute__((noreturn)) | ||
#define __attr_noinline___ __attribute__((noinline)) |
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.
This define/attribute is not used anywhere, so should be removed. If exit
and abort
will be removed as suggested in the general comment, all the other defines can go away, too.
va_list args; | ||
va_start (args, format); | ||
length = vsnprintf (buf, 256, format, args); | ||
buf[length]='\0'; |
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.
Missing space around =
.
b4c1045
to
bb15f18
Compare
@galpeter Thanks for your comments! |
+1 to follow-up patch with |
} | ||
|
||
|
||
void help () |
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.
Only one newline.
@jiangzidong adding it as a follow-up patch works for me. |
Ok, so shall we land this? |
@zherczeg, updated according to your comments. Thanks. |
still LGTM |
LGTM. Is it in the latest master? |
@zherczeg, just rebased to the latest master |
JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
Do you want this patch be part of the 1.0 release? |
Yes. It will be great to be part of 1.0 release, so that Jerry users (who download the v1.0) will know how to port into CurieBSP and run in Arduino101. |
Added. Thank you. |
@zherczeg Can you please cherry-pick this commit to the 1.0 release branch? |
@zherczeg Sorry for the noise, I just realized that the change has already been cherry-picked to the release branch :) |
Intel® Curie BSP is the SDK that will help you developing software on Curie based boards, for example with the Arduino 101 board (AKA Genuino 101). https://github.com/CurieBSP/main/releases
We plan to add the curie_bsp port in the jerryscript/targets, so that CurieBSP users can develop js app.