forked from Imagelibrary/rtems
2000-09-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* leaf.cfg: Remove include ${CONFIG.CC}, add MANAGERS, START_FILE,
LINKCMDS handling.
* default.cfg.in: Remove everything but START_BASE.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2000-09-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* leaf.cfg: Remove include ${CONFIG.CC}, add MANAGERS, START_FILE,
|
||||
LINKCMDS handling.
|
||||
* default.cfg.in: Remove everything but START_BASE.
|
||||
|
||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* ChangeLog: New file.
|
||||
|
||||
@@ -1,20 +1,6 @@
|
||||
# Default target settings
|
||||
#
|
||||
# Some of these values are redefined in the target specific .cfg files.
|
||||
#
|
||||
# Created by Jiri Gaisler, 16-03-97 (who is owed a debt of gratitude
|
||||
# for converting RTEMS to autoconf. Thanks. --joel)
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
include $(RTEMS_ROOT)/../make/target.cfg
|
||||
include $(RTEMS_ROOT)/make/host.cfg
|
||||
|
||||
include $(RTEMS_ROOT)/make/bsp.cfg
|
||||
|
||||
## Target compiler config file, if any
|
||||
CONFIG.CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
|
||||
|
||||
# Base name of start file
|
||||
START_BASE=start
|
||||
|
||||
@@ -34,10 +34,35 @@ MANAGERS := $(patsubst all, $(MANAGER_LIST), $(MANAGERS))
|
||||
# and finally rip out duplicates
|
||||
MANAGERS := $(sort $(MANAGERS))
|
||||
|
||||
# Pull in the desired "target" compiler
|
||||
# Programs built on the host use automake generated rules.
|
||||
# This will not change $(ARCH) -- binaries will still be place as per target
|
||||
include ${CONFIG.CC}
|
||||
# List (possibly empty) of required managers
|
||||
# We require:
|
||||
# region -- used by lib/libcsupport for malloc()
|
||||
# ext -- used by libc for libc reentrancy hooks
|
||||
|
||||
MANAGERS_REQUIRED=region ext sem
|
||||
|
||||
# Create a RTEMS executable based on MANAGERS which was set in
|
||||
# app's Makefile
|
||||
|
||||
MANAGERS_NOT_WANTED=$(filter-out $(MANAGERS) \
|
||||
$(MANAGERS_REQUIRED), $(MANAGER_LIST))
|
||||
|
||||
# pull in dependencies if they exist
|
||||
ifeq (${DEPEND},$(wildcard ${DEPEND}))
|
||||
include ${DEPEND} # pull in dependencies if they exist
|
||||
include ${DEPEND}
|
||||
endif
|
||||
|
||||
# Start file must be one of
|
||||
# $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
|
||||
# $(PROJECT_RELEASE)/lib/asmiface$(LIB_VARIANT).o
|
||||
# It defaults to start.o, but an app can override it.
|
||||
ifeq ($(START_BASE),)
|
||||
START_FILE=
|
||||
else
|
||||
START_FILE=$(PROJECT_RELEASE)/lib/$(START_BASE)$(LIB_VARIANT).o
|
||||
endif
|
||||
|
||||
# Allow user to override link commands (to build a prom image, perhaps)
|
||||
ifndef LINKCMDS
|
||||
LINKCMDS=$(PROJECT_RELEASE)/lib/linkcmds
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user