Interesting environment variables to make use of when compiling Linux
Generic:
V=1
: Enable verbose mode, print the executed command for each step
Used with make modules_install:
INSTALL_MOD_PATH
: Module installation locationKBUILD_SIGN_PIN
: Decryption key for module signing certificate keyINSTALL_MOD_STRIP
: Set to1
to strip modules as they are being installed to save space
Out of tree module building:
make -C $(KERNEL_SOURCE_PATH) M=$(MODULE_SOURCE_PATH)
Leave a Reply