From 8519fc8b555f3401daf3e834b36cfa569b5899bb Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Tue, 26 Feb 2019 15:24:56 +0100 Subject: [PATCH] Update .ci/prepare_build_dir.sh, .ci/download_sdk.sh, .ci/build_pkgs.sh, .gitignore files --- .ci/build_pkgs.sh | 11 +++----- .ci/download_sdk.sh | 10 +++----- .ci/prepare_build_dir.sh | 13 ++++------ .gitignore | 55 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+), 22 deletions(-) create mode 100644 .gitignore diff --git a/.ci/build_pkgs.sh b/.ci/build_pkgs.sh index e6ad672..69e7122 100644 --- a/.ci/build_pkgs.sh +++ b/.ci/build_pkgs.sh @@ -1,8 +1,7 @@ -OPWD=$PWD +cd $CI_PROJECT_DIR/wireless/ +PKGS=$(ls) -PKGS=$(ls wireless/) - -cd tmp/build_dir +cd $CI_PROJECT_DIR/tmp/build_dir echo "=== Found new/modified packages: $PKGS" for PKG in $PKGS ; do @@ -32,6 +31,4 @@ done for PKG in $PKGS ; do echo "===+ Building: $PKG" make "package/$PKG/compile" -j3 V=s -done - -cd $OPWD \ No newline at end of file +done \ No newline at end of file diff --git a/.ci/download_sdk.sh b/.ci/download_sdk.sh index bd9377d..012d33e 100644 --- a/.ci/download_sdk.sh +++ b/.ci/download_sdk.sh @@ -1,12 +1,8 @@ -OPWD=$PWD - -mkdir tmp/sdk -cd tmp/sdk +mkdir -p $CI_PROJECT_DIR/tmp/sdk +cd $CI_PROJECT_DIR/tmp/sdk curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc gpg --with-fingerprint --verify sha256sums.asc sha256sums rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" . -sha256sum -c --ignore-missing sha256sums - -cd $OPWD \ No newline at end of file +sha256sum -c --ignore-missing sha256sums \ No newline at end of file diff --git a/.ci/prepare_build_dir.sh b/.ci/prepare_build_dir.sh index 4d4efae..bfec46e 100644 --- a/.ci/prepare_build_dir.sh +++ b/.ci/prepare_build_dir.sh @@ -1,8 +1,7 @@ -OPWD=$PWD -mkdir tmp/build_dir -cd tmp/build_dir +mkdir -p $CI_PROJECT_DIR/tmp/build_dir +cd $CI_PROJECT_DIR/tmp/build_dir -tar Jxf tmp/sdk/$SDK_FILE --strip=1 +tar Jxf $CI_PROJECT_DIR/tmp/sdk/$SDK_FILE --strip=1 cat > feeds.conf < /dev/null make defconfig > /dev/null -sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config - -cd $OPWD \ No newline at end of file +sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..66e8795 --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb + +# Kernel Module Compile Results +*.mod* +*.cmd +.tmp_versions/ +modules.order +Module.symvers +Mkfile.old +dkms.conf + + +tmp/ \ No newline at end of file