mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
70bf5512d9
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.
20 lines
577 B
Makefile
20 lines
577 B
Makefile
INPUT = $(wildcard *.toml)
|
|
OUTPUT = $(patsubst %.toml, %.xml, $(INPUT))
|
|
|
|
ifeq ($(KERNEL_TREE),)
|
|
$(error "must set KERNEL_TREE=/path/to/kernel/source")
|
|
endif
|
|
|
|
all: $(OUTPUT)
|
|
|
|
kernel.version: s-kernel-version; @true
|
|
s-kernel-version: Makefile kernel_version.py
|
|
./kernel_version.py $(KERNEL_TREE) > tmp-kernel.version
|
|
if ! diff tmp-kernel.version $@ 2>/dev/null >/dev/null; then \
|
|
mv tmp-kernel.version kernel.version; \
|
|
fi
|
|
touch s-kernel-version
|
|
|
|
%.xml: %.toml kernel-config.py kernel_version.py kernel.version
|
|
./kernel-config.py $(KERNEL_TREE) $< > $@
|