wifictld/.ci/prepare_build_dir.sh

24 lines
673 B
Bash
Executable File

#!/bin/sh
mkdir $CI_PROJECT_DIR/build_dir
cd $CI_PROJECT_DIR/build_dir
tar Jxf $CI_PROJECT_DIR/cache/$SDK_FILE --strip=1
cat > feeds.conf <<EOF
src-git base https://git.openwrt.org/openwrt/openwrt.git
src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git gluon https://github.com/freifunk-gluon/packages.git
src-link $CI_PROJECT_NAME $CI_PROJECT_DIR
EOF
cat feeds.conf
./scripts/feeds update -a > /dev/null
./scripts/feeds install -a > /dev/null
make defconfig > /dev/null
sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config