peplin / arduino.mk

DEPRECATED FORK: Arduino Makefile with chipKIT support
http://christopherpeplin.com/2011/12/chipkit-arduino-makefile/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Specific parameter hard-coded in chipKIT.mk #5

Closed rei-vilo closed 12 years ago

rei-vilo commented 12 years ago

In chipKIT.mk, _BOARD_MEGA_ is hard-coded

EXTRA_CPPFLAGS = -O2  -mno-smart-io -DARDUINO=22 -D_BOARD_MEGA_=  \
        -I$(ARDUINO_DIR)/hardware/pic32/variants/$(VARIANT)

while /Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/boards.txt specifies

uno_pic32.board=_BOARD_UNO_
mega_pic32.board=_BOARD_MEGA_

So

BOARD   = $(call PARSE_BOARD,$(BOARD_TAG),board)
EXTRA_CPPFLAGS = -O2  -mno-smart-io -DARDUINO=22 -D$(BOARD)=  \
        -I$(ARDUINO_DIR)/hardware/pic32/variants/$(VARIANT)
peplin commented 12 years ago

Great, thanks. If you want to fork this repository and send pull requests with the changes, you can get your GitHub name more directly linked to the changes.

rei-vilo commented 12 years ago

I'll do it and pull my request so you can review it.