Update .ci/prepare_build_dir.sh, .ci/download_sdk.sh, .ci/build_pkgs.sh, .gitignore files
This commit is contained in:
parent
4b5ce201b5
commit
8519fc8b55
|
@ -1,8 +1,7 @@
|
||||||
OPWD=$PWD
|
cd $CI_PROJECT_DIR/wireless/
|
||||||
|
PKGS=$(ls)
|
||||||
|
|
||||||
PKGS=$(ls wireless/)
|
cd $CI_PROJECT_DIR/tmp/build_dir
|
||||||
|
|
||||||
cd tmp/build_dir
|
|
||||||
|
|
||||||
echo "=== Found new/modified packages: $PKGS"
|
echo "=== Found new/modified packages: $PKGS"
|
||||||
for PKG in $PKGS ; do
|
for PKG in $PKGS ; do
|
||||||
|
@ -32,6 +31,4 @@ done
|
||||||
for PKG in $PKGS ; do
|
for PKG in $PKGS ; do
|
||||||
echo "===+ Building: $PKG"
|
echo "===+ Building: $PKG"
|
||||||
make "package/$PKG/compile" -j3 V=s
|
make "package/$PKG/compile" -j3 V=s
|
||||||
done
|
done
|
||||||
|
|
||||||
cd $OPWD
|
|
|
@ -1,12 +1,8 @@
|
||||||
OPWD=$PWD
|
mkdir -p $CI_PROJECT_DIR/tmp/sdk
|
||||||
|
cd $CI_PROJECT_DIR/tmp/sdk
|
||||||
mkdir tmp/sdk
|
|
||||||
cd tmp/sdk
|
|
||||||
|
|
||||||
curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums
|
curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums
|
||||||
curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc
|
curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc
|
||||||
gpg --with-fingerprint --verify sha256sums.asc sha256sums
|
gpg --with-fingerprint --verify sha256sums.asc sha256sums
|
||||||
rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
|
rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
|
||||||
sha256sum -c --ignore-missing sha256sums
|
sha256sum -c --ignore-missing sha256sums
|
||||||
|
|
||||||
cd $OPWD
|
|
|
@ -1,8 +1,7 @@
|
||||||
OPWD=$PWD
|
mkdir -p $CI_PROJECT_DIR/tmp/build_dir
|
||||||
mkdir tmp/build_dir
|
cd $CI_PROJECT_DIR/tmp/build_dir
|
||||||
cd 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
|
cat > feeds.conf <<EOF
|
||||||
src-git base https://git.openwrt.org/openwrt/openwrt.git
|
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 telephony https://git.openwrt.org/feed/telephony.git
|
||||||
src-git gluon https://github.com/freifunk-gluon/packages.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
|
EOF
|
||||||
|
|
||||||
cat feeds.conf
|
cat feeds.conf
|
||||||
|
@ -20,6 +19,4 @@ cat feeds.conf
|
||||||
./scripts/feeds install -a > /dev/null
|
./scripts/feeds install -a > /dev/null
|
||||||
|
|
||||||
make defconfig > /dev/null
|
make defconfig > /dev/null
|
||||||
sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config
|
sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config
|
||||||
|
|
||||||
cd $OPWD
|
|
|
@ -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/
|
Loading…
Reference in New Issue