Skip to content

Enforced kernel and userland version sync#65

Merged
byteshiftlabs merged 2 commits intomainfrom
fix/setup-contract-and-version-sync
Apr 14, 2026
Merged

Enforced kernel and userland version sync#65
byteshiftlabs merged 2 commits intomainfrom
fix/setup-contract-and-version-sync

Conversation

@byteshiftlabs
Copy link
Copy Markdown
Owner

Summary:
This change makes the ThunderOS userland build use the kernel's recorded version metadata and fail fast when the generated userland header drifts from the kernel VERSION.

Changes:

  • Generated external/userland/build/generated/thunderos_version.h from the ThunderOS VERSION file during make userland
  • Added a clean fallback when VERSION_CODENAME is absent
  • Added make check-abi-version and ran it automatically after the userland build
  • Kept the userland banner/version header aligned with the kernel version that ships with it

Testing:

  • bash -n build_userland.sh
  • git diff --check
  • make userland
  • make check-abi-version

@byteshiftlabs byteshiftlabs added tool A tool created to make development work easier and prevent potential bugs fix Bug fix labels Apr 14, 2026
@byteshiftlabs byteshiftlabs self-assigned this Apr 14, 2026
@byteshiftlabs byteshiftlabs merged commit 1b0270f into main Apr 14, 2026
6 checks passed
@byteshiftlabs byteshiftlabs deleted the fix/setup-contract-and-version-sync branch April 14, 2026 12:38
byteshiftlabs added a commit that referenced this pull request Apr 18, 2026
Summary:
This change makes the ThunderOS userland build use the kernel's recorded
version metadata and fail fast when the generated userland header drifts
from the kernel VERSION.

Changes:
- Generated `external/userland/build/generated/thunderos_version.h` from
the ThunderOS `VERSION` file during `make userland`
- Added a clean fallback when `VERSION_CODENAME` is absent
- Added `make check-abi-version` and ran it automatically after the
userland build
- Kept the userland banner/version header aligned with the kernel
version that ships with it

Testing:
- `bash -n build_userland.sh`
- `git diff --check`
- `make userland`
- `make check-abi-version`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix tool A tool created to make development work easier and prevent potential bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant