redpitaya-puzzlefw/sw/21_rebuild_rootfs.sh

20 lines
381 B
Bash
Raw Normal View History

2024-09-22 11:34:19 +02:00
#!/bin/bash
set -e
. script_env
setup_toolchain
TARGET=buildroot_overlay
# Add kernel driver to rootfs image.
mkdir -p "$TARGET/opt/puzzlefw/driver"
cp -a src/linux_driver/puzzlefw.ko "$TARGET/opt/puzzlefw/driver"
# Add userspace software to rootfs image.
mkdir -p "$TARGET/opt/puzzlefw/bin"
cp -a src/userspace/puzzlecmd "$TARGET/opt/puzzlefw/bin"
make -C "$BUILDROOT_DIR"