Skip to content

Commit 855becb

Browse files
committed
fix: set ubuntu release
1 parent 500012d commit 855becb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
UID := $(shell id -u)
2-
JETSON_VERSIONS ?= 36.4.3 35.6.1
3-
JETSON_VERSION ?= $(firstword $(JETSON_VERSIONS))
2+
JETSON_VERSION_PAIRS ?= 36.4.3,jammy 35.6.1,focal
3+
JETSON_SAMPLEFS_VERSIONS ?= jammy focal
4+
JETSON_VERSION ?= $(shell echo $(JETSON_VERSION_PAIRS) | cut -d, -f1)
45
JETSON_LINUX_BUILDER_IMAGE_FROM ?= ghcr.io/getdevopspro/jetson-linux-builder:$(JETSON_VERSION)
56
JETSON_SAMPLEFS_ABI ?= aarch64
67
JETSON_SAMPLEFS_DISTRO ?= ubuntu
78
JETSON_SAMPLEFS_FLAVOR ?= minimal
8-
JETSON_SAMPLEFS_VERSION ?= jammy
9+
# first item of JETSON_VERSIONS_AND_SAMPLEFS_VERSION and after comma
10+
JETSON_SAMPLEFS_VERSION ?= $(word 2,$(subst , ,$(firstword $(JETSON_VERSIONS_AND_SAMPLEFS_VERSION))))
911

10-
build-rootfs-variant:
11-
docker run -it --rm \
12+
build-rootfs-variant: ## Build a rootfs variant
13+
docker run --rm \
1214
--privileged \
1315
--network host \
1416
-v $(PWD):/workspace/shared \
@@ -24,4 +26,4 @@ build-rootfs-variant:
2426
cp -p sample_fs.tbz2 /workspace/shared/sample_fs-$(JETSON_VERSION)-$(JETSON_SAMPLEFS_FLAVOR).tbz2'
2527

2628
build-rootfs-variants: ## Build all rootfs variants
27-
for version in $(JETSON_VERSIONS); do $(MAKE) build-rootfs-variant JETSON_VERSION=$$version; done
29+
for version_pair in $(JETSON_VERSION_PAIRS); do $(MAKE) build-rootfs-variant JETSON_VERSION=$${version_pair%%,*} JETSON_SAMPLEFS_VERSION=$${version_pair#*,}; done

0 commit comments

Comments
 (0)