File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
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)
4
5
JETSON_LINUX_BUILDER_IMAGE_FROM ?= ghcr.io/getdevopspro/jetson-linux-builder:$(JETSON_VERSION )
5
6
JETSON_SAMPLEFS_ABI ?= aarch64
6
7
JETSON_SAMPLEFS_DISTRO ?= ubuntu
7
8
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 ) ) ) )
9
11
10
- build-rootfs-variant :
11
- docker run -it - -rm \
12
+ build-rootfs-variant : # # Build a rootfs variant
13
+ docker run --rm \
12
14
--privileged \
13
15
--network host \
14
16
-v $(PWD ) :/workspace/shared \
@@ -24,4 +26,4 @@ build-rootfs-variant:
24
26
cp -p sample_fs.tbz2 /workspace/shared/sample_fs-$(JETSON_VERSION ) -$(JETSON_SAMPLEFS_FLAVOR ) .tbz2'
25
27
26
28
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
You can’t perform that action at this time.
0 commit comments