62b99f8678
Red Bear is a fork/overlay on top of Redox. The upstream build
system wasn't designed for forks — it loses all cached stages on
make clean with no recovery path.
This commit adds a git-tracked build cache:
- local/cache/pkgar/{pkg}/stage.pkgar — per-package cache files
- cache-sync.sh: sync built packages → git-tracked cache
- cache-sync.sh --restore: restore cache → recipe targets
- cache-sync.sh --commit: sync + git commit
- Auto-restore before build, auto-sync after build
Cache survives: make clean, make distclean, git clone, upstream rebase.
Recovery from clean: seconds (restore from git) vs hours (full rebuild).
84 lines
1.9 KiB
Plaintext
84 lines
1.9 KiB
Plaintext
/build/
|
|
/prefix/
|
|
.config
|
|
**/my_*
|
|
|
|
.idea/
|
|
.vs/
|
|
.vscode/
|
|
.devcontainer/
|
|
|
|
/repo
|
|
/web
|
|
/cookbook.toml
|
|
|
|
# Fetched source trees in mainline recipes (not our code in local/)
|
|
# Matches recipes/<category>/<name>/source/ but NOT local/recipes/*/source/
|
|
recipes/**/source
|
|
recipes/**/source.tmp
|
|
recipes/**/source-new
|
|
recipes/**/source-old
|
|
recipes/**/source.tar
|
|
recipes/**/source.tar.tmp
|
|
recipes/**/source.pre-preservation-test/
|
|
|
|
# Build artifacts — target/ dirs are everywhere
|
|
target
|
|
wget-log
|
|
/sysroot/
|
|
local/docs/*.log
|
|
local/docs/qt6-build-log.txt
|
|
|
|
# Explicitly track our OWN source code (recipes with path="source" where we wrote the code)
|
|
# Only recipes under these categories contain our hand-written source:
|
|
!local/recipes/branding/**/source/
|
|
!local/recipes/branding/**/source/**
|
|
!local/recipes/core/**/source/
|
|
!local/recipes/core/**/source/**
|
|
!local/recipes/drivers/**/source/
|
|
!local/recipes/drivers/**/source/**
|
|
!local/recipes/gpu/**/source/
|
|
!local/recipes/gpu/**/source/**
|
|
!local/recipes/system/**/source/
|
|
!local/recipes/system/**/source/**
|
|
!local/recipes/wayland/**/source/
|
|
!local/recipes/wayland/**/source/**
|
|
!local/recipes/kde/**/source/
|
|
!local/recipes/kde/**/source/**
|
|
|
|
# But not fetched tarballs or build artifacts inside local/
|
|
local/recipes/**/source.tar
|
|
local/recipes/**/source.tar.tmp
|
|
local/recipes/**/target/
|
|
local/recipes/**/build/
|
|
|
|
# Fetched vendor source trees in local/recipes (not our code, just ports)
|
|
local/recipes/tui/*/source/
|
|
|
|
# Vendor source trees (fetched, not our code)
|
|
**/amdgpu-source/
|
|
|
|
# Linux firmware tree (fetched, not our code — huge)
|
|
local/recipes/system/redbear-firmware/source.tmp/
|
|
|
|
# Compiled objects
|
|
*.o
|
|
*.so
|
|
|
|
*.bin
|
|
*.fw
|
|
local/firmware/
|
|
*.lock
|
|
|
|
# Internal tooling
|
|
.sisyphus/
|
|
TASK_COMPLETION_SUMMARY.md
|
|
__pycache__/
|
|
extra.img: 1073741824 bytes
|
|
extra.img
|
|
local/cache/pkgar/
|
|
|
|
# Red Bear git-tracked build cache (survives make clean)
|
|
!local/cache/pkgar/
|
|
!local/cache/pkgar/**
|