forked from Imagelibrary/rtems
Patch from Eric Norum <eric@skatter.usask.ca>:
I've included a version of make/custom/gen68360.cfg that works with
this. Note that I've removed the option of using `-m68020
-msoft-float -mno-bitfield' as an alternative to using `-mcpu32'.
The alternative won't work with the new system (since it predefines
__mc68020__ and not __mcpu32__), and didn't really work before anyway
(since the newlib that gets linked was built with `-m68020
-msoft-float' and so could contain bitfield operators).
This commit is contained in:
@@ -27,21 +27,12 @@ CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
|
|||||||
RTEMS_BSP=gen68360
|
RTEMS_BSP=gen68360
|
||||||
|
|
||||||
#
|
#
|
||||||
# mc68360 notes:
|
# You must use versions of gcc and gas that support the -mcpu32 option.
|
||||||
# If your version of gcc supports the -mcpu32 option use the top
|
|
||||||
# version, otherwise use the bottom set of flags to accomplish the
|
|
||||||
# same thing.
|
|
||||||
#
|
#
|
||||||
# NOTE: Before binutils 2.6, the -mcpu32 flag was not available
|
|
||||||
# if your gas does understand this, then use the alternative.
|
|
||||||
|
|
||||||
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
|
ifeq ($(RTEMS_GEN68360_COMPANION_MODE),yes)
|
||||||
CPU_CFLAGS= -m68040
|
CPU_CFLAGS= -m68040
|
||||||
else
|
else
|
||||||
#CPU_CFLAGS = -mcpu32 -msoft-float
|
CPU_CFLAGS = -mcpu32
|
||||||
CPU_CFLAGS = -m68020 -mnobitfield -msoft-float
|
|
||||||
# When using the -m68020 cpu flag, we need to explicitly define these
|
|
||||||
CPU_DEFINES=-Dmcpu32 -D__mcpu32__ $(DEFINES)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# optimize flag: typically -0, could use -O4 or -fast
|
# optimize flag: typically -0, could use -O4 or -fast
|
||||||
|
|||||||
Reference in New Issue
Block a user