Skip to content

Commit b471b2b

Browse files
committed
Add macos toolchain
1 parent 96de40f commit b471b2b

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

packages/esp32-idf-headers.3.0/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ opam-version: "1.2"
22
maintainer: "Lucas Pluvinage <[email protected]>"
33
authors: ["Lucas Pluvinage <[email protected]>"]
44
depends: [
5-
"gcc-toolchain-esp32"
5+
"macos-toolchain-esp32"
66
]
77
substs: ["Makefile"]
88
build: []
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Xtensa toolchain on macos host
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
opam-version: "1"
2+
maintainer: "Ioana Cristescu <[email protected]>"
3+
install: [
4+
["mkdir" "-p" "%{prefix}%/xtensa-esp32-elf"]
5+
["sh" "-c" "mv * %{prefix}%/xtensa-esp32-elf/"]
6+
["sh" "-c" "ln -s %{prefix}%/xtensa-esp32-elf/bin/* %{bin}%"]
7+
["sh" "-c" "cd %{prefix}%/xtensa-esp32-elf/ && rm -f toolchain-esp32-osx-*.env toolchain-esp32-osx-*.info toolchain-esp32-osx-*.err toolchain-esp32-osx-*.out"]
8+
]
9+
available: [ os = "macos" ]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
archive: "https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz"
2+
3+

packages/ocaml-esp32.4.07.1/opam

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ build: [
66
[ make "world-cross" "-j8"]
77
]
88
available: [ ocaml-version >= "4.07" & ocaml-version < "4.08" ]
9-
install: [
9+
install: [
1010
[ make "install-cross" ]
1111
["sh" "./install.sh" "%{prefix}%"]
1212
]
1313
remove: [
1414
[ "rm" "-rf" "%{prefix}%/esp32-sysroot" ]
1515
]
1616
depends: [
17-
"gcc-toolchain-esp32"
17+
"macos-toolchain-esp32"
1818
"ocamlfind"
1919
]
20+
synopsis: "ESP32 framework"

0 commit comments

Comments
 (0)