--- hardware/cores/arduino/Makefile 2009-10-16 23:18:21.000000000 -0400 +++ hardware/cores/arduino/Makefile 2009-10-16 23:20:02.000000000 -0400 @@ -35,8 +35,8 @@ # $Id: Makefile-0017.patch,v 1.1 2009/10/17 18:15:11 nixphoeni Exp $ TARGET = $(notdir $(CURDIR)) -INSTALL_DIR = ../../.. -PORT = /dev/tty.usb* +INSTALL_DIR = /usr/share/arduino-0017 +PORT = /dev/ttyUSB1 UPLOAD_RATE = 19200 AVRDUDE_PROGRAMMER = stk500v1 MCU = atmega168 @@ -46,7 +46,7 @@ # Below here nothing should be changed... ARDUINO = $(INSTALL_DIR)/hardware/cores/arduino -AVR_TOOLS_PATH = $(INSTALL_DIR)/hardware/tools/avr/bin +AVR_TOOLS_PATH = /usr/bin SRC = $(ARDUINO)/pins_arduino.c $(ARDUINO)/wiring.c \ $(ARDUINO)/wiring_analog.c $(ARDUINO)/wiring_digital.c \ $(ARDUINO)/wiring_pulse.c $(ARDUINO)/wiring_serial.c \ @@ -88,13 +88,13 @@ CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA) CXXFLAGS = $(CDEFS) $(CINCS) -O$(OPT) #ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs -LDFLAGS = -lm +LDFLAGS = -L/usr/avr/lib -lm # Programming support using avrdude. Settings and variables. AVRDUDE_PORT = $(PORT) AVRDUDE_WRITE_FLASH = -U flash:w:applet/$(TARGET).hex -AVRDUDE_FLAGS = -V -F -C $(INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf \ +AVRDUDE_FLAGS = -V -F -C /etc/avrdude.conf \ -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) \ -b $(UPLOAD_RATE)