Enable SUBARCH directive for avr-embedded target.

git-svn-id: trunk@31032 -
This commit is contained in:
Jeppe Johansen 2015-06-13 12:40:31 +00:00
parent ab9c8bb569
commit 353682db67
5 changed files with 2301 additions and 2325 deletions

View File

@ -184,6 +184,12 @@ $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),avr-embedded)
ifeq ($(SUBARCH),)
$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),mipsel-embedded)
ifeq ($(SUBARCH),)
$(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)

View File

@ -185,6 +185,12 @@ $(error When compiling for arm-embedded, a sub-architecture (e.g. SUBARCH=armv4t
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),avr-embedded)
ifeq ($(SUBARCH),)
$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),mipsel-embedded)
ifeq ($(SUBARCH),)
$(error When compiling for mipsel-embedded, a sub-architecture (e.g. SUBARCH=pic32mx) must be defined)
@ -369,7 +375,12 @@ CPU_UNITS=allwinner_a20
endif
endif
ifeq ($(ARCH),avr)
CPU_UNITS=atmega128 atmega8 atmega16 avrsim attinyx4 atmega48fam atmega168fam
ifeq ($(SUBARCH),avr25)
CPU_UNITS=attinyx4 attiny2313
endif
ifeq ($(SUBARCH),avr35)
CPU_UNITS=atmega128 atmega8 atmega16 avrsim atmega48fam atmega168fam
endif
endif
ifeq ($(ARCH),i386)
CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts lineinfo

View File

@ -84,7 +84,12 @@ endif
endif
ifeq ($(ARCH),avr)
CPU_UNITS=atmega128 atmega8 atmega16 avrsim attinyx4 atmega48fam atmega168fam
ifeq ($(SUBARCH),avr25)
CPU_UNITS=attinyx4 attiny2313
endif
ifeq ($(SUBARCH),avr35)
CPU_UNITS=atmega128 atmega8 atmega16 avrsim atmega48fam atmega168fam
endif
endif
ifeq ($(ARCH),i386)

File diff suppressed because it is too large Load Diff

View File

@ -272,6 +272,14 @@ endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),avr-embedded)
ifeq ($(SUBARCH),)
# we don't add a default here, people should explicitly add the SUBARCH
$(error When compiling for avr-embedded, a sub-architecture (e.g. SUBARCH=avr25 or SUBARCH=avr35) must be defined)
endif
override FPCOPT+=-Cp$(SUBARCH)
endif
ifeq ($(FULL_TARGET),mipsel-embedded)
ifeq ($(SUBARCH),)
# we don't add a default here, people should explicitly add the SUBARCH