@@ -29,7 +29,7 @@ OUT := $(abspath $(O))
29
29
$(info Using outdir : $(OUT ) )
30
30
31
31
ifneq (,$(DEV ) )
32
- $(error DEV= is no longer supported, please use make ide or make ashell or make ide_term or make ide_serial )
32
+ $(error DEV= is no longer supported, please use make ide or make ashell)
33
33
endif
34
34
35
35
ifndef ZJS_BASE
@@ -85,18 +85,12 @@ ifeq ($(filter $(MAKECMDGOALS),linux), linux)
85
85
$(error 'linux' make target is deprecated, use "make BOARD=linux")
86
86
endif
87
87
88
- ifneq (,$(filter $(MAKECMDGOALS ) ,ide ashell ide_term ide_serial ) )
88
+ ifneq (,$(filter $(MAKECMDGOALS ) ,ide ashell) )
89
89
ifneq (,$(JS ) )
90
- $(error ide ide_term ide_serial and ashell do not allow for setting JS)
90
+ $(error ide and ashell do not allow for setting JS)
91
91
endif
92
92
endif
93
93
94
- ifeq ($(filter $(MAKECMDGOALS ) ,ide_term) , ide_term)
95
- ASHELL_TYPE =ide_term
96
- endif
97
- ifeq ($(filter $(MAKECMDGOALS ) ,ide_serial) , ide_serial)
98
- ASHELL_TYPE =ide_serial
99
- endif
100
94
ifeq ($(filter $(MAKECMDGOALS ) ,ide) , ide)
101
95
ASHELL_TYPE =ide
102
96
endif
@@ -117,9 +111,9 @@ JERRY_OUTPUT = $(OUT)/$(BOARD)/jerry/build
117
111
# Generate and run snapshot as byte code instead of running JS directly
118
112
ifneq (,$(filter $(MAKECMDGOALS ) ,ide ashell linux dynamic) )
119
113
SNAPSHOT =off
120
- # if the user passes in SNAPSHOT=on for ide, ide_term, ide_serial, ashell, or linux give an error
114
+ # if the user passes in SNAPSHOT=on for ide, ashell, or linux give an error
121
115
ifeq ($(SNAPSHOT ) , on)
122
- $(error ide, ide_term, ide_serial, ashell, and linux do not support SNAPSHOT=$(SNAPSHOT))
116
+ $(error ide, ashell, and linux do not support SNAPSHOT=$(SNAPSHOT))
123
117
endif
124
118
else
125
119
# snapshot is enabled by default
@@ -137,7 +131,7 @@ FORCED := $(FORCE),zjs_common.json
137
131
endif
138
132
139
133
# Settings for ashell builds
140
- ifneq (,$(filter $(MAKECMDGOALS ) ,ide ide_term ide_serial ashell) )
134
+ ifneq (,$(filter $(MAKECMDGOALS ) ,ide ashell) )
141
135
ASHELL =zjs_ashell_$(ASHELL_TYPE ) .json
142
136
FORCED := $(ASHELL ) ,$(FORCED )
143
137
ASHELL_ARC =zjs_ashell_arc.json
@@ -227,12 +221,6 @@ endif
227
221
.PHONY : ide
228
222
ide : zephyr
229
223
230
- .PHONY : ide_term
231
- ide_term : zephyr
232
-
233
- .PHONY : ide_serial
234
- ide_serial : zephyr
235
-
236
224
.PHONY : ashell
237
225
ashell : zephyr
238
226
@@ -342,13 +330,6 @@ ${JERRY_BASE}/CMakeLists.txt:
342
330
# set up prj.conf file
343
331
-.PHONY : setup
344
332
setup : ${JERRY_BASE}/CMakeLists.txt
345
- ifeq ($(ASHELL ) , ashell)
346
- ifeq ($(filter ide,$(MAKECMDGOALS ) ) ,cli)
347
- @echo CONFIG_USB_CDC_ACM=y >> prj.conf
348
- else
349
- @echo CONFIG_USB_CDC_ACM=n >> prj.conf
350
- endif
351
- endif
352
333
ifeq ($(BOARD ) , arduino_101)
353
334
ifeq ($(OS ) , Darwin)
354
335
@# work around for OSX where the xtool toolchain do not
@@ -495,9 +476,7 @@ help:
495
476
@echo " Build targets:"
496
477
@echo " all: Build for either Zephyr or Linux depending on BOARD"
497
478
@echo " zephyr: Build Zephyr for the given BOARD (A101 is default)"
498
- @echo " ide Build Zephyr in development mode for the IDE using the IDE protocol"
499
- @echo " ide_serial Build Zephyr in development mode for the IDE using UART transport"
500
- @echo " ide_term Build Zephyr in development mode for the IDE using command line terminal"
479
+ @echo " ide Build Zephyr in development mode for the IDE"
501
480
@echo " ashell Build Zephyr in development mode for command line"
502
481
@echo " debug: Run Zephyr debug target"
503
482
@echo " flash: Run Zephyr flash target"
0 commit comments