2
0

using ccache

This commit is contained in:
2021-04-13 17:45:28 +02:00
parent ac0859f85a
commit 8b1395b65c
2 changed files with 30 additions and 10 deletions

View File

@@ -47,24 +47,17 @@ spec:
image: cr.lan/debian-stable-openwrt-build
script: |
#!/usr/bin/env bash
echo $PATH
echo "res.input.ke...path: $(resources.inputs.openwrt-configs.path)"
ls -altr /usr/src/
#distcc config
#echo "localhost/1,cpp,lzo --randomize distcc-0.distcc,cpp,lzo distcc-1.distcc,cpp,lzo distcc-2.distcc,cpp,lzo distcc-3.distcc,cpp,lzo" >/etc/distcc/hosts
#echo "ALL DISTCC HOSTS"
#distcc --show-hosts
#echo "/ALL DISTCC HOSTS"
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
/usr/src/openwrt/.config || exit 1
cd /usr/src/openwrt
CCACHE_DIR=$(echo staging_dir/target-*)/ccache ccache -s
ls -la .
./scripts/feeds update -a
./scripts/feeds install -a
# build env does not like to be run as root....
export FORCE_UNSAFE_CONFIGURE=1
#distcc-pump make -j20 download world CC=distcc $(params.make_flags)
make -j6 download world $(params.make_flags)
workspaces:
- name: usr-src