diff --git a/Makefile b/Makefile index f619a91..85c4fb2 100644 --- a/Makefile +++ b/Makefile @@ -99,6 +99,8 @@ build/micropython/ports/unix/modules/.kmk_frozen: upy-freeze.txt submodules.toml xargs -I '{}' rsync -ah {} build/micropython/ports/unix/modules/ @touch $@ +freeze-stm32-build-deps: build/micropython/ports/stm32/freeze/.kmk_frozen + build/micropython/ports/stm32/freeze/.kmk_frozen: upy-freeze.txt submodules.toml @echo "===> Preparing vendored dependencies for bundling into MicroPython for STM32" @echo "===> Preparing vendored dependencies for bundling into MicroPython for STM32" >> .build.log @@ -141,7 +143,7 @@ ifndef SKIP_KEYMAP_VALIDATION @MICROPYPATH=./ ./bin/micropython.sh bin/keymap_sanity_check.py ${USER_KEYMAP} endif @rsync -ah ${USER_KEYMAP} build/micropython/ports/stm32/freeze/main.py - @rsync -ah kmk/entrypoints/global.py build/micropython/ports/stm32/freeze/_main.py + @rsync -ah main.py build/micropython/ports/stm32/freeze/_main.py @rsync -ah kmk/entrypoints/handwire/pyboard_boot.py build/micropython/ports/stm32/freeze/_boot.py @$(MAKE) AMPY_PORT=/dev/ttyACM0 AMPY_BAUD=115200 micropython-build-pyboard diff --git a/main.py b/main.py index 5c482b5..a29d7d9 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,3 @@ from kmk_keyboard import main -if __name__ == '__main__': - main() +main()