Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
26 lines (25 loc) · 1.48 KB
/
Copy path.gitattributes
File metadata and controls
26 lines (25 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-FileCopyrightText: (C) 2026 Gavin John
# SPDX-License-Identifier: GPL-3.0-or-later
# boot/kaem/build-*.kaem is generated from the Makefile's own source file
# list (tools/gen-kaem.sh, `make kaem`) -- a three-way text merge of it is
# never the right resolution, since two branches that each add a source
# file conflict here textually even though the "right" merge is just
# regenerating from the merged tree. Route every one of these files through
# the spicule-kaem merge driver (tools/merge-kaem.sh) instead of git's
# default text merge, during `merge`, `rebase` and `cherry-pick` alike.
#
# Filenames are keyed on platform+arch (build-$platform-$arch.kaem), not
# arch alone -- see tools/gen-kaem.sh's own header for why: arch/aarch64
# backs both PLATFORM=linux and PLATFORM=nt, each with a real kaem leg of
# its own, so ARCH by itself stopped being a unique key for a kaem script
# the moment a second platform started reusing the same arch/.
#
# The driver command itself is per-clone config (git does not read
# merge.*.driver from the repository) -- see ./configure, which sets it up
# the same way it sets core.hooksPath for .githooks, and CONTRIBUTING.md's
# "Merging/rebasing/cherry-picking across a source-file add" section for
# how it actually resolves a conflict and the manual fallback.
boot/kaem/build-nt-i386.kaem merge=spicule-kaem
boot/kaem/build-nt-x86_64.kaem merge=spicule-kaem
boot/kaem/build-nt-aarch64.kaem merge=spicule-kaem
boot/kaem/build-linux-aarch64.kaem merge=spicule-kaem