cd path/to/msm8916-mainline/linux $ source path/to/pmbootstrap/helpers/envkernel.sh # Initialize kernel configuration $ make msm8916_defconfig pmos.config # Compile kernel; replace with the number of cores you'd like to use for compilation $ make -j # Create postmarketOS package with your built kernel $ pmbootstrap build --envkernel linux-postmarketos-qcom-msm8916