title: how to make a compiled android kernel file 'Image.gz-dtb' to a flashable .zip or .img file?
body: <p>My devices is <strong>OnePlus3</strong>.
     now I need to compile the kernel by myself and install it.
  <a href="https://forum.xda-developers.com/oneplus-3/development/kernel-neweraelementalx-t3538241" rel="nofollow noreferrer">I flow this to compile kernel </a></p>
  
  <p><strong>log:</strong></p>
  
  <pre><code>SYSMAP  System.map
  DTC     arch/arm64/boot/dts/15801_DVT/msm8996-v3-pmi8996-mtp_15801_DVT.dtb
  DTC     arch/arm64/boot/dts/15801_PVT/msm8996-v3-pmi8996-mtp_15801_PVT.dtb
  DTC     arch/arm64/boot/dts/15811_PVT/msm8996pro-pmi8996-mtp_15811_PVT.dtb
  DTC     arch/arm64/boot/dts/15811_PVT/msm8996pro-v1.1-pmi8994-mtp_15811_PVT.dtb
  DTC     arch/arm64/boot/dts/15811_PVT2/msm8996pro-pmi8996-mtp_15811_PVT2.dtb
  DTC     arch/arm64/boot/dts/15811_PVT2/msm8996pro-v1.1-pmi8994-mtp_15811_PVT2.dtb
  DTC     arch/arm64/boot/dts/15811_PVT3/msm8996pro-pmi8996-mtp_15811_PVT3.dtb
  DTC     arch/arm64/boot/dts/15811_PVT3/msm8996pro-v1.1-pmi8994-mtp_15811_PVT3.dtb
  OBJCOPY arch/arm64/boot/Image
  GZIP    arch/arm64/boot/Image.gz
  DTC     arch/arm64/boot/dts/15811_PVT3/msm8996pro-v1.1-pmi8994-mtp_15811_PVT3.dtb
  DTC     arch/arm64/boot/dts/15811_PVT3/msm8996pro-pmi8996-mtp_15811_PVT3.dtb
  DTC     arch/arm64/boot/dts/15811_PVT/msm8996pro-v1.1-pmi8994-mtp_15811_PVT.dtb
  DTC     arch/arm64/boot/dts/15811_PVT/msm8996pro-pmi8996-mtp_15811_PVT.dtb
  DTC     arch/arm64/boot/dts/15801_PVT/msm8996-v3-pmi8996-mtp_15801_PVT.dtb
  DTC     arch/arm64/boot/dts/15801_DVT/msm8996-v3-pmi8996-mtp_15801_DVT.dtb
  DTC     arch/arm64/boot/dts/15811_PVT2/msm8996pro-pmi8996-mtp_15811_PVT2.dtb
  DTC     arch/arm64/boot/dts/15811_PVT2/msm8996pro-v1.1-pmi8994-mtp_15811_PVT2.dtb
  CAT     arch/arm64/boot/Image.gz-dtb
  Building modules, stage 2.
  MODPOST 1 modules
  CC      drivers/staging/qcacld-2.0/wlan.mod.o
  LD [M]  drivers/staging/qcacld-2.0/wlan.ko
  </code></pre>
  
  <p>How to flash the file <strong>Image.gz-dtb</strong> to the device ?</p>