Merge pull request #388 from sej7278/master
Replace $VENDOR with $ARDMK_VENDOR
This commit is contained in:
commit
0ce685b1a1
4 changed files with 16 additions and 15 deletions
22
Arduino.mk
22
Arduino.mk
|
@ -319,11 +319,11 @@ endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# 1.5.x vendor - defaults to arduino
|
# 1.5.x vendor - defaults to arduino
|
||||||
ifndef VENDOR
|
ifndef ARDMK_VENDOR
|
||||||
VENDOR = arduino
|
ARDMK_VENDOR = arduino
|
||||||
$(call show_config_variable,VENDOR,[DEFAULT])
|
$(call show_config_variable,ARDMK_VENDOR,[DEFAULT])
|
||||||
else
|
else
|
||||||
$(call show_config_variable,VENDOR,[USER])
|
$(call show_config_variable,ARDMK_VENDOR,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -474,7 +474,7 @@ $(call show_config_variable,ARDUINO_LIB_PATH,[COMPUTED],(from ARDUINO_DIR))
|
||||||
ifndef ARDUINO_PLATFORM_LIB_PATH
|
ifndef ARDUINO_PLATFORM_LIB_PATH
|
||||||
ifeq ($(shell expr $(ARDUINO_VERSION) '>' 150), 1)
|
ifeq ($(shell expr $(ARDUINO_VERSION) '>' 150), 1)
|
||||||
# only for 1.5
|
# only for 1.5
|
||||||
ARDUINO_PLATFORM_LIB_PATH = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/libraries
|
ARDUINO_PLATFORM_LIB_PATH = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/libraries
|
||||||
$(call show_config_variable,ARDUINO_PLATFORM_LIB_PATH,[COMPUTED],(from ARDUINO_DIR))
|
$(call show_config_variable,ARDUINO_PLATFORM_LIB_PATH,[COMPUTED],(from ARDUINO_DIR))
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
@ -511,14 +511,14 @@ ifdef ALTERNATE_CORE_PATH
|
||||||
else
|
else
|
||||||
|
|
||||||
ifndef ARDUINO_VAR_PATH
|
ifndef ARDUINO_VAR_PATH
|
||||||
ARDUINO_VAR_PATH = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/variants
|
ARDUINO_VAR_PATH = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/variants
|
||||||
$(call show_config_variable,ARDUINO_VAR_PATH,[COMPUTED],(from ARDUINO_DIR))
|
$(call show_config_variable,ARDUINO_VAR_PATH,[COMPUTED],(from ARDUINO_DIR))
|
||||||
else
|
else
|
||||||
$(call show_config_variable,ARDUINO_VAR_PATH,[USER])
|
$(call show_config_variable,ARDUINO_VAR_PATH,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef BOARDS_TXT
|
ifndef BOARDS_TXT
|
||||||
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/boards.txt
|
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/boards.txt
|
||||||
$(call show_config_variable,BOARDS_TXT,[COMPUTED],(from ARDUINO_DIR))
|
$(call show_config_variable,BOARDS_TXT,[COMPUTED],(from ARDUINO_DIR))
|
||||||
else
|
else
|
||||||
$(call show_config_variable,BOARDS_TXT,[USER])
|
$(call show_config_variable,BOARDS_TXT,[USER])
|
||||||
|
@ -704,16 +704,16 @@ else
|
||||||
$(call show_config_variable,OBJDIR,[USER])
|
$(call show_config_variable,OBJDIR,[USER])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Now that we have ARDUINO_DIR, VENDOR, ARCHITECTURE and CORE,
|
# Now that we have ARDUINO_DIR, ARDMK_VENDOR, ARCHITECTURE and CORE,
|
||||||
# we can set ARDUINO_CORE_PATH.
|
# we can set ARDUINO_CORE_PATH.
|
||||||
ifndef ARDUINO_CORE_PATH
|
ifndef ARDUINO_CORE_PATH
|
||||||
ifeq ($(strip $(CORE)),)
|
ifeq ($(strip $(CORE)),)
|
||||||
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/cores/arduino
|
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/cores/arduino
|
||||||
$(call show_config_variable,ARDUINO_CORE_PATH,[DEFAULT])
|
$(call show_config_variable,ARDUINO_CORE_PATH,[DEFAULT])
|
||||||
else
|
else
|
||||||
ARDUINO_CORE_PATH = $(ALTERNATE_CORE_PATH)/cores/$(CORE)
|
ARDUINO_CORE_PATH = $(ALTERNATE_CORE_PATH)/cores/$(CORE)
|
||||||
ifeq ($(wildcard $(ARDUINO_CORE_PATH)),)
|
ifeq ($(wildcard $(ARDUINO_CORE_PATH)),)
|
||||||
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/cores/$(CORE)
|
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/cores/$(CORE)
|
||||||
$(call show_config_variable,ARDUINO_CORE_PATH,[COMPUTED],(from ARDUINO_DIR, BOARD_TAG and boards.txt))
|
$(call show_config_variable,ARDUINO_CORE_PATH,[COMPUTED],(from ARDUINO_DIR, BOARD_TAG and boards.txt))
|
||||||
else
|
else
|
||||||
$(call show_config_variable,ARDUINO_CORE_PATH,[COMPUTED],(from ALTERNATE_CORE_PATH, BOARD_TAG and boards.txt))
|
$(call show_config_variable,ARDUINO_CORE_PATH,[COMPUTED],(from ALTERNATE_CORE_PATH, BOARD_TAG and boards.txt))
|
||||||
|
@ -1121,7 +1121,7 @@ endif
|
||||||
|
|
||||||
# either calculate parent dir from arduino dir, or user-defined path
|
# either calculate parent dir from arduino dir, or user-defined path
|
||||||
ifndef BOOTLOADER_PARENT
|
ifndef BOOTLOADER_PARENT
|
||||||
BOOTLOADER_PARENT = $(ARDUINO_DIR)/hardware/$(VENDOR)/$(ARCHITECTURE)/bootloaders
|
BOOTLOADER_PARENT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE)/bootloaders
|
||||||
$(call show_config_variable,BOOTLOADER_PARENT,[COMPUTED],(from ARDUINO_DIR))
|
$(call show_config_variable,BOOTLOADER_PARENT,[COMPUTED],(from ARDUINO_DIR))
|
||||||
else
|
else
|
||||||
$(call show_config_variable,BOOTLOADER_PARENT,[USER])
|
$(call show_config_variable,BOOTLOADER_PARENT,[USER])
|
||||||
|
|
|
@ -19,6 +19,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
|
||||||
- Fix: Preserve original extension for object files, support asm sources in core, fixes pulseInASM (Issue #255, #364) (https://github.com/sej7278)
|
- Fix: Preserve original extension for object files, support asm sources in core, fixes pulseInASM (Issue #255, #364) (https://github.com/sej7278)
|
||||||
- Fix: Make sure TARGET is set correctly when CURDIR contains spaces (https://github.com/svendahlstrand)
|
- Fix: Make sure TARGET is set correctly when CURDIR contains spaces (https://github.com/svendahlstrand)
|
||||||
- Fix: Ensure AVRDUDE_CONF is set when AVR_TOOLS_DIR is, not just on Windows (Issue #381) (https://github.com/sej7278)
|
- Fix: Ensure AVRDUDE_CONF is set when AVR_TOOLS_DIR is, not just on Windows (Issue #381) (https://github.com/sej7278)
|
||||||
|
- Fix: Rename VENDOR to ARDMK_VENDOR to workaround tcsh issue (Issue #386) (https://github.com/sej7278)
|
||||||
|
|
||||||
### 1.5 (2015-04-07)
|
### 1.5 (2015-04-07)
|
||||||
- New: Add support for new 1.5.x library layout (Issue #275) (https://github.com/lukasz-e)
|
- New: Add support for new 1.5.x library layout (Issue #275) (https://github.com/lukasz-e)
|
||||||
|
|
|
@ -33,9 +33,9 @@ endif
|
||||||
# include Common.mk now we know where it is
|
# include Common.mk now we know where it is
|
||||||
include $(ARDMK_DIR)/Common.mk
|
include $(ARDMK_DIR)/Common.mk
|
||||||
|
|
||||||
VENDOR = teensy
|
ARDMK_VENDOR = teensy
|
||||||
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/cores/teensy3
|
ARDUINO_CORE_PATH = $(ARDUINO_DIR)/hardware/teensy/cores/teensy3
|
||||||
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(VENDOR)/boards.txt
|
BOARDS_TXT = $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/boards.txt
|
||||||
|
|
||||||
ifndef F_CPU
|
ifndef F_CPU
|
||||||
F_CPU=96000000
|
F_CPU=96000000
|
||||||
|
|
|
@ -166,7 +166,7 @@ ARCHITECTURE = sam
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
### VENDOR
|
### ARDMK_VENDOR
|
||||||
|
|
||||||
**Description:**
|
**Description:**
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ Defaults to `arduino`
|
||||||
**Example:**
|
**Example:**
|
||||||
|
|
||||||
```Makefile
|
```Makefile
|
||||||
VENDOR = sparkfun
|
ARDMK_VENDOR = sparkfun
|
||||||
```
|
```
|
||||||
|
|
||||||
**Requirement:** *Optional*
|
**Requirement:** *Optional*
|
||||||
|
|
Loading…
Reference in a new issue