forked from Imagelibrary/rtems
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
The main topic is replacing the hard-coded values for HAS_MP and
HAS_RDBG in custom/*.cfg with per-bsp configuration-time autoconf checks
(This is the patch I had mentioned before earlier this week).
CHANGES
* HAS_MP removed from custom/*.cfg, replaced with configuration time
autoconf check
* HAS_RDBG removed from custom/*.cfg, replaced with configuration-time
autoconf check
* NEW: c/src/make/bsp.cfg.in, takes configuration-time checked per-bsp
values (i.e. HAS_MP, HAS_RDBG), gets installed as
$(prefix)/<bsp>/make/bsp.cfg
* NEW: default.cfg includes bsp.cfg - this change is backward
compatible.
* IMPORT_SRC: apply VPATH instead for ts_386ex/i386ex subdirectory
Makefile.ins
* HACK: a bug in acpolish mis-handles addtions to makefile variables
which are enclosed in gmake conditionals:
c/src/lib/libbsp/m68k/ods68302/start302/Makefile.in
* Apply inline_dir, HAS_MP and HAS_RDBG for avoiding configuration of
unneeded subdirectories in various configure.in files.
* Several minor changes in Makefile.ins and configure.ins, wrt. to the
order of including *.cfg and defining Makefile variables
APPLYING THE PATCH:
patch -p1 < rtems-rc-19990709-4.diff
./autogen
This commit is contained in:
@@ -13,17 +13,17 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup tty
|
||||
# pieces to pick up out of libcpu/hppa
|
||||
CPU_PIECES = clock milli timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup tty
|
||||
# pieces to pick up out of libcpu/hppa
|
||||
CPU_PIECES = clock milli timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -13,15 +13,15 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -11,12 +11,10 @@ subdir = libbsp/i386/i386ex/console
|
||||
RTEMS_ROOT = @RTEMS_ROOT@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
VPATH = @srcdir@:@srcdir@/../../shared/io
|
||||
|
||||
PGM = ${ARCH}/console.rel
|
||||
|
||||
IMPORT_SRC = $(srcdir)/../../shared/io/printk.c
|
||||
|
||||
# C source names, if any, go here -- minus the .c
|
||||
C_PIECES = console printk
|
||||
C_FILES = $(C_PIECES:%=%.c)
|
||||
@@ -58,13 +56,10 @@ LDFLAGS +=
|
||||
CLEAN_ADDITIONS +=
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
preinstall:
|
||||
${CP} ${IMPORT_SRC} .
|
||||
|
||||
${PGM}: ${SRCS} ${OBJS}
|
||||
$(make-rel)
|
||||
|
||||
all: ${ARCH} preinstall $(SRCS) $(PGM)
|
||||
all: ${ARCH} $(SRCS) $(PGM)
|
||||
|
||||
# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
|
||||
install: all
|
||||
|
||||
@@ -11,12 +11,10 @@ subdir = libbsp/i386/ts_386ex/console
|
||||
RTEMS_ROOT = @RTEMS_ROOT@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
VPATH = @srcdir@:@srcdir@/../../shared/io
|
||||
|
||||
PGM = ${ARCH}/console.rel
|
||||
|
||||
IMPORT_SRC = $(srcdir)/../../shared/io/printk.c
|
||||
|
||||
# C source names, if any, go here -- minus the .c
|
||||
C_PIECES = console printk
|
||||
C_FILES = $(C_PIECES:%=%.c)
|
||||
@@ -58,13 +56,10 @@ LDFLAGS +=
|
||||
CLEAN_ADDITIONS +=
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
preinstall:
|
||||
${CP} ${IMPORT_SRC} .
|
||||
|
||||
${PGM}: ${SRCS} ${OBJS}
|
||||
$(make-rel)
|
||||
|
||||
all: ${ARCH} preinstall $(SRCS) $(PGM)
|
||||
all: ${ARCH} $(SRCS) $(PGM)
|
||||
|
||||
# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
|
||||
install: all
|
||||
|
||||
@@ -58,7 +58,7 @@ CLEAN_ADDITIONS +=
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
all: ${ARCH} $(SRCS) $(OBJS) $(PGM)
|
||||
$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
|
||||
@$(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
|
||||
|
||||
# Install the program(s), appending _g or _p as appropriate.
|
||||
# for include files, just use $(INSTALL_CHANGE)
|
||||
|
||||
@@ -69,15 +69,10 @@ LDFLAGS +=
|
||||
CLEAN_ADDITIONS +=
|
||||
CLOBBER_ADDITIONS +=
|
||||
|
||||
preinstall:
|
||||
$(INSTALL_CHANGE) ${IMPORT_SRC} .
|
||||
|
||||
# ${CP} ${IMPORT_SRC} .
|
||||
|
||||
${PGM}: ${SRCS} ${OBJS}
|
||||
$(make-rel)
|
||||
all: ${ARCH} preinstall $(SRCS) $(PGM)
|
||||
$(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
|
||||
all: ${ARCH} $(SRCS) $(PGM)
|
||||
@$(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
|
||||
|
||||
# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
|
||||
install: all
|
||||
|
||||
@@ -13,15 +13,15 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -13,15 +13,15 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -13,15 +13,15 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -15,11 +15,14 @@ VPATH = @srcdir@
|
||||
|
||||
PGM = ${ARCH}/start302.o
|
||||
|
||||
ifeq ($(RTEMS_DEBUGGER),yes)
|
||||
RESET_S_PIECES = debugreset reset
|
||||
else
|
||||
CFLAGS +=
|
||||
endif
|
||||
RESET_S_PIECES_yes_V = debugreset
|
||||
RESET_S_PIECES_no_V = reset
|
||||
RESET_S_PIECES__V = $(RESET_S_PIECES_no_V)
|
||||
RESET_S_PIECES = $(RESET_S_PIECES_$(RTEMS_DEBUGGER)_V)
|
||||
|
||||
CFLAGS_no_V = -DGDB_MONITOR_ACTIVE
|
||||
CFLAGS__V = $(CFLAGS_no_V)
|
||||
CFLAGS_V = $(CFLAGS_$(RTEMS_DEBUGGER)_V)
|
||||
|
||||
# C source names, if any, go here -- minus the .c
|
||||
C_PIECES = cpuboot
|
||||
@@ -47,7 +50,7 @@ INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
DEFINES +=
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
CFLAGS += $(CFLAGS_V)
|
||||
|
||||
LD_PATHS +=
|
||||
LD_LIBS +=
|
||||
|
||||
@@ -15,11 +15,14 @@ VPATH = @srcdir@
|
||||
|
||||
PGM = ${ARCH}/start302.o
|
||||
|
||||
ifeq ($(RTEMS_DEBUGGER),yes)
|
||||
RESET_S_PIECES = debugreset reset
|
||||
else
|
||||
CFLAGS +=
|
||||
endif
|
||||
RESET_S_PIECES_yes_V = debugreset
|
||||
RESET_S_PIECES_no_V = reset
|
||||
RESET_S_PIECES__V = $(RESET_S_PIECES_no_V)
|
||||
RESET_S_PIECES = $(RESET_S_PIECES_$(RTEMS_DEBUGGER)_V)
|
||||
|
||||
CFLAGS_no_V = -DGDB_MONITOR_ACTIVE
|
||||
CFLAGS__V = $(CFLAGS_no_V)
|
||||
CFLAGS_V = $(CFLAGS_$(RTEMS_DEBUGGER)_V)
|
||||
|
||||
# C source names, if any, go here -- minus the .c
|
||||
C_PIECES = cpuboot
|
||||
@@ -47,7 +50,7 @@ INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
DEFINES +=
|
||||
CPPFLAGS +=
|
||||
CFLAGS +=
|
||||
CFLAGS += $(CFLAGS_V)
|
||||
|
||||
LD_PATHS +=
|
||||
LD_LIBS +=
|
||||
|
||||
@@ -13,14 +13,13 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
GENERIC_PIECES = $
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -67,7 +67,7 @@ CLOBBER_ADDITIONS +=
|
||||
${PGM}: ${SRCS} ${OBJS}
|
||||
$(make-rel)
|
||||
|
||||
all: ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM)
|
||||
all: ${ARCH} $(SRCS) $(PGM)
|
||||
$(INSTALL_CHANGE) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
|
||||
@@ -53,7 +53,7 @@ LD_PATHS +=
|
||||
LD_LIBS +=
|
||||
LDFLAGS +=
|
||||
|
||||
IMAGES : = rtems.gz
|
||||
IMAGES = rtems.gz
|
||||
|
||||
#
|
||||
# Add your list of files to delete here. The config files
|
||||
|
||||
@@ -53,7 +53,7 @@ LD_PATHS +=
|
||||
LD_LIBS +=
|
||||
LDFLAGS +=
|
||||
|
||||
IMAGES : = rtems.gz
|
||||
IMAGES = rtems.gz
|
||||
|
||||
#
|
||||
# Add your list of files to delete here. The config files
|
||||
|
||||
@@ -13,17 +13,17 @@ PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
VPATH = @srcdir@
|
||||
|
||||
BSP_PIECES = startup clock console timer vectors
|
||||
# pieces to pick up out of libcpu/ppc
|
||||
CPU_PIECES =
|
||||
GENERIC_PIECES =
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/lib.cfg
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
|
||||
BSP_PIECES = startup clock console timer vectors
|
||||
# pieces to pick up out of libcpu/ppc
|
||||
CPU_PIECES =
|
||||
GENERIC_PIECES =
|
||||
|
||||
GENERIC_MP_REL_PIECES_yes_V = shmdr
|
||||
GENERIC_MP_REL_PIECES_no_V =
|
||||
GENERIC_PIECES += $(GENERIC_MP_REL_PIECES_$(HAS_MP)_V)
|
||||
|
||||
@@ -35,6 +35,12 @@ include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(RTEMS_ROOT)/make/leaf.cfg
|
||||
|
||||
INSTALL_CHANGE = @INSTALL_CHANGE@
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
|
||||
|
||||
INSTALLDIRS = $(PROJECT_RELEASE)/lib
|
||||
|
||||
$(INSTALLDIRS):
|
||||
@$(mkinstalldirs) $(INSTALLDIRS)
|
||||
|
||||
# First and second generation use different Bridge chips :(
|
||||
# C source names, if any, go here -- minus the .c
|
||||
@@ -69,9 +75,8 @@ CLOBBER_ADDITIONS +=
|
||||
${PGM}: ${SRCS} ${OBJS}
|
||||
$(make-rel)
|
||||
|
||||
all: ${ARCH} $(SRCS) $(INSTALLED_O_FILES) $(PGM)
|
||||
$(INSTALL) $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
|
||||
$(INSTALL_VARIANT) $(INSTALLED_O_FILES) $(PROJECT_RELEASE)/lib
|
||||
all: ${ARCH} $(SRCS) $(PGM)
|
||||
$(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
cd $(top_builddir) \
|
||||
|
||||
Reference in New Issue
Block a user