-
Notifications
You must be signed in to change notification settings - Fork 25
Makefile and minor code changes to unify builds for porting and testing #156
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
update yml files to seperate make and run steps Add strings.h to help posix compile Ensure posix version is checked force posix version for pread/pwrite force earlier inclusion of source version definition remove posix_cfg.h. update makefile instead correct makefiles replace deprecated usleep with nanosleep add garbage collection to avoid unused dependencies
56f4f00 to
5e088f4
Compare
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.
Pull Request Overview
This PR unifies and standardizes the build system across wolfHSM's test, example, and benchmark components by updating Makefiles and configuration settings. It also addresses POSIX compliance issues and improves code portability.
- Updates Makefiles to use wildcard inclusion patterns for source files instead of explicit file lists
- Replaces obsolete
usleepwith POSIX-compliantnanosleepfor better portability - Standardizes C90 compliance and adds proper POSIX C source version declarations
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/Makefile | Major refactor to use wildcards, standardize compiler flags, and improve organization |
| test/wh_test_comm.c | Replaces usleep with nanosleep for POSIX compliance |
| test/config/user_settings.h | Reorganizes defines and adds POSIX strcasecmp support |
| benchmark/Makefile | Similar refactor to use wildcards and standardized structure |
| examples/posix/tcp/*/Makefile | Consistency improvements with wildcard patterns |
| .github/workflows/*.yml | Separates build and run commands in CI workflows |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
bigbrett
left a comment
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 - just fix one comment and resolve the copilot review items if they aren't real and I can merge
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Brett Nicholas <[email protected]>
Tested on MacOS. Github runners