Skip to content

system/dd: portability to non-nuttx platforms #3121

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Jul 7, 2025

Summary

while this is not a goal for this repository,
it's convenient for me (hopefully for some others too) to be able to build this for other platforms.

an obvious downside is to have a few more ifdefs.

Impact

Testing

tested with:

/opt/wasi-sdk-25.0/bin/clang -Wall -Oz -s -o dd.wasm dd_main.c

while this is not a goal for this repository,
it's convenient for me (hopefully for some others too)
to be able to build this for other platforms.

an obvious downside is to have a few more ifdefs.

tested with:
```
/opt/wasi-sdk-25.0/bin/clang -Wall -Oz -s -o dd.wasm dd_main.c
```

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
@@ -31,7 +31,9 @@
#include <sys/types.h>
#include <sys/stat.h>

#if defined(__NuttX__)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#if defined(__NuttX__)
#ifdef __NuttX__

Copy link
Contributor Author

Choose a reason for hiding this comment

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

are you suggesting to change all of them, including the existing one?

Copy link
Contributor

Choose a reason for hiding this comment

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

all

Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

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

Thank you @yamt :-) Good to hear NuttX apps are now ported to other platforms too :-)
Please just update requests by @xiaoxiang781216 before merge :-)

@cederom
Copy link
Contributor

cederom commented Jul 7, 2025

Hmm CI complains about code formatting around line 84, could you please take a look @yamt too so we could merge with all successful checks? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants