diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-17 20:02:30 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-17 20:02:30 +0300 |
commit | 895ff5b5d47970154d9d2d7051eae2be8872228f (patch) | |
tree | 8d06a6b049491243d13b0f08bd12cb03c9344ace /linux-compatible-tty.conf | |
parent | 30a4bc671d5a9e84fff60f4cd485dc070d5724a8 (diff) | |
download | shmotbox-895ff5b5d47970154d9d2d7051eae2be8872228f.tar.gz |
added Makefile for arduino-cli
* Upload works on FreeBSD via Linuxator but only if Linux-like device names will be created.
This can be achived by installing linux-compatible-tty.conf.
* Alternatively, it would also be possible to manually invoke avrdude.
Diffstat (limited to 'linux-compatible-tty.conf')
-rw-r--r-- | linux-compatible-tty.conf | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linux-compatible-tty.conf b/linux-compatible-tty.conf new file mode 100644 index 0000000..086aa50 --- /dev/null +++ b/linux-compatible-tty.conf @@ -0,0 +1,20 @@ +# This FreeBSD devd-script creates Linux-like TTY device nodes under /compat/ubuntu/dev/. +# This fixes `arduino-cli upload`. + +notify 100 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "CREATE"; + match "cdev" "cuaU[0-9]+"; + + action "ln -s $cdev /compat/ubuntu/dev/`echo $cdev | sed 's/^cuaU/ttyACM/'`"; +}; + +notify 100 { + match "system" "DEVFS"; + match "subsystem" "CDEV"; + match "type" "DESTROY"; + match "cdev" "cuaU[0-9]+"; + + action "rm /compat/ubuntu/dev/`echo $cdev | sed 's/^cuaU/ttyACM/'`"; +}; |