One-KVM/hid/pico/Makefile
mofeng-git 7b3335ea94 Add support for PiKVM Switch and related features
This commit introduces several new components and improvements:
- Added Switch module with firmware update and configuration support
- Implemented new media streaming capabilities
- Updated various UI elements and CSS styles
- Enhanced keyboard and mouse event handling
- Added new validators and configuration options
- Updated Python version support to 3.13
- Improved error handling and logging
2025-02-01 01:08:36 +00:00

39 lines
840 B
Makefile

all: deps
rm -f hid.uf2
cmake -B .build
cmake --build .build --config Release -- -j
ln .build/src/hid.uf2 .
upload: install
install: all
sudo mount /dev/sda1 /mnt
sudo cp hid.uf2 /mnt
sudo umount /mnt
clean:
rm -rf .build hid.uf2
clean-all: clean
rm -rf .pico-sdk* .tinyusb* .ps2x2pico
define libdep
rm -rf .$(1).tmp
git clone https://github.com/$(2) .$(1).tmp
cd .$(1).tmp \
&& git checkout $(3) \
&& (test ! -f .gitmodules || git submodule update --init)
mv .$(1).tmp .$(1)
endef
.pico-sdk:
$(call libdep,pico-sdk,raspberrypi/pico-sdk,6a7db34ff63345a7badec79ebea3aaef1712f374)
.tinyusb:
$(call libdep,tinyusb,hathach/tinyusb,d713571cd44f05d2fc72efc09c670787b74106e0)
.ps2x2pico:
$(call libdep,ps2x2pico,No0ne/ps2x2pico,26ce89d597e598bb0ac636622e064202d91a9efc)
deps: .pico-sdk .tinyusb .ps2x2pico
.PHONY: deps