view components/nucleus_intram @ 192:4f40ae165be4

abb.c & init.c: sync with Magnetite for Luna additions These Luna target-specific additions are conditionalized on CONFIG_TARGET_LUNA, a C preprocessor symbol that will never be defined in Selenite, hence this change has exactly zero impact on FC Selenite. However, they are being pulled in as a sync in order to keep the diff between Magnetite and Selenite to a minimum; keeping this diff to a minimum increases our opportunities for possible evolution of future FC firmwares.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 23 May 2020 07:03:46 +0000
parents 1155be085fc1
children
line wrap: on
line source

# New Selenite component: compiling Nucleus from source (internal RAM)

CFLAGS="-mn -me -mt -o -mw"
CFLAGS_gcc="-g -O2 -fno-builtin -mthumb-interwork"
CPPFLAGS=

SRCDIR=$SRC/nucleus

c_file $SRCDIR/csc.c
c_file $SRCDIR/pmc.c
c_file $SRCDIR/pmce.c
c_file $SRCDIR/pmd.c
c_file $SRCDIR/smc.c
c_file $SRCDIR/smce.c
c_file $SRCDIR/smd.c
c_file $SRCDIR/tcc.c
c_file $SRCDIR/tcce.c
c_file $SRCDIR/tcd.c
c_file $SRCDIR/tmc.c
c_file $SRCDIR/tmd.c
c_file $SRCDIR/tms.c
c_file $SRCDIR/tmse.c

# assembly modules

if [ "$COMPILER" = tms470 ]
then
	ASMFLAGS=-me
	ASMFLAGS="$ASMFLAGS -dOP_L1_STANDALONE=0"
	ASMFLAGS="$ASMFLAGS -dTI_NUC_MONITOR=0"

	SRCDIR=$SRC/cs/os/nucleus
	asm_file $SRCDIR/tct.s

	SRCDIR=$SRC/nucleus/tms470
	asm_file $SRCDIR/tmt.s
fi

if [ "$COMPILER" = gcc ]
then
	ASMFLAGS=-mthumb-interwork

	SRCDIR=$SRC/nucleus/gcc
	asm_file $SRCDIR/tct.S
	asm_file $SRCDIR/tmt.S
fi