Temp commit, nothing works yet
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
include ../build.env
|
||||
|
||||
# Should be the same as upstream version in production
|
||||
VERSION ?= dev
|
||||
UBOOT_VERSION=v2026.01
|
||||
@@ -12,12 +14,14 @@ 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 $@
|
||||
mkdir -p $@ \
|
||||
$@/dpdk
|
||||
|
||||
# Never cache this
|
||||
.buildinfo:
|
||||
@@ -33,6 +37,9 @@ $(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 "$@" .
|
||||
@@ -46,6 +53,15 @@ uboot-tools: $(UBOOT_TAR)
|
||||
--build-arg UBOOT_TAR=$(UBOOT_TAR) \
|
||||
--output type=local,dest=./$(OUT_DIR) .
|
||||
|
||||
dpdk: $(UBOOT_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
|
||||
@@ -73,4 +89,4 @@ clean:
|
||||
|
||||
all: build build-agent build-local
|
||||
|
||||
.PHONY: clean all run .buildinfo build build-local build-agent uboot-tools
|
||||
.PHONY: clean all run .buildinfo build build-local build-agent uboot-tools dpdk
|
||||
|
||||
Reference in New Issue
Block a user