Given the source kernel_src.tbz2, how to build all the deb-pkg?

I used the source tarball kernel_src.tbs2 to create customized kernel. Actually I can build the dtbs, Image and modules. However, if I wanted to build the debian packages the similar way as I built these artifacts :

$ make -j 10 -C kernel/kernel-5.10 O=…/kernel_out deb-pkg

I ended up a error below :

Building source tarball is not possible outside the
kernel source tree. Don’t set KBUILD_OUTPUT, or use the
binrpm-pkg or bindeb-pkg target instead.

Do you need to do OTA update? Fo rupdating kernel, you can simply overwrite the kernel image and dtb/dtbo. And then re-flash the system image.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.