From 25a1cb19b213f7825fcc080a29991beeb70f6b93 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 16 Apr 2018 00:51:48 -0400 Subject: It works! A getty now spawns on the serial console on boot Todo: DNS resolution doesn't work yet. DHCP for eth0? SSH server? `tmux`? ------- Added busybox config Switched the pathing around yet again in the `inc` file Added `local` files to be copied into the prefix before creating the tarball ( TODO ) Added tree command to the build Install runit --- scripts/tree.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/tree.sh (limited to 'scripts/tree.sh') diff --git a/scripts/tree.sh b/scripts/tree.sh new file mode 100644 index 0000000..ee2d61b --- /dev/null +++ b/scripts/tree.sh @@ -0,0 +1,22 @@ +#!/bin/sh +. ./.vars +export DESTDIR=$prefix +VERSION=1.7.0 +APP_NAME="tree" +BUILD_DIR="${build_dir}/$APP_NAME-$VERSION" +if ! [ -d "$BUILD_DIR" ] ; then + cd "$build_dir" + tar xfzv ${dist_dir}/$APP_NAME-$VERSION.tgz +fi +cd "$BUILD_DIR" +export CC=musl-gcc +export LDFLAGS="-static" +export DESTDIR="$prefix" +cp Makefile Makefile.bak +sed -e's/^CC.*$/CC = musl-gcc/g' \ + -e"s@^prefix.*\$@prefix = $prefix/usr@g" \ + < Makefile.bak > Makefile +rm Makefile.bak +make clean || echo "" > /dev/null +make +make install -- cgit v1.2.3