summaryrefslogtreecommitdiff
path: root/hid/pico/Makefile
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-08 14:00:28 +0300
committerMaxim Devaev <[email protected]>2023-08-08 14:00:28 +0300
commit895ec1cb737a655a9b8ccdc6b6a911a9bfdd8e74 (patch)
treed7817a0f2880f4740839ec843ef4c28f3f3ad44f /hid/pico/Makefile
parentcd599060a0febeaa8a0a96e222a1602c64924268 (diff)
pico hid: ps/2 stubs
Diffstat (limited to 'hid/pico/Makefile')
-rw-r--r--hid/pico/Makefile25
1 files changed, 11 insertions, 14 deletions
diff --git a/hid/pico/Makefile b/hid/pico/Makefile
index 409f8067..714c8e9d 100644
--- a/hid/pico/Makefile
+++ b/hid/pico/Makefile
@@ -18,19 +18,16 @@ clean-all: clean
rm -rf .pico-sdk.tmp .pico-sdk .tinyusb.tmp .tinyusb
+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:
- rm -rf .pico-sdk.tmp
- git clone https://github.com/raspberrypi/pico-sdk .pico-sdk.tmp
- cd .pico-sdk.tmp \
- && git checkout 62201a83e2693ea165fdc7669b4ab2f3b4f43c36 \
- && git submodule update --init
- mv .pico-sdk.tmp .pico-sdk
-
-
+ $(call libdep,pico-sdk,raspberrypi/pico-sdk,62201a83e2693ea165fdc7669b4ab2f3b4f43c36)
.tinyusb:
- rm -rf .tinyusb.tmp
- git clone https://github.com/hathach/tinyusb .tinyusb.tmp
- cd .tinyusb.tmp \
- && git checkout c998e9c60bc76894006c3bd049d661124a9bfbfd \
- && git submodule update --init
- mv .tinyusb.tmp .tinyusb
+ $(call libdep,tinyusb,hathach/tinyusb,c998e9c60bc76894006c3bd049d661124a9bfbfd)
+# TODO: PS2: Add your library here and add it to "all" and "clean-all" targets