aboutsummaryrefslogtreecommitdiff
path: root/do_buildroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'do_buildroot.sh')
-rwxr-xr-xdo_buildroot.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/do_buildroot.sh b/do_buildroot.sh
new file mode 100755
index 0000000..cdcbbe6
--- /dev/null
+++ b/do_buildroot.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+BR="$1"
+
+board="$BR/board/raspberrypi0/"
+overlay="$board/rootfs_overlay/"
+
+# Build configuration
+cp resources/config-buildroot "$BR/.config"
+# resources/linux.config
+cp resources/{post-build,ct1986}.sh resources/genimage-raspberrypi0.cfg "$board"
+
+# Overlay filesystem
+dirs="/usr/bin"
+for dir in $dirs; do
+ if [ ! -d "$overlay/$dir" ]; then
+ mkdir -p "$overlay/$dir"
+ fi
+done
+
+cp ctaklm ct1986 "$overlay/usr/bin"
+cp resources/ash-profile "$overlay/.profile"
+
+cd "$BR" && make