Fixup installation procedure for different Fedora versions. (#19159)

This commit is contained in:
Nick Brassel 2022-11-27 04:16:08 +11:00 committed by GitHub
parent 1e95f7be8f
commit ad7b095da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,12 @@ _qmk_install() {
clang diffutils git gcc glibc-headers kernel-devel kernel-headers \
make unzip wget zip python3 avr-binutils avr-gcc avr-gcc-c++ avr-libc \
arm-none-eabi-binutils-cs arm-none-eabi-gcc-cs arm-none-eabi-gcc-cs-c++ \
arm-none-eabi-newlib avrdude dfu-programmer dfu-util hidapi libusb-devel
arm-none-eabi-newlib avrdude dfu-programmer dfu-util hidapi
# Handle discrepancies between different Fedora versions
sudo dnf $SKIP_PROMPT install libusb-devel \
|| sudo dnf $SKIP_PROMPT install libusb1-devel libusb-compat-0.1-devel \
|| sudo dnf $SKIP_PROMPT install libusb0-devel
python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
}