From 39fc564b94530c84697c7324f50d6c16316fd18f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 2 Feb 2018 00:19:05 +0100 Subject: Change little bit how build_repo.sh works --- .gitignore | 1 + build_repo.sh | 85 ++++++++++++++++++++++++++++++++++++++++++++--------------- pkgauto.mk | 43 ------------------------------ 3 files changed, 65 insertions(+), 64 deletions(-) delete mode 100644 pkgauto.mk diff --git a/.gitignore b/.gitignore index 7ae3050..5097ae3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .* !.gitignore +repo deactivated diff --git a/build_repo.sh b/build_repo.sh index 45c83dc..c0c972a 100755 --- a/build_repo.sh +++ b/build_repo.sh @@ -1,8 +1,7 @@ #!/bin/sh set -e -#set -x -cd `dirname $0` +# TODO add some help and some argumenst parsing BOARD=omnia if [ "$1" = "omnia" ] || [ "$1" = "turris" ] || [ "$1" = "all" ]; then @@ -10,7 +9,7 @@ if [ "$1" = "omnia" ] || [ "$1" = "turris" ] || [ "$1" = "all" ]; then shift fi -# remove previous build +# remove previous builds rm -rf .omnia-sdk rm -rf .turris-sdk @@ -27,6 +26,7 @@ pull_sdk() { rsync -aW --inplace --delete .$1-sdk-clean/ .$1-sdk/ } +# TODO these links won't be valid for ever if [ "$BOARD" = "omnia" ] || [ "$BOARD" = "all" ]; then pull_sdk omnia "https://repo.turris.cz/omnia/OpenWrt-SDK-mvebu_gcc-4.8-linaro_musl-1.1.15_eabi.Linux-x86_64.tar.bz2" fi @@ -43,9 +43,58 @@ for d in *; do [ -d .turris-sdk ] && cp -r $d .turris-sdk/package/ done -# Deploy pkgauto.mk -[ -d .omnia-sdk ] && sed "s#%PKGAUTO%#$PWD/.pkgauto#" pkgauto.mk > .omnia-sdk/include/pkgauto.mk -[ -d .turris-sdk ] && sed "s#%PKGAUTO%#$PWD/.pkgauto#" pkgauto.mk > .turris-sdk/include/pkgauto.mk + +deploy_pkgauto() { + cat >"$1/include/pkgauto.mk" <