summaryrefslogtreecommitdiff
path: root/util/install/fedora.sh
blob: 03e05a42fece5b62b90aa8b1b7fbfae2a98e6ccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

_qmk_install() {
    echo "Installing dependencies"

    # TODO: Check whether devel/headers packages are really needed
    sudo dnf $SKIP_PROMPT 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

    # 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
}