diff options
author | davidovski <david@davidovski.xyz> | 2022-02-03 02:22:46 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-03 02:22:46 +0000 |
commit | 243837a091344ae4633bbda010be995d101241d2 (patch) | |
tree | 42f171758cd731595c93c57ffe22c65cebdadca5 /src/prepare_environment.sh | |
parent | bd41b8025735e4f2f3790aaaacc469fcd5983ce9 (diff) |
configuring make tools to build the base system
Diffstat (limited to 'src/prepare_environment.sh')
-rwxr-xr-x | src/prepare_environment.sh | 16 |
1 files changed, 11 insertions, 5 deletions
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 |