Skip to content

Commit c4212e3

Browse files
authored
Closes #241: make the complilation cmd more flexible (#368)
1 parent f3b07c7 commit c4212e3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ TARGETS_LIST := $(sort $(patsubst $(TARGETS_DIR)/TARGET_%/,%, $(wildcard $(TARGE
3535

3636
NUMBER_OF_SUPPORTED_CONFIGS := $(shell python3 scripts/build_configurations_helper.py count-supported-configs)
3737

38+
# Lowercase Command Args
39+
ifneq (,$(app))
40+
APP = $(app)
41+
endif
42+
ifneq (,$(target))
43+
TARGET = $(target)
44+
endif
45+
3846
verify_app_target_tuple_is_specified:
3947
ifeq (,$(findstring $(APP), $(APPS_LIST)))
4048

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,13 @@ This repository contains:
9191
4. Run make with the target application and board
9292
9393
Ex. Compile the science application for the science board:
94-
`make APP=science TARGET=SCIENCE_REV2`
94+
95+
`make APP=science TARGET=SCIENCE_REV2` OR `make app=science target=SCIENCE_REV2`
9596
9697
Ex. Compile the arm application for the arm board:
97-
`make APP=arm TARGET=ARM_REV2`
98+
`make APP=arm TARGET=ARM_REV2` OR `make app=arm target=ARM_REV2`
99+
100+
Note: The APP and TARGET variables can be defined in any order.
98101
99102
After compiling an application you should see a message similar to the following:
100103
```shell script

0 commit comments

Comments
 (0)