Skip to content

Conversation

@matt2005
Copy link

No description provided.

…debugging

Build System Enhancements:
- Implement git branch-based build type detection in build.sh
  - main/master branches default to release builds
  - All other branches default to debug builds
  - Manual override still supported via first argument

- Add debug package naming differentiation in CMakeLists.txt
  - Debug builds create packages with -dbg suffix
  - openauto-dbg for debug builds
  - Standard naming (openauto) for release builds

- Update Dockerfile to accept BUILD_TYPE build argument
  - Enables CI/CD workflows to control build type explicitly
  - Default remains 'release' for backward compatibility

Remote Debugging Improvements:
- Fix setup-remote-debug.sh to handle sudo execution properly
  - Detect SUDO_USER and use real user's home directory
  - Prevents permission issues when script is run with sudo
  - Ensures builds happen as the correct user

- Update remote debugging documentation
  - Clarify Remote-SSH is the recommended debugging approach
  - Document GDB version requirements (13.1-3 on Pi)
  - Add troubleshooting for common path issues

Documentation Updates:
- Update README.md with branch detection notes
  - Document automatic build type selection
  - Explain debug package naming convention
  - Add examples of manual override usage

Benefits:
- Intuitive developer experience (no need to specify build type)
- Clear package differentiation in repositories
- Enables hosting both debug and release packages
- Improved remote debugging setup reliability
- Consistent behavior with AASDK project
- Detect build type based on branch (main=release, others=debug)
- Pass BUILD_TYPE argument to Docker build
- Enables automatic debug package builds on develop branch
- Aligns with branch-based build detection in build.sh
- Only limit to amd64 on develop for automatic pushes
- Manual workflow_dispatch now respects architecture dropdown
- Allows building arm64/armhf when explicitly selected
- Maintains fast feedback for automatic develop branch pushes
@matt2005 matt2005 merged commit 0e10c74 into main Nov 14, 2025
16 checks passed
@matt2005 matt2005 deleted the develop branch November 14, 2025 22:20
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