aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-08-08 11:12:36 +0800
committerXi Ruoyao <xry111@xry111.site>2023-08-08 11:12:36 +0800
commit9cca53dcac7a29b471491be27076cfcc06f21921 (patch)
tree7a73db6f3de500c3d43b8742b4d62a0644fb7da8 /chapter10
parentf4835ed6ad3d808c4f06cd109e657120e8f22fb5 (diff)
kernel: Fix move-if-changed logic and regenerate with 6.4.8
Diffstat (limited to 'chapter10')
-rw-r--r--chapter10/kernel/Makefile8
-rw-r--r--chapter10/kernel/kernel.version2
2 files changed, 7 insertions, 3 deletions
diff --git a/chapter10/kernel/Makefile b/chapter10/kernel/Makefile
index d02408dcc..e04d2d6b1 100644
--- a/chapter10/kernel/Makefile
+++ b/chapter10/kernel/Makefile
@@ -8,10 +8,14 @@ endif
all: $(OUTPUT)
kernel.version: s-kernel-version; @true
-s-kernel-version: Makefile kernel_version.py
+
+.PHONY: s-kernel-version
+s-kernel-version:
./kernel_version.py $(KERNEL_TREE) > tmp-kernel.version
- if ! diff tmp-kernel.version $@ 2>/dev/null >/dev/null; then \
+ if ! diff tmp-kernel.version kernel.version ; then \
mv tmp-kernel.version kernel.version; \
+ else \
+ rm tmp-kernel.version; \
fi
touch s-kernel-version
diff --git a/chapter10/kernel/kernel.version b/chapter10/kernel/kernel.version
index 3c43d7159..4b20d9700 100644
--- a/chapter10/kernel/kernel.version
+++ b/chapter10/kernel/kernel.version
@@ -1 +1 @@
-6.4.7
+6.4.8