Update .ci/prepare_build_dir.sh, .ci/download_sdk.sh, .ci/build_pkgs.sh, .gitignore files

This commit is contained in:
Martin/Geno 2019-02-26 15:24:56 +01:00
parent 4b5ce201b5
commit 8519fc8b55
4 changed files with 67 additions and 22 deletions

View File

@ -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
@ -33,5 +32,3 @@ for PKG in $PKGS ; do
echo "===+ Building: $PKG"
make "package/$PKG/compile" -j3 V=s
done
cd $OPWD

View File

@ -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

View File

@ -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 <<EOF
src-git base https://git.openwrt.org/openwrt/openwrt.git
@ -12,7 +11,7 @@ src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
src-git gluon https://github.com/freifunk-gluon/packages.git
src-link $CI_PROJECT_NAME /builds/$CI_PROJECT_PATH
src-link $CI_PROJECT_NAME $CI_PROJECT_DIR
EOF
cat feeds.conf
@ -21,5 +20,3 @@ cat feeds.conf
make defconfig > /dev/null
sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config
cd $OPWD

55
.gitignore vendored Normal file
View File

@ -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/