wifictld/.ci/prepare_build_dir.sh

24 lines
673 B
Bash
Raw Normal View History

2019-02-26 20:37:30 +01:00
#!/bin/sh
mkdir $CI_PROJECT_DIR/build_dir
2019-02-26 12:11:03 +01:00
cd $CI_PROJECT_DIR/build_dir
2019-02-26 20:37:30 +01:00
tar Jxf $CI_PROJECT_DIR/cache/$SDK_FILE --strip=1
2019-02-26 12:11:03 +01:00
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
2019-02-26 20:37:30 +01:00
sed -i 's/# CONFIG_BUILD_LOG is not set/CONFIG_BUILD_LOG=y/' .config