docker build -t ubuntu-22.04-build-env docker
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
docker run --privileged -it \
-v $PWD:/workspace \
--mount type=bind,source=/dev,target=/dev \
--mount type=bind,source=/etc/passwd,target=/etc/passwd \
--mount type=bind,source=/etc/group,target=/etc/group \
--mount type=bind,source=/etc/shadow,target=/etc/shadow \
--mount type=bind,source=/etc/sudoers,target=/etc/sudoers \
--user $UID:$GID \
ubuntu-22.04-build-env
./build.sh kernel
./build.sh alpine
./build.sh rootfs
build ramdisk encrypted.img
./build.sh ramdisk
./build.sh uboot
./build.sh fit-boot
./build.sh sign-boot
./build.sh update
all: kernel alpine rootfs ramdisk uboot fit-boot sign-boot update
./build.sh all