Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/esp32-idf-headers.3.0/opam
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
opam-version: "1.2"
opam-version: "2.0"
maintainer: "Lucas Pluvinage <[email protected]>"
authors: ["Lucas Pluvinage <[email protected]>"]
depends: [
"gcc-toolchain-esp32"
"gcc-toolchain-esp32" { os = "linux" }
"macos-toolchain-esp32" { os != "linux" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to have something more precise than { os != "linux" } for macos ? I wouldn't want windows people to download this inadvertently !

Looks like os = "macos" should do the trick.

]
substs: ["Makefile"]
build: []
Expand Down
1 change: 1 addition & 0 deletions packages/macos-toolchain-esp32.1/descr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Xtensa toolchain on macos host
9 changes: 9 additions & 0 deletions packages/macos-toolchain-esp32.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
opam-version: "1"
maintainer: "Ioana Cristescu <[email protected]>"
install: [
["mkdir" "-p" "%{prefix}%/xtensa-esp32-elf"]
["sh" "-c" "mv * %{prefix}%/xtensa-esp32-elf/"]
["sh" "-c" "ln -s %{prefix}%/xtensa-esp32-elf/bin/* %{bin}%"]
["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"]
]
available: [ os = "macos" ]
3 changes: 3 additions & 0 deletions packages/macos-toolchain-esp32.1/url
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
archive: "https://dl.espressif.com/dl/xtensa-esp32-elf-osx-1.22.0-80-g6c4433a-5.2.0.tar.gz"


12 changes: 7 additions & 5 deletions packages/ocaml-esp32.4.06.0/opam
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
opam-version: "1.2"
opam-version: "2.0"
maintainer: "Lucas Pluvinage <[email protected]>"
substs: [ "esp32.conf" ]
build: [
[ "sh" "./configure" "-target" "xtensa-esp32-elf" "-target-bindir" "%{prefix}%/esp32-sysroot/bin" "-prefix" "%{prefix}%/esp32-sysroot" "-lto" "-flambda" ]
[ make "world-cross" "-j8"]
]
available: [ ocaml-version >= "4.06" & ocaml-version < "4.07" ]
install: [
[ make "install-cross" ]
["sh" "./install.sh" "%{prefix}%"]
Expand All @@ -14,6 +13,9 @@ remove: [
[ "rm" "-rf" "%{prefix}%/esp32-sysroot" ]
]
depends: [
"gcc-toolchain-esp32"
"ocamlfind"
]
"gcc-toolchain-esp32" { os = "linux" }
"macos-toolchain-esp32" { os != "linux" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment

"ocamlfind"
"ocaml" { >= "4.06" & < "4.07" }
]
synopsis: "ESP32 framework"
12 changes: 7 additions & 5 deletions packages/ocaml-esp32.4.07.1/opam
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
opam-version: "1.2"
opam-version: "2.0"
maintainer: "Lucas Pluvinage <[email protected]>"
substs: [ "esp32.conf" ]
build: [
[ "sh" "./configure" "-target" "xtensa-esp32-elf" "-target-bindir" "%{prefix}%/esp32-sysroot/bin" "-prefix" "%{prefix}%/esp32-sysroot" "-lto" "-flambda" ]
[ make "world-cross" "-j8"]
]
available: [ ocaml-version >= "4.07" & ocaml-version < "4.08" ]
install: [
install: [
[ make "install-cross" ]
["sh" "./install.sh" "%{prefix}%"]
]
remove: [
[ "rm" "-rf" "%{prefix}%/esp32-sysroot" ]
]
depends: [
"gcc-toolchain-esp32"
"ocamlfind"
"gcc-toolchain-esp32" { os = "linux" }
"macos-toolchain-esp32" { os != "linux" }
"ocamlfind"
"ocaml" {>= "4.07" & < "4.08" }
]
synopsis: "Ocaml for esp32"