diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-20 22:49:49 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-20 22:49:49 -0500 |
| commit | ae828c3acfd53af33140c7a610813c0e32e92338 (patch) | |
| tree | 2496adbdf994c0bf574fbcc62486d244d9673d8b /do_buildroot.sh | |
| parent | f23d39f1cfc1866d5b724e629a51328604b458c4 (diff) | |
| parent | 4cd58d0de8d2f03dfaca511deaed82a8b3cc6a71 (diff) | |
Merge branch 'pi'
Diffstat (limited to 'do_buildroot.sh')
| -rwxr-xr-x | do_buildroot.sh | 24 |
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 |
