Skip to content

Commit

Permalink
Fix version detection for kernesl < 6 and fix arm64 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Dom Del Nano <[email protected]>
  • Loading branch information
ddelnano committed Oct 2, 2024
1 parent dde3f85 commit 147d58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ endif
KERN_MAJ=$$(echo $* | cut -d. -f1); \
KERN_MIN=$$(echo $* | cut -d. -f2); \
HEADERS_DOCKERFILE_SUFFIX=""; \
if [ $${KERN_MAJ} -le 6 ] && [ $${KERN_MIN} -lt 3 ]; then \
if [ $${KERN_MAJ} -lt 6 ] || { [ $${KERN_MAJ} -le 6 ] && [ $${KERN_MIN} -lt 3 ]; }; then \
HEADERS_DOCKERFILE_SUFFIX=".bionic"; \
fi; \
linux_headers_image_tag="gcr.io/pixie-oss/pixie-dev-public:$*-$(LINUX_HEADERS_REV)"; \
Expand All @@ -241,14 +241,14 @@ endif
KERN_MAJ=$$(echo $* | cut -d. -f1); \
KERN_MIN=$$(echo $* | cut -d. -f2); \
HEADERS_DOCKERFILE_SUFFIX=""; \
if [ $${KERN_MAJ} -le 6 ] && [ $${KERN_MIN} -lt 3 ]; then \
if [ $${KERN_MAJ} -lt 6 ] || { [ $${KERN_MAJ} -le 6 ] && [ $${KERN_MIN} -lt 3 ]; }; then \
HEADERS_DOCKERFILE_SUFFIX=".bionic"; \
fi; \
linux_headers_image_tag="gcr.io/pixie-oss/pixie-dev-public:$*-$(LINUX_HEADERS_REV)"; \
$(DOCKER) build --build-arg KERN_VERSION=$* \
--build-arg ARCH=arm64 \
--build-arg CROSS_COMPILE=aarch64-linux-gnu- \
-f linux_headers_image/Dockerfile$(HEADERS_DOCKERFILE_SUFFIX) \
-f linux_headers_image/Dockerfile$${HEADERS_DOCKERFILE_SUFFIX} \
linux_headers_image -t "$${linux_headers_image_tag}" && \
$(DOCKER) run --rm -v $(PWD)/$(LINUX_HEADER_ASSETS_BUILD_DIR):/output "$${linux_headers_image_tag}"

Expand Down

0 comments on commit 147d58d

Please sign in to comment.