Kernel: Update kernel build routine for CM4 version

This change adds building scripts for an easier kernel build
for CM4 module version of uConsole. From now one it can be done
using Ubuntu 22.04 docker container on any Linux operating system.
This commit is contained in:
Paweł Poławski
2024-03-04 11:09:44 +01:00
parent 7db6de5d98
commit 01425471c5
4 changed files with 159 additions and 59 deletions

10
Code/patch/cm4/20230630/run.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# To be able to build kernel modules container needs to run in privileged mode
# [https://projectatomic.io/blog/2018/06/building-kernel-modules-with-podman/]
# Spawn container and run build script
docker run --rm --privileged -v ./:/uConsole ubuntu:22.04 /bin/bash /uConsole/build-kernel.sh
# Start container to run build script manually
# docker run -it --rm --privileged -v ./:/uConsole ubuntu:22.04