istoreos: supports predefined kernel vermagic

This commit is contained in:
Liangbin Lian 2024-12-30 15:43:32 +08:00
parent 1647097875
commit e298339e35
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,6 +20,7 @@
/package/openwrt-packages
/*.patch
/llvm-bpf*
/.vermagic
key-build*
private-key.pem
public-key.pem

View File

@ -127,7 +127,7 @@ define Kernel/Configure/Default
cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev; \
}
$(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(KERNEL_MAKE) $(if $(findstring uml,$(BOARD)),ARCH=$(ARCH)) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic
[ -f $(TOPDIR)/.vermagic ] && cat $(TOPDIR)/.vermagic > $(LINUX_DIR)/.vermagic || grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic
endef
define Kernel/Configure/Initramfs