Convert Makefile to use arduino-cli since that replaces arduino-core and arduino-builder.

This commit is contained in:
Andrew Gillham
2021-12-21 11:11:38 -06:00
parent bd1fbe504e
commit 4f7f86f6d4

View File

@@ -1,19 +1,24 @@
#
# Makefile for an Arduino based logic analyzer using the 'arduino-core'
# package and makefiles.
# Makefile for an Arduino based logic analyzer using the arduino-cli
#
# $Id: Makefile,v 1.3 2011-03-07 02:47:26 gillham Exp $
#
ARDUINO_DIR = /usr/share/arduino
TARGET = logic_analyzer
ARDUINO_LIBS =
FQBN = arduino:avr:diecimila
SERIAL = /dev/ttyUSB*
MCU = atmega328p
F_CPU = 16000000
ARDUINO_PORT = /dev/ttyUSB*
AVRDUDE_ARD_BAUDRATE = 57600
AVRDUDE_ARD_PROGRAMMER = arduino
include /usr/share/arduino/Arduino.mk
all:
@echo ""
@echo "---> run 'make build' to compile for Arduino Duemilanove"
@echo "---> run 'make upload' to upload to /dev/ttyUSB*"
@echo ""
build:
arduino-cli compile --fqbn $(FQBN) $(TARGET)
upload:
arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET)
#
# end-of-file
#