multilib
xry111/multilib
Last change
on this file since 72e10c9 was 70bf551, checked in by Xi Ruoyao <xry111@…>, 14 months ago |
kernel: Use new kernel configuration rendering method
Import kernel-config infrastructure from BLFS and use it for kernel
configuration. Note that kernel-config.py is slightly different from
BLFS: we need role="nodump" for <screen> here.
|
-
Property mode
set to
100644
|
File size:
577 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 | s-kernel-version: Makefile kernel_version.py
|
---|
12 | ./kernel_version.py $(KERNEL_TREE) > tmp-kernel.version
|
---|
13 | if ! diff tmp-kernel.version $@ 2>/dev/null >/dev/null; then \
|
---|
14 | mv tmp-kernel.version kernel.version; \
|
---|
15 | fi
|
---|
16 | touch s-kernel-version
|
---|
17 |
|
---|
18 | %.xml: %.toml kernel-config.py kernel_version.py kernel.version
|
---|
19 | ./kernel-config.py $(KERNEL_TREE) $< > $@
|
---|
Note:
See
TracBrowser
for help on using the repository browser.