12.1
12.1-rc1
12.2-rc1
multilib
trunk
xry111/arm64
xry111/clfs-ng
xry111/loongarch
xry111/loongarch-12.1
xry111/mips64el
xry111/update-glibc
Last change
on this file since e70bf8f was 9cca53d, checked in by Xi Ruoyao <xry111@…>, 13 months ago |
kernel: Fix move-if-changed logic and regenerate with 6.4.8
|
-
Property mode
set to
100644
|
File size:
701 bytes
|
Rev | Line | |
---|
[70bf551] | 1 | INPUT = $(wildcard *.toml)
|
---|
| 2 | OUTPUT = $(patsubst %.toml, %.xml, $(INPUT))
|
---|
| 3 |
|
---|
| 4 | ifeq ($(KERNEL_TREE),)
|
---|
| 5 | $(error "must set KERNEL_TREE=/path/to/kernel/source")
|
---|
| 6 | endif
|
---|
| 7 |
|
---|
| 8 | all: $(OUTPUT)
|
---|
| 9 |
|
---|
| 10 | kernel.version: s-kernel-version; @true
|
---|
[9cca53d] | 11 |
|
---|
| 12 | .PHONY: s-kernel-version
|
---|
| 13 | s-kernel-version:
|
---|
[70bf551] | 14 | ./kernel_version.py $(KERNEL_TREE) > tmp-kernel.version
|
---|
[9cca53d] | 15 | if ! diff tmp-kernel.version kernel.version ; then \
|
---|
[70bf551] | 16 | mv tmp-kernel.version kernel.version; \
|
---|
[9cca53d] | 17 | else \
|
---|
| 18 | rm tmp-kernel.version; \
|
---|
[70bf551] | 19 | fi
|
---|
| 20 | touch s-kernel-version
|
---|
| 21 |
|
---|
| 22 | %.xml: %.toml kernel-config.py kernel_version.py kernel.version
|
---|
| 23 | ./kernel-config.py $(KERNEL_TREE) $< > $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.