File tree Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 29
29
target : esp32s2
30
30
command : make dist clean
31
31
32
+ - run : echo 'TARGET=esp32s2-nojacs' > Makefile.user
33
+ - run : make prep
34
+
35
+ - name : esp-idf build
36
+ uses : espressif/esp-idf-ci-action@main
37
+ with :
38
+ esp_idf_version : v4.4.1
39
+ target : esp32s2
40
+ command : make dist clean
41
+
32
42
- run : echo 'TARGET=esp32c3' > Makefile.user
33
43
- run : make prep
34
44
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5 )
2
2
3
3
include ($ENV{IDF_PATH} /tools/cmake/project.cmake )
4
+ include (build /options.cmake )
4
5
5
6
idf_build_set_property (LINK_OPTIONS "-Wl,--wrap=esp_panic_handler" APPEND )
6
7
idf_build_set_property (LINK_OPTIONS "-Wl,--wrap=uart_hal_write_txfifo" APPEND )
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ include Makefile.user
8
8
9
9
MON_PORT ?= $(SERIAL_PORT )
10
10
11
+ ifeq ($(TARGET ) ,esp32s2-nojacs)
12
+ TARGET := esp32s2
13
+ TARGET_SUFF := -nojacs
14
+ COMPILE_OPTIONS += -DNO_JACSCRIPT=1
15
+ endif
16
+
11
17
ifeq ($(TARGET ) ,esp32s2)
12
18
GCC_PREF = xtensa-esp32s2-elf
13
19
UF2 = 1
@@ -40,6 +46,7 @@ all: check-export prep
40
46
41
47
sdkconfig.defaults : Makefile.user
42
48
cat config/sdkconfig.$(TARGET ) config/sdkconfig.common > sdkconfig.defaults
49
+ echo " idf_build_set_property(COMPILE_OPTIONS " $(COMPILE_OPTIONS ) " APPEND)" > build/options.cmake
43
50
44
51
clean :
45
52
rm -rf sdkconfig sdkconfig.defaults build
@@ -89,12 +96,12 @@ FW_VERSION = $(shell sh jacdac-c/scripts/git-version.sh)
89
96
dist : all
90
97
mkdir -p dist
91
98
ifeq ($(UF2 ) ,1)
92
- cp build/espjd.uf2 dist/jacscript-$(TARGET).uf2
99
+ cp build/espjd.uf2 dist/jacscript-$(TARGET)$(TARGET_SUFF) .uf2
93
100
else
94
- cp build/combined.bin dist/jacscript-$(TARGET)-0x0.bin
101
+ cp build/combined.bin dist/jacscript-$(TARGET)$(TARGET_SUFF) -0x0.bin
95
102
endif
96
103
# also keep ELF file for addr2line
97
- cp build/espjd.elf dist/jacscript-$(TARGET).elf
104
+ cp build/espjd.elf dist/jacscript-$(TARGET)$(TARGET_SUFF) .elf
98
105
99
106
bump :
100
107
sh ./scripts/bump.sh
Original file line number Diff line number Diff line change 8
8
#define JD_LOG DMESG
9
9
#define JD_WR_OVERHEAD 28
10
10
11
+ #ifndef NO_JACSCRIPT
11
12
#define JD_CLIENT 1
13
+ #endif
14
+
15
+ #define JD_MS_TIMER 1
16
+ #define JD_FREE_SUPPORTED 1
17
+ #define JD_ADVANCED_STRING 1
18
+ #define JD_LSTORE 1
12
19
13
20
#ifndef __XTENSA__
14
21
Original file line number Diff line number Diff line change @@ -180,12 +180,14 @@ void app_init_services(void) {
180
180
pwr_cfg .en_active_high = 1 ;
181
181
power_init (& pwr_cfg );
182
182
#endif
183
+ #ifndef NO_JACSCRIPT
183
184
jd_role_manager_init ();
184
185
init_jacscript_manager ();
185
- #if 1
186
+ #endif
186
187
wifi_init ();
187
188
azureiothub_init ();
188
189
jacscloud_init (& azureiothub_cloud );
190
+ #ifndef NO_JACSCRIPT
189
191
tsagg_init (& azureiothub_cloud );
190
192
#endif
191
193
}
You can’t perform that action at this time.
0 commit comments