这是一个示例Makefile,它使用关键字modules两次(除了出现在路径和PHONY中的那些)。 # Path to the kbuild Makefile of the kernel to compile against
export KERNEL_BUILD_PATH := /lib/modules/$(shell uname -r)/build
# Name of this kern
我已经修改了这个片段将它升级到SHA-256: https://unix.stackexchange.com/questions/28994/how-can-a-makefile-detect-whether-a-command-is-available-in-the-local-machine determine_sum = \
sum=; \
for x in sha256