adding distcc-pump

This commit is contained in:
2021-02-23 19:24:03 +01:00
parent c585faa615
commit dd966028cb
2 changed files with 9 additions and 3 deletions

View File

@@ -6,8 +6,9 @@ RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.li
echo 'deb-src http://apt-cache.lan/deb.debian.org/debian stable main' > /etc/apt/sources.list.d/src.list && \ echo 'deb-src http://apt-cache.lan/deb.debian.org/debian stable main' > /etc/apt/sources.list.d/src.list && \
apt-get update -y && \ apt-get update -y && \
apt-get install -y build-essential dpkg-dev dpkg-cross \ apt-get install -y build-essential dpkg-dev dpkg-cross \
devscripts gcc make ccache distcc flex bison \ devscripts gcc make ccache distcc distcc-pump flex bison \
gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi \ gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi \
g++-arm-linux-gnueabihf g++-arm-linux-gnueabi \
bc rsync kmod cpio libssl-dev:native lzop && \ bc rsync kmod cpio libssl-dev:native lzop && \
apt-get remove --purge -y exim* && \ apt-get remove --purge -y exim* && \
apt-get autoremove --purge -y && \ apt-get autoremove --purge -y && \

View File

@@ -35,10 +35,15 @@ spec:
script: | script: |
#!/usr/bin/env bash #!/usr/bin/env bash
echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)" echo "res.input.ke...path: $(resources.inputs.kernel-configs.path)"
echo $PATH
cp $(resources.inputs.kernel-configs.path)/riotboard-5.7 /usr/src/linux-source-5.10/.config cp $(resources.inputs.kernel-configs.path)/riotboard-5.7 /usr/src/linux-source-5.10/.config
cd /usr/src/linux-source-5.10 cd /usr/src/linux-source-5.10
make CC=distcc DISTCC_HOSTS="distcc-0.distcc distcc-1.distcc distcc-2.distcc distcc-3.distcc"\ #distcc config
ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- \ echo "localhost/1 --randomize distcc-0.distcc distcc-1.distcc distcc-2.distcc distcc-3.distcc" >/etc/distcc/hosts
export CC=distcc GCC=distcc CPP=distcc
echo "ALL DISTCC HOSTS"
distcc --show-hosts
distcc-pump make ARCH=arm KBUILD_DEBARCH=armhf CROSS_COMPILE=arm-linux-gnueabihf- \
-j4 deb-pkg LOCALVERSION=-riot2 -j4 deb-pkg LOCALVERSION=-riot2
- name: cleanup-workspace-post - name: cleanup-workspace-post
image: alpine image: alpine