Add category-based fetch script, fix .gitignore for vendor source

Add local/scripts/fetch-sources.sh for fetching sources by category (core, libs, tools) instead of by config. Fix .gitignore to only track our hand-written source code (branding, core, drivers, gpu, system, wayland, kde categories), excluding fetched vendor source like MC's ported source tree.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-12 20:43:15 +01:00
parent 4f1704b6a4
commit 41330ce78e
2 changed files with 155 additions and 3 deletions
+19 -3
View File
@@ -25,9 +25,22 @@ recipes/**/source.tar.tmp
target
wget-log
# Explicitly track our source code (safety net)
!local/recipes/**/source/
!local/recipes/**/source/**
# 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
@@ -35,6 +48,9 @@ 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/