Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
6f36b7c1
Commit
6f36b7c1
authored
9 years ago
by
Scott Lahteine
Browse files
Options
Downloads
Plain Diff
Merge pull request #3224 from yarda/fix-melzi2-arduino-1.6.x
Fixed Makefile to work with Melzi2 boards on arduino-1.6.x
parents
050e0bd2
d229c58d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/Makefile
+18
-11
18 additions, 11 deletions
Marlin/Makefile
with
18 additions
and
11 deletions
Marlin/Makefile
+
18
−
11
View file @
6f36b7c1
...
@@ -41,17 +41,17 @@ HARDWARE_MOTHERBOARD ?= 11
...
@@ -41,17 +41,17 @@ HARDWARE_MOTHERBOARD ?= 11
# Arduino source install directory, and version number
# Arduino source install directory, and version number
# On most linuxes this will be /usr/share/arduino
# On most linuxes this will be /usr/share/arduino
ARDUINO_INSTALL_DIR
?=
/usr/share/a
rduino
ARDUINO_INSTALL_DIR
?=
${
HOME
}
/A
rduino
ARDUINO_VERSION
?=
10
5
ARDUINO_VERSION
?=
10
6
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
# You can optionally set a path to the avr-gcc tools. Requires a trailing slash. (ex: /usr/local/avr-gcc/bin)
AVR_TOOLS_PATH
?=
AVR_TOOLS_PATH
?=
#Programmer configuration
#Programmer configuration
UPLOAD_RATE
?=
1152
00
UPLOAD_RATE
?=
576
00
AVRDUDE_PROGRAMMER
?=
wir
in
g
AVRDUDE_PROGRAMMER
?=
ardu
in
o
# on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
# on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1
UPLOAD_PORT
?=
/dev/
arduino
UPLOAD_PORT
?=
/dev/
ttyUSB0
#Directory used to build files in, contains all the build files, from object files to the final hex file
#Directory used to build files in, contains all the build files, from object files to the final hex file
#on linux it is best to put an absolute path like /home/username/tmp .
#on linux it is best to put an absolute path like /home/username/tmp .
...
@@ -147,6 +147,9 @@ MCU ?= atmega1284p
...
@@ -147,6 +147,9 @@ MCU ?= atmega1284p
else
ifeq
($(HARDWARE_MOTHERBOARD),66)
else
ifeq
($(HARDWARE_MOTHERBOARD),66)
HARDWARE_VARIANT
?=
Sanguino
HARDWARE_VARIANT
?=
Sanguino
MCU
?=
atmega1284p
MCU
?=
atmega1284p
else
ifeq
($(HARDWARE_MOTHERBOARD),69)
HARDWARE_VARIANT
?=
Sanguino
MCU
?=
atmega1284p
#Ultimaker
#Ultimaker
else
ifeq
($(HARDWARE_MOTHERBOARD),7)
else
ifeq
($(HARDWARE_MOTHERBOARD),7)
...
@@ -225,7 +228,7 @@ F_CPU ?= 16000000
...
@@ -225,7 +228,7 @@ F_CPU ?= 16000000
# Libraries, the "hardware variant" are for boards
# Libraries, the "hardware variant" are for boards
# that derives from that, and their source are present in
# that derives from that, and their source are present in
# the main Marlin source directory
# the main Marlin source directory
ifeq
($(HARDWARE_VARIANT),
arduino
)
ifeq
($(HARDWARE_VARIANT),
$(filter $(HARDWARE_VARIANT),arduino Sanguino)
)
HARDWARE_DIR
=
$(
ARDUINO_INSTALL_DIR
)
/hardware
HARDWARE_DIR
=
$(
ARDUINO_INSTALL_DIR
)
/hardware
else
else
ifeq
($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
ifeq
($(shell [ $(ARDUINO_VERSION) -ge 100 ] && echo true), true)
...
@@ -234,7 +237,7 @@ else
...
@@ -234,7 +237,7 @@ else
HARDWARE_DIR
=
../ArduinoAddons/Arduino_0.xx
HARDWARE_DIR
=
../ArduinoAddons/Arduino_0.xx
endif
endif
endif
endif
HARDWARE_SRC
=
$(
HARDWARE_DIR
)
/
$(
HARDWARE_VARIANT
)
/cores/arduino
HARDWARE_SRC
=
$(
HARDWARE_DIR
)
/
marlin/avr
/cores/arduino
TARGET
=
$(
notdir
$(
CURDIR
))
TARGET
=
$(
notdir
$(
CURDIR
))
...
@@ -245,9 +248,9 @@ TARGET = $(notdir $(CURDIR))
...
@@ -245,9 +248,9 @@ TARGET = $(notdir $(CURDIR))
VPATH
=
.
VPATH
=
.
VPATH
+=
$(
BUILD_DIR
)
VPATH
+=
$(
BUILD_DIR
)
VPATH
+=
$(
HARDWARE_SRC
)
VPATH
+=
$(
HARDWARE_SRC
)
ifeq
($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy))
ifeq
($(HARDWARE_VARIANT), $(filter $(HARDWARE_VARIANT),arduino Teensy
Sanguino
))
VPATH
+=
$(
ARD
UINO_INSTALL_DIR
)
/libraries/LiquidCrystal
VPATH
+=
$(
H
ARD
WARE_DIR
)
/marlin/avr
/libraries/LiquidCrystal
/src
VPATH
+=
$(
ARD
UINO_INSTALL_DIR
)
/libraries/SPI
VPATH
+=
$(
H
ARD
WARE_DIR
)
/marlin/avr
/libraries/SPI
ifeq
($(LIQUID_TWI2), 1)
ifeq
($(LIQUID_TWI2), 1)
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/libraries/Wire
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/libraries/Wire
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/libraries/Wire/utility
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/libraries/Wire/utility
...
@@ -274,13 +277,17 @@ ifeq ($(HARDWARE_VARIANT), arduino)
...
@@ -274,13 +277,17 @@ ifeq ($(HARDWARE_VARIANT), arduino)
HARDWARE_SUB_VARIANT
?=
mega
HARDWARE_SUB_VARIANT
?=
mega
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/hardware/arduino/variants/
$(
HARDWARE_SUB_VARIANT
)
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/hardware/arduino/variants/
$(
HARDWARE_SUB_VARIANT
)
else
else
ifeq
($(HARDWARE_VARIANT), Sanguino)
VPATH
+=
$(
HARDWARE_DIR
)
/marlin/avr/variants/sanguino
else
HARDWARE_SUB_VARIANT
?=
standard
HARDWARE_SUB_VARIANT
?=
standard
VPATH
+=
$(
HARDWARE_DIR
)
/
$(
HARDWARE_VARIANT
)
/variants/
$(
HARDWARE_SUB_VARIANT
)
VPATH
+=
$(
HARDWARE_DIR
)
/
$(
HARDWARE_VARIANT
)
/variants/
$(
HARDWARE_SUB_VARIANT
)
endif
endif
endif
SRC
=
wiring.c
\
SRC
=
wiring.c
\
wiring_analog.c wiring_digital.c
\
wiring_analog.c wiring_digital.c
\
wiring_pulse.c
\
wiring_pulse.c
\
wiring_shift.c WInterrupts.c
wiring_shift.c WInterrupts.c
hooks.c
ifeq
($(HARDWARE_VARIANT), Teensy)
ifeq
($(HARDWARE_VARIANT), Teensy)
SRC
=
wiring.c
SRC
=
wiring.c
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/hardware/teensy/cores/teensy
VPATH
+=
$(
ARDUINO_INSTALL_DIR
)
/hardware/teensy/cores/teensy
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment