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

View File

@@ -274,7 +274,7 @@ CONFIG_PKG_FORTIFY_SOURCE_1=y
# CONFIG_PKG_RELRO_NONE is not set
# CONFIG_PKG_RELRO_PARTIAL is not set
CONFIG_PKG_RELRO_FULL=y
# CONFIG_DEVEL is not set
CONFIG_DEVEL=y
# CONFIG_BROKEN is not set
CONFIG_BINARY_FOLDER=""
CONFIG_DOWNLOAD_FOLDER=""
@@ -283,19 +283,36 @@ CONFIG_AUTOREBUILD=y
# CONFIG_AUTOREMOVE is not set
CONFIG_BUILD_SUFFIX=""
CONFIG_TARGET_ROOTFS_DIR=""
# CONFIG_CCACHE is not set
CONFIG_CCACHE=y
CONFIG_EXTERNAL_KERNEL_TREE=""
CONFIG_KERNEL_GIT_CLONE_URI=""
# CONFIG_BUILD_LOG is not set
# CONFIG_SRC_TREE_OVERRIDE is not set
CONFIG_EXTRA_OPTIMIZATION="-fno-caller-saves -fno-plt"
# CONFIG_TARGET_OPTIONS is not set
CONFIG_TARGET_OPTIMIZATION="-Os -pipe"
CONFIG_SOFT_FLOAT=y
# CONFIG_EXTERNAL_TOOLCHAIN is not set
# CONFIG_EXTERNAL_TOOLCHAIN_LIBC_USE_GLIBC is not set
# CONFIG_EXTERNAL_TOOLCHAIN_LIBC_USE_UCLIBC is not set
# CONFIG_EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL is not set
CONFIG_NEED_TOOLCHAIN=y
# CONFIG_TOOLCHAINOPTS is not set
# CONFIG_EXTRA_TARGET_ARCH is not set
# CONFIG_BINUTILS_USE_VERSION_2_29_1 is not set
# CONFIG_BINUTILS_USE_VERSION_2_31_1 is not set
# CONFIG_BINUTILS_USE_VERSION_2_32 is not set
CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS=""
# CONFIG_GCC_USE_VERSION_5 is not set
# CONFIG_GCC_USE_VERSION_7 is not set
# CONFIG_GCC_USE_VERSION_8 is not set
CONFIG_EXTRA_GCC_CONFIG_OPTIONS=""
# CONFIG_GCC_DEFAULT_PIE is not set
# CONFIG_GCC_DEFAULT_SSP is not set
# CONFIG_SJLJ_EXCEPTIONS is not set
# CONFIG_INSTALL_GFORTRAN is not set
# CONFIG_LIBC_USE_GLIBC is not set
# CONFIG_LIBC_USE_MUSL is not set
CONFIG_GDB=y
CONFIG_USE_MUSL=y
CONFIG_SSP_SUPPORT=y
@@ -2080,8 +2097,14 @@ CONFIG_PACKAGE_kmod-bonding=y
# CONFIG_PACKAGE_kmod-nlmon is not set
# CONFIG_PACKAGE_kmod-openvswitch is not set
# CONFIG_PACKAGE_kmod-openvswitch-geneve is not set
# CONFIG_PACKAGE_kmod-openvswitch-geneve-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-gre is not set
# CONFIG_PACKAGE_kmod-openvswitch-gre-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-lisp-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-stt-intree is not set
# CONFIG_PACKAGE_kmod-openvswitch-vxlan is not set
# CONFIG_PACKAGE_kmod-openvswitch-vxlan-intree is not set
# CONFIG_PACKAGE_kmod-pf-ring is not set
# CONFIG_PACKAGE_kmod-pktgen is not set
# CONFIG_PACKAGE_kmod-ppp is not set
@@ -2231,6 +2254,7 @@ CONFIG_PACKAGE_kmod-usb-net-rndis=y
# CONFIG_PACKAGE_kmod-usb-storage is not set
# CONFIG_PACKAGE_kmod-usb-storage-extras is not set
# CONFIG_PACKAGE_kmod-usb-storage-uas is not set
# CONFIG_PACKAGE_kmod-usb-test is not set
# CONFIG_PACKAGE_kmod-usb-uhci is not set
# CONFIG_PACKAGE_kmod-usb-wdm is not set
# CONFIG_PACKAGE_kmod-usb-yealink is not set
@@ -2596,6 +2620,7 @@ CONFIG_PACKAGE_luasocket=y
# CONFIG_PACKAGE_python-openpyxl-src is not set
# CONFIG_PACKAGE_python-openssl is not set
# CONFIG_PACKAGE_python-openssl-src is not set
# CONFIG_PACKAGE_python-packages is not set
# CONFIG_PACKAGE_python-parsley is not set
# CONFIG_PACKAGE_python-parsley-src is not set
# CONFIG_PACKAGE_python-passlib is not set
@@ -2840,6 +2865,7 @@ CONFIG_PACKAGE_luasocket=y
# CONFIG_PACKAGE_python3-openpyxl-src is not set
# CONFIG_PACKAGE_python3-openssl is not set
# CONFIG_PACKAGE_python3-openssl-src is not set
# CONFIG_PACKAGE_python3-packages is not set
# CONFIG_PACKAGE_python3-paho-mqtt is not set
# CONFIG_PACKAGE_python3-paho-mqtt-src is not set
# CONFIG_PACKAGE_python3-parsley is not set
@@ -5948,6 +5974,7 @@ CONFIG_PACKAGE_jshn=y
# CONFIG_PACKAGE_kexec-tools is not set
# CONFIG_PACKAGE_kmod is not set
# CONFIG_PACKAGE_lcd4linux-custom is not set
# CONFIG_PACKAGE_lcd4linux-full is not set
# CONFIG_PACKAGE_lcdproc-clients is not set
# CONFIG_PACKAGE_lcdproc-drivers is not set
# CONFIG_PACKAGE_lcdproc-server is not set