20 lines
381 B
Bash
Executable File
20 lines
381 B
Bash
Executable File
#!/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"
|
|
|