Linux kernel makefile env variables of interest

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 location
  • KBUILD_SIGN_PIN: Decryption key for module signing certificate key
  • INSTALL_MOD_STRIP: Set to 1 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)


Posted

in

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *