redpitaya-puzzlefw/sw/21_rebuild_rootfs.sh

20 lines
405 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"
2024-09-28 21:25:44 +02:00
cp -a src/userspace/puzzlecmd src/userspace/remotectl "$TARGET/opt/puzzlefw/bin"
2024-09-22 11:34:19 +02:00
make -C "$BUILDROOT_DIR"