diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-18 21:07:59 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | ffecb8f5ae15d6713cc1bad470608ecd205a90f3 (patch) | |
| tree | 2a213e5f1e3545ee427bce8c123746e429a4531a /do_buildroot.sh | |
| parent | 897b759511426de4fbc94defb278e85b3bb3ec40 (diff) | |
Cross-compilation!
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..faa0724 --- /dev/null +++ b/do_buildroot.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +BR="$1" + +echo "root=/dev/mmcblk0p2 rootwait console=ttyAMA0,115200" >"$BR/package/rpi-firmware/cmdline.txt" +cat > "$BR/package/rpi-firmware/config.txt" <<EOF +start_file=start.elf +fixup_file=fixup.dat +kernel=zImage +gpu_mem_256=0 +gpu_mem_512=0 +gpu_mem_1024=0 +EOF + +usrbin="$BR/board/raspberrypi0/rootfs_overlay/usr/bin/" +if [ ! -d "$usrbin" ]; then + mkdir -p "$usrbin" +fi + +cp buildroot-config "$BR/.config" + +cp ctaklm "$usrbin/" +cd "$BR" +make |
