Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-a-v/esp82xx-nonos-linklayer
esp8266 link layer API for new ip stack - applied to lwIP-v2
https://github.com/d-a-v/esp82xx-nonos-linklayer
Last synced: about 1 month ago
JSON representation
esp8266 link layer API for new ip stack - applied to lwIP-v2
- Host: GitHub
- URL: https://github.com/d-a-v/esp82xx-nonos-linklayer
- Owner: d-a-v
- Created: 2017-06-02T23:12:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T23:05:06.000Z (12 months ago)
- Last Synced: 2024-01-11T00:51:33.155Z (12 months ago)
- Language: C
- Homepage:
- Size: 551 KB
- Stars: 31
- Watchers: 14
- Forks: 21
- Open Issues: 12
-
Metadata Files:
- Readme: README-CMake.md
Awesome Lists containing this project
README
# Building
- Follow the `git` version installation instructions from the [**Build** section of the README](README.md#Build)
- Ensure that the toolchain is installed:
- run `tools/get.py` for Arduino IDE so toolchain directory is created in the tools/ directory
- run `pio platform install --with-package toolchain-xtensa espressif8266` for PlatformIO so the toolchain files are installed into the ~/.platformio/packages/toolchain-xtensa (or the versioned dir, depending on existing packages)To build & install everything into the specific ESP8266 Core directory:
```
$ cmake \
--toolchain=cmake/toolchain-esp8266.cmake \
-DCMAKE_PROGRAM_PATH= \
-DESP8266_ARDUINO_CORE_DIR= \
-B build
$ cmake --build build
$ cmake --install build --config Release
```To build a single variant:
```
$ cmake --build --target lwip2-1460
```To build in parallel:
```
# cmake --build --parallel
```
The option specifies the maximum number of concurrent processes to use when building. If \ is omitted the native build tool's default number is used.Run `cmake --build --target help` to list all of the available targets.
# Windows
## Windows Subsystem for Linux (WSL)
- Install the WSL environment by following the guide at https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Install the Linux distribution (for the list, see the output of `wsl --list --online`)
- [Launch the distribution terminal and follow the instructions above](#Building)## Using Windows Development Tools
- Download the Visual Studio Installer at https://visualstudio.microsoft.com/
- In addition to the core package, install C++ dev tools (~7GB in size total)
- Run in "Native Tools Command Prompt for Visual Studio":
```
> cmake -G "Ninja" -B build
```
Or, using NMake generator:
```
> cmake -G "NMake Makefiles" -B build
```## Manually installing the tools
For example, to use ninja build system:
- Download and install the latest cmake package at https://cmake.org/download/
- Download the latest ninja package at https://github.com/ninja-build/ninja/releases
- Make sure both cmake.exe and ninja.exe locations are in PATH (or manually add them to the current powershell session via `$env:PATH+=";C:\Program Files\CMake\bin"`, or using the GUI controlling the environment variables).
- Configure the build using the Ninja generator:
```
> cmake -G "Ninja" -B build
```# Maintainer notice
To add another variant, add `glue_variant(NAME DEFINITIONS )` to the CMakeLists.txt. Notice that NAME must be unique.