From 243837a091344ae4633bbda010be995d101241d2 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 3 Feb 2022 02:22:46 +0000 Subject: configuring make tools to build the base system --- src/prepare_environment.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/prepare_environment.sh') diff --git a/src/prepare_environment.sh b/src/prepare_environment.sh index 1edfd9c..0457e98 100755 --- a/src/prepare_environment.sh +++ b/src/prepare_environment.sh @@ -1,6 +1,7 @@ #!/bin/sh export MAKEFLAGS="-j12" +export LDFLAGS="-liconv" export XIB_DIR="/var/lib/xib" export XIB_BUILDFILES="$XIB_DIR/buildfiles" @@ -8,17 +9,22 @@ export XIB_CHROOT="$XIB_DIR/chroot" export XIB_EXPORT="$XIB_DIR/export" export PRIV_KEY="/home/david/.ssh/xi.pem" +export DEVELOPMENT_BUILDFILES="/home/david/docs/proj/xilinux/buildfiles" export BUILDFILES_GIT_REPO="https://xi.davidovski.xyz/git/buildfiles.git" mkdir -p $XIB_DIR $XIB_BUILDFILES $XIB_CHROOT $XIB_EXPORT -if [ -d $XIB_BUILDFILES/.git ]; then - cd $XIB_BUILDFILES - git pull - cd $OLDPWD +if [ -d $DEVELOPMENT_BUILDFILES ]; then + cp -r $DEVELOPMENT_BUILDFILES/* $XIB_BUILDFILES/ else - git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES + if [ -d $XIB_BUILDFILES/.git ]; then + cd $XIB_BUILDFILES + git pull + cd $OLDPWD + else + git clone $BUILDFILES_GIT_REPO $XIB_BUILDFILES + fi fi -- cgit v1.2.1