mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 18:08:15 +02:00
Enable SUBARCH directive for avr-embedded target.
git-svn-id: trunk@31032 -
This commit is contained in:
parent
ab9c8bb569
commit
353682db67
6
Makefile
6
Makefile
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user