mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 13:32:04 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
13 lines
338 B
Bash
Executable File
13 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
rm -f spidev.c
|
|
wget https://raw.githubusercontent.com/commaai/agnos-kernel-sdm845/master/drivers/spi/spidev.c
|
|
|
|
# diff spidev.c spidev_panda.c > patch
|
|
# git diff --no-index spidev.c spidev_panda.c
|
|
patch -o spidev_panda.c spidev.c -i patch
|