mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 17:11:52 +08:00
Stm32 init (#100)
This commit is contained in:
19
hid/patch.py
19
hid/patch.py
@@ -34,11 +34,16 @@ def _patch(path: str, patch_path: str) -> None:
|
||||
|
||||
|
||||
# =====
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-main-no-usb.patch")
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-optional-cdc.patch")
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-get-plugged-endpoint.patch")
|
||||
if env.GetProjectOption("platform") == "ststm32":
|
||||
_patch(_get_pkg_path("framework-arduinoststm32-maple"), "patches/platformio-stm32f1-no-serial-usb.patch")
|
||||
elif env.GetProjectOption("platform") == "atmelavr":
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-main-no-usb.patch")
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-optional-cdc.patch")
|
||||
_patch(_get_pkg_path("framework-arduino-avr"), "patches/arduino-get-plugged-endpoint.patch")
|
||||
|
||||
_libs = _get_libs()
|
||||
_patch(_libs["HID-Project"], "patches/hid-shut-up.patch")
|
||||
_patch(_libs["HID-Project"], "patches/hid-no-singletones.patch")
|
||||
_patch(_libs["HID-Project"], "patches/hid-win98.patch")
|
||||
_libs = _get_libs()
|
||||
_patch(_libs["HID-Project"], "patches/hid-shut-up.patch")
|
||||
_patch(_libs["HID-Project"], "patches/hid-no-singletones.patch")
|
||||
_patch(_libs["HID-Project"], "patches/hid-win98.patch")
|
||||
else:
|
||||
assert(False)
|
||||
|
||||
Reference in New Issue
Block a user