xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
Last change
on this file since d6f618b 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
|
Line | |
---|
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
|
---|
11 |
|
---|
12 | .PHONY: s-kernel-version
|
---|
13 | s-kernel-version:
|
---|
14 | ./kernel_version.py $(KERNEL_TREE) > tmp-kernel.version
|
---|
15 | if ! diff tmp-kernel.version kernel.version ; then \
|
---|
16 | mv tmp-kernel.version kernel.version; \
|
---|
17 | else \
|
---|
18 | rm tmp-kernel.version; \
|
---|
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.