From 08e9cfcd8688fc6a8fec6c6d377e8290f0b1b47f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 21 Apr 2022 15:41:33 +0200 Subject: [PATCH] soc/usb_acm: Move clone of ValentyUSB to LiteX instead of doing it in each LiteX-Boards target. --- litex/soc/integration/soc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 0732829fe..35267b45d 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -6,6 +6,7 @@ # This file is Copyright (c) 2019 Gabriel L. Somlo # SPDX-License-Identifier: BSD-2-Clause +import os import sys import time import logging @@ -1277,6 +1278,9 @@ class LiteXSoC(SoC): # USB ACM (with ValentyUSB core). elif uart_name in ["usb_acm"]: + # FIXME: do proper install of ValentyUSB. + os.system("git clone https://github.com/litex-hub/valentyusb -b hw_cdc_eptri") + sys.path.append("valentyusb") import valentyusb.usbcore.io as usbio import valentyusb.usbcore.cpu.cdc_eptri as cdc_eptri usb_pads = self.platform.request("usb")