Skip to content

Conversation

@billphipps
Copy link
Contributor

@billphipps billphipps commented Sep 2, 2025

  1. Update makefiles and user settings for test/example/benchmark to use wildcard inclusion for wolfCrypt, wolfHSM, and wolfSSL
  2. Improve and unify makefiles to allow easier cut-n-paste for porting jobs and make it more clear how and where configuration values should be
  3. minor cleanup in benchmark and test to improve output and support wildcard builds
  4. Corrected POSIX builds to set C Source to 200809. Replaced obsolete usleep with nano sleep
  5. Added support for garbage collection (dead_strip on macOS)
  6. Corrected C90 compliance.

Tested on MacOS. Github runners

This comment was marked as outdated.

@billphipps billphipps marked this pull request as draft September 2, 2025 14:35
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
@billphipps billphipps force-pushed the support_wildcard_wolfcrypt branch from 56f4f00 to 5e088f4 Compare September 3, 2025 18:10
@billphipps billphipps marked this pull request as ready for review September 4, 2025 12:23
@billphipps billphipps requested a review from Copilot September 4, 2025 12:24
Copy link
Contributor

Copilot AI left a 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 usleep with POSIX-compliant nanosleep for 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.

Copy link
Contributor

@bigbrett bigbrett left a 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

billphipps and others added 2 commits September 8, 2025 12:05
Co-authored-by: Brett Nicholas <[email protected]>
@billphipps billphipps requested a review from bigbrett September 8, 2025 16:08
@bigbrett bigbrett merged commit ac6bfad into wolfSSL:main Sep 9, 2025
6 checks passed
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.

2 participants