Skip to content

Commit d0af4f4

Browse files
committed
Document the other package url that expressif has sometimes used
1 parent 1d541ec commit d0af4f4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
#
44

55
SKETCH := CameraWebServer.ino
6-
76
BOARD := esp32:esp32:esp32cam
8-
PACKAGE_URL := https://dl.espressif.com/dl/package_esp32_index.json
97

108
BOARD_FILENAME_SLUG := $(subst :,.,$(BOARD))
119

1210
all: $(SKETCH).$(BOARD_FILENAME_SLUG).bin
1311

12+
13+
PACKAGE_URL := https://dl.espressif.com/dl/package_esp32_index.json
14+
# Note that the package URL is sometimes documented as
15+
# https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
16+
# At the time of writing these two urls resulted in byte-for-byte identical
17+
# files, so I used the shorter URL
1418
# I dont want to use curl|sh, but this is the documented install method ...
19+
20+
1521
ARDUINO_URL := https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh
1622
bin/arduino-cli: /usr/bin/curl
1723
curl -fsSL $(ARDUINO_URL) | sh

0 commit comments

Comments
 (0)