From 053e5887d3fa1b3dea50941271105539818d5edd Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 31 Oct 2022 11:28:57 -0500 Subject: [PATCH] draft: br2 ccache --- ci/podTemplate.yaml | 5 +++++ ci/pvc.yaml | 4 ++-- configs/pythonctnr_defconfig | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ci/podTemplate.yaml b/ci/podTemplate.yaml index 6c05c0e..73433a8 100644 --- a/ci/podTemplate.yaml +++ b/ci/podTemplate.yaml @@ -10,6 +10,8 @@ spec: volumeMounts: - name: tmp mountPath: /tmp + - name: br2-ccache + mountPath: /home/jenkins/.buildroot-ccache securityContext: readOnlyRootFilesystem: true runAsUser: 1000 @@ -25,3 +27,6 @@ spec: emptyDir: medium: Memory sizeLimit: 100Mi + - name: br2-ccache + persistentVolumeClaim: + claimName: jenkins-br2-ccache diff --git a/ci/pvc.yaml b/ci/pvc.yaml index 51c9dc0..93ea415 100644 --- a/ci/pvc.yaml +++ b/ci/pvc.yaml @@ -5,10 +5,10 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: jenkins-ws-pythonctnr + name: jenkins-br2-ccache spec: accessModes: - ReadWriteOnce resources: requests: - storage: 10Gi + storage: 20Gi diff --git a/configs/pythonctnr_defconfig b/configs/pythonctnr_defconfig index aca678d..26be9f7 100644 --- a/configs/pythonctnr_defconfig +++ b/configs/pythonctnr_defconfig @@ -1,4 +1,5 @@ BR2_x86_64=y +BR2_CCACHE=y BR2_TOOLCHAIN_BUILDROOT_GLIBC=y BR2_TARGET_GENERIC_HOSTNAME="pythonctnr" BR2_TARGET_GENERIC_ISSUE=""