I have compiled a custom Raspbian kernel from source because i need to enable the CONFIG_AUDIT flags for installing SELinux & Auditd.
Following the Official Kernel Documentation (https://www.raspberrypi.org/documentati ... uilding.md) i was able to do this and it works well.
I now need to package this into a `*.deb` so i am able to install it on other Pi's with without having to manually copy the `*.dtb` and `*.img` and run `sudo make modules_install` on every pi i want to deploy this to.
This is where i run into problems
I have done some investigations and found a few ways to do this on Standard Debian following this Guide (https://www.linode.com/docs/tools-refer ... an-ubuntu/)and using the recommended `make deb-pkg` although when i run `dpkg -i linux-*.deb` on a fresh Pi and reboot it bricks it.
I have also tried to create my own `*.deb` file. By copying the `zImage modules dtbs` into the custom `dpkg-deb` along with redirecting the modules install path to that package too with `make INSTALL_MOD_PATH=$INSTALLDIR modules_install` and running ` dpkg-deb --build [custom-dir]`. This also failed
i have not been able to find out how to create a rpikernelhack pkg either as seen here ( https://raspberrypi.stackexchange.com/ ... kernelhack)
Any help in packaging a custom kernel for the Raspberry Pi 3b+ would be appreciated.