A nightstand noise generator based on M5Stack Atom Echo and integrating with Home Assistant
1#!/usr/bin/env bash
2# ESP32 / Xtensa Rust toolchain environment.
3#
4# These were originally written by `espup install` to ~/export-esp.sh; we
5# keep them project-local instead so the home dir stays clean. If `espup
6# update` is ever run, copy any new/changed exports here from the file
7# espup writes (or run `espup install --export-file ./.envrc-esp` to write
8# them directly somewhere project-local).
9
10export PATH="$HOME/.rustup/toolchains/esp/xtensa-esp-elf/esp-15.2.0_20250920/xtensa-esp-elf/bin:$PATH"
11export LIBCLANG_PATH="$HOME/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-20.1.1_20250829/esp-clang/lib"
12
13# Project-local SONAME shim: Espressif's bundled esp-clang is linked
14# against libxml2.so.2, but Ubuntu Questing only ships libxml2.so.16.
15# The symlink in firmware/.lib points the old SONAME at the new library;
16# the ABI clang touches is small and stable enough that this works.
17export LD_LIBRARY_PATH="$PWD/firmware/.lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
18
19# Host-only secrets (OTA push directory, etc.) live in .envrc.private,
20# which is gitignored. See .envrc.private.example for the shape.
21source_env_if_exists .envrc.private