12.1
12.1-rc1
12.2
12.2-rc1
multilib
trunk
xry111/arm64
xry111/clfs-ng
xry111/loongarch
xry111/loongarch-12.1
xry111/loongarch-12.2
xry111/mips64el
xry111/update-glibc
Last change
on this file since 31a9142 was 31a9142, checked in by Xi Ruoyao <xry111@…>, 9 months ago |
kernel-config: Sync fixes from BLFS
|
-
Property mode
set to
100644
|
File size:
733 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.tmp: %.toml kernel-config.py kernel_version.py kernel.version
|
---|
23 | ./kernel-config.py $(KERNEL_TREE) $< > $@
|
---|
24 |
|
---|
25 | %.xml: %.xml.tmp
|
---|
26 | mv $< $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.