VPP = Very Painful Process

This commit is contained in:
2026-04-09 21:30:12 +08:00
parent 4eae2621c9
commit b8bc6a13cf
8 changed files with 392 additions and 74 deletions

View File

@@ -14,14 +14,12 @@ BIN_DIR := bin
OUT_DIR := out
UBOOT_TAR := $(PACKAGES_DIR)/uboot-$(UBOOT_VERSION).tar.gz
DPDK_TAR := $(PACKAGES_DIR)/dpdk/$(DPDK_VERSION).tar.gz
BUILDINFO_FILE := pkg/buildinfo/buildinfo_gen.go
CRD_PATHS := ./pkg/apis/...
$(PACKAGES_DIR):
mkdir -p $@ \
$@/dpdk
mkdir -p $@
# Never cache this
.buildinfo:
@@ -37,9 +35,6 @@ $(PACKAGES_DIR):
')' \
> $(BUILDINFO_FILE)
$(DPDK_TAR): | $(PACKAGES_DIR)
curl -L -o $@ "https://github.com/nxp-qoriq/dpdk/archive/refs/tags/$(DPDK_VERSION).tar.gz"
$(UBOOT_TAR): | $(PACKAGES_DIR)
git clone --depth 1 --branch v2026.01 --filter=blob:none https://github.com/u-boot/u-boot.git $(OUT_DIR)/u-boot-$(UBOOT_VERSION)
tar -C "$(OUT_DIR)/u-boot-$(UBOOT_VERSION)" -zcf "$@" .
@@ -53,15 +48,6 @@ uboot-tools: $(UBOOT_TAR)
--build-arg UBOOT_TAR=$(UBOOT_TAR) \
--output type=local,dest=./$(OUT_DIR) .
dpdk: $(DPDK_TAR)
@mkdir -p $(OUT_DIR)/dpdk
docker buildx build --platform linux/arm64 \
-f docker/dpdk.Dockerfile \
--build-arg DOCKER_IMAGE_ROOT=$(DOCKER_IMAGE_ROOT) \
--build-arg TAG=$(TAG) \
--build-arg DPDK_TAR=$(DPDK_TAR) \
--output type=local,dest=./$(OUT_DIR)/dpdk .
build: .buildinfo
mkdir -p $(BIN_DIR) $(OUT_DIR)/crds
controller-gen crd paths=$(CRD_PATHS) output:crd:dir=$(OUT_DIR)/crds
@@ -89,4 +75,4 @@ clean:
all: build build-agent build-local
.PHONY: clean all run .buildinfo build build-local build-agent uboot-tools dpdk
.PHONY: clean all run .buildinfo build build-local build-agent uboot-tools