Loading files
9c97482dfThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/tulipcc-498083946.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
9c97482dfThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/bin/bash
# grab_submodules.sh
# Do the first run submodule init if needed
echo `pwd`
pushd ../../ > /dev/null
if test -f ".submodules_ok"; then
echo "Submodules already loaded";
else
echo "Syncing submodules for first build..."
git submodule update --init amy
git submodule update --init micropython
cd micropython
git submodule update --init lib/axtls
git submodule update --init lib/libffi
git submodule update --init lib/mbedtls
git submodule update --init lib/berkeley-db-1.xx
git submodule update --init lib/micropython-lib
git submodule update --init lib/tinyusb
cd ..
touch .submodules_ok
fi
# Patch micropython/mpy-cross/Makefile for newer Apple clang tightenings.
# Run every invocation (even when .submodules_ok exists) and gate each
# individual sed on a grep so it stays idempotent. This way users whose
# submodules are already set up pick up fresh patches when they update
# macOS to a clang version that added new default warnings, without
# having to rm .submodules_ok.
#
# -Wno-gnu-folding-constant — Apple clang tightening, earlier round
# -Wno-unknown-warning-option — stop older clangs from erroring on
# flag names they don't recognize yet
# -Wno-unterminated-string-initialization — macOS Tahoe / clang >= 19 turned the
# {10,"r10"} style init into an error;
# py/emitinlinethumb.c uses this
# pattern intentionally (3-char array,
# null byte deliberately dropped).
if [ -f micropython/mpy-cross/Makefile ]; then
if ! grep -q -- "-Wno-gnu-folding-constant" micropython/mpy-cross/Makefile; then
sed -i.bak 's/^CWARN += /CWARN += -Wno-gnu-folding-constant /' micropython/mpy-cross/Makefile
fi
if ! grep -q -- "-Wno-unterminated-string-initialization" micropython/mpy-cross/Makefile; then
sed -i.bak 's/^CWARN += /CWARN += -Wno-unknown-warning-option -Wno-unterminated-string-initialization /' micropython/mpy-cross/Makefile
fi
fi
popd > /dev/null