New command: qmk console (#12828)
* stash poc * stash * tidy up implementation * Tidy up slightly for review * Tidy up slightly for review * Bodge environment to make tests pass * Refactor away from asyncio due to windows issues * Filter devices * align vid/pid printing * Add hidapi to the installers * start preparing for multiple hid_listeners * udev rules for hid_listen * refactor to move closer to end state * very basic implementation of the threaded model * refactor how vid/pid/index are supplied and parsed * windows improvements * read the report directly when usage page isn't available * add per-device colors, the choice to show names or numbers, and refactor * add timestamps * Add support for showing bootloaders * tweak the color for bootloaders * Align bootloader disconnect with connect color * add support for showing all bootloaders * fix the pyusb check * tweaks * fix exception * hide a stack trace behind -v * add --no-bootloaders option * add documentation for qmk console * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * pyformat * clean up and flesh out KNOWN_BOOTLOADERS Co-authored-by: zvecr <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
d0a3bca9ec
commit
7a25dcacff
12 changed files with 378 additions and 22 deletions
|
@ -4,13 +4,13 @@ _qmk_install() {
|
|||
echo "Installing dependencies"
|
||||
|
||||
sudo pacman --needed --noconfirm -S \
|
||||
base-devel clang diffutils gcc git unzip wget zip \
|
||||
python-pip \
|
||||
avr-binutils \
|
||||
arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-newlib \
|
||||
avrdude dfu-programmer dfu-util
|
||||
base-devel clang diffutils gcc git unzip wget zip python-pip \
|
||||
avr-binutils arm-none-eabi-binutils arm-none-eabi-gcc \
|
||||
arm-none-eabi-newlib avrdude dfu-programmer dfu-util
|
||||
sudo pacman --needed --noconfirm -U https://archive.archlinux.org/packages/a/avr-gcc/avr-gcc-8.3.0-1-x86_64.pkg.tar.xz
|
||||
sudo pacman --needed --noconfirm -S avr-libc # Must be installed after the above, or it will bring in the latest avr-gcc instead
|
||||
|
||||
sudo pacman --needed --noconfirm -S hidapi # This will fail if the community repo isn't enabled
|
||||
|
||||
python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
|
||||
}
|
||||
|
|
|
@ -13,10 +13,9 @@ _qmk_install() {
|
|||
|
||||
sudo apt-get -yq install \
|
||||
build-essential clang-format diffutils gcc git unzip wget zip \
|
||||
python3-pip \
|
||||
binutils-avr gcc-avr avr-libc \
|
||||
binutils-arm-none-eabi gcc-arm-none-eabi libnewlib-arm-none-eabi \
|
||||
avrdude dfu-programmer dfu-util teensy-loader-cli libusb-dev
|
||||
python3-pip binutils-avr gcc-avr avr-libc binutils-arm-none-eabi \
|
||||
gcc-arm-none-eabi libnewlib-arm-none-eabi avrdude dfu-programmer \
|
||||
dfu-util teensy-loader-cli libhidapi-hidraw0
|
||||
|
||||
python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
|
||||
}
|
||||
|
|
|
@ -5,11 +5,10 @@ _qmk_install() {
|
|||
|
||||
# TODO: Check whether devel/headers packages are really needed
|
||||
sudo dnf -y install \
|
||||
clang diffutils git gcc glibc-headers kernel-devel kernel-headers make unzip wget zip \
|
||||
python3 \
|
||||
avr-binutils avr-gcc avr-libc \
|
||||
clang diffutils git gcc glibc-headers kernel-devel kernel-headers \
|
||||
make unzip wget zip python3 avr-binutils avr-gcc avr-libc \
|
||||
arm-none-eabi-binutils-cs arm-none-eabi-gcc-cs arm-none-eabi-newlib \
|
||||
avrdude dfu-programmer dfu-util libusb-devel
|
||||
avrdude dfu-programmer dfu-util hidapi
|
||||
|
||||
python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
|
||||
}
|
||||
|
|
|
@ -22,9 +22,10 @@ _qmk_install() {
|
|||
echo "sys-devel/gcc multilib" | sudo tee --append /etc/portage/package.use/qmkfirmware >/dev/null
|
||||
sudo emerge -auN sys-devel/gcc
|
||||
sudo emerge -au --noreplace \
|
||||
app-arch/unzip app-arch/zip net-misc/wget sys-devel/clang sys-devel/crossdev \
|
||||
\>=dev-lang/python-3.7 \
|
||||
dev-embedded/avrdude dev-embedded/dfu-programmer app-mobilephone/dfu-util
|
||||
app-arch/unzip app-arch/zip net-misc/wget sys-devel/clang \
|
||||
sys-devel/crossdev \>=dev-lang/python-3.7 dev-embedded/avrdude \
|
||||
dev-embedded/dfu-programmer app-mobilephone/dfu-util sys-apps/hwloc \
|
||||
dev-libs/hidapi
|
||||
|
||||
sudo crossdev -s4 --stable --g \<9 --portage --verbose --target avr
|
||||
sudo crossdev -s4 --stable --g \<9 --portage --verbose --target arm-none-eabi
|
||||
|
|
|
@ -9,11 +9,10 @@ _qmk_install() {
|
|||
|
||||
pacman --needed --noconfirm --disable-download-timeout -S pactoys-git
|
||||
pacboy sync --needed --noconfirm --disable-download-timeout \
|
||||
base-devel: toolchain:x clang:x git: unzip: \
|
||||
python3-pip:x \
|
||||
avr-binutils:x avr-gcc:x avr-libc:x \
|
||||
arm-none-eabi-binutils:x arm-none-eabi-gcc:x arm-none-eabi-newlib:x \
|
||||
avrdude:x bootloadhid:x dfu-programmer:x dfu-util:x teensy-loader-cli:x
|
||||
base-devel: toolchain:x clang:x git: unzip: python3-pip:x \
|
||||
avr-binutils:x avr-gcc:x avr-libc:x arm-none-eabi-binutils:x \
|
||||
arm-none-eabi-gcc:x arm-none-eabi-newlib:x avrdude:x bootloadhid:x \
|
||||
dfu-programmer:x dfu-util:x teensy-loader-cli:x hidapi:x
|
||||
|
||||
_qmk_install_drivers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue