kernel: Adjust perf and bcc builds

Build both only recent LTS and latest stable kernel

Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
This commit is contained in:
Rolf Neugebauer 2021-05-03 10:39:44 +01:00
parent f3f9c56d60
commit faa0450b14

View File

@ -145,9 +145,9 @@ show-tags: show-tag_$(2)$(3)$(4)
# with DCT as part of the dependency on build_$(2)$(3)$(4) and then build
# with DOCKER_CONTENT_TRUST explicitly set to 0
# Only build perf on x86 and latest LTS and stable kernels
# Only build perf only on x86 and recent LTS and latest stable kernels
ifeq ($(ARCH),x86_64)
ifeq ($(2), $(filter $(2),5.6.x 5.4.x))
ifeq ($(2), $(filter $(2),5.11.x 5.10.x 5.4.x))
build_perf_$(2)$(3)$(4): build_$(2)$(3)$(4)
docker pull $(ORG)/$(IMAGE_PERF):$(1)$(3)$(4)-$(TAG)$(SUFFIX) || \
DOCKER_CONTENT_TRUST=0 docker build -f Dockerfile.perf \
@ -183,9 +183,9 @@ forcepush: forcepush_perf_$(2)$(3)$(4)
endif
endif
# Only build BCC on x86 and only on latest LTS and latest stable kernels.
# Only build bcc only on x86 and recent LTS and latest stable kernels
ifeq ($(ARCH),x86_64)
ifeq ($(2), $(filter $(2),5.6.x 5.4.x))
ifeq ($(2), $(filter $(2),5.11.x 5.10.x 5.4.x))
build_bcc_$(2)$(3)$(4): build_$(2)$(3)$(4)
docker pull $(ORG)/$(IMAGE_BCC):$(1)$(3)$(4)-$(TAG)$(SUFFIX) || \
DOCKER_CONTENT_TRUST=0 docker build -f Dockerfile.bcc \