Skip to content

Commit 16dc863

Browse files
committed
feat: improve Makefile
Requiring setting the variables before building can avoid the situation that, in the first time building, the default configurations are not what users want. Signed-off-by: Zhaoming Luo <[email protected]>
1 parent 747ab61 commit 16dc863

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
.PHONY: all build flash flash_spi clean distclean
22

3-
PRODUCT ?= c200
4-
# or airbox-orin
3+
PRODUCT = $(error Please set PRODUCT in Makefile)
4+
# c200 or airbox-orin
55

6-
PROFILE ?= Jetson
7-
# or JetsonMinimal
6+
PROFILE = $(error Please set PROFILE in Makefile)
7+
# Jetson or JetsonMinimal
88

9-
VARIANT ?= RELEASE
10-
# or DEBUG
9+
VARIANT = $(error Please set VARIANT in Makefile)
10+
# RELEASE or DEBUG
1111

12+
BOARDSKU = $(error Please set BOARDSKU in Makefile)
1213
# 0000 - Jetson Orin NX 16GB
1314
# 0001 - Jetson Orin NX 8GB
1415
# 0003 - Jetson Orin Nano 8GB
1516
# 0004 - Jetson Orin Nano 4GB
1617
# 0005 - Jetson Orin Nano 8GB with SD card slot
1718
# See https://docs.nvidia.com/jetson/archives/r36.4.4/DeveloperGuide/index.html#devices-supported-by-this-document
18-
BOARDSKU ?= 0001
1919

2020
# After compiling the modified dts file, the dtb file will appear under
2121
# `Linux_for_Tegra/source/kernel-devicetree/generic-dts/`, we need to put the

0 commit comments

Comments
 (0)