forked from Imagelibrary/rtems
Patch rtems-rc-19991123-rc-2.diff from Ralf Corsepius
<corsepiu@faw.uni-ulm.de> which implements automake support for some score/cpu/<RTEMS_CPU> subdirectories and fixes a few minor configuration bugs. To apply: rm -rf c/src/exec/score/cpu/a29k/wrap rm -rf c/src/exec/score/cpu/hppa1.1/wrap rm -rf c/src/exec/score/cpu/i386/wrap rm -rf c/src/exec/score/cpu/mips64orion/wrap rm -rf c/src/exec/score/cpu/no_cpu/wrap patch -p1 < rtems-rc-19991123-rc-2.diff.gz Notes: * I don't see a possiblity to convert the powerpc subdirectory in its current layout to automake the time being. * Besides the fact that this subdirectory is not in single-tree building layout, the actual showstopper is the ifeq $(RTEMS_CPU_MODEL),mpc750) gmake-conditional in powerpc/Makefile.in, which automake (correctly) refuses to handle. * The problem is *not* specific to the powerpc. Other CPUs basically have similar problems (SH:sh7032 vs sh7045, SPARC: erc32.h in score/cpu/sparc), but have been lucky to get around real issues (cf. configuration files below score/cpu/sh/). * From a configuration focused POV this problem boils down to a file/subdirectory selection problem: ppc: 1 or others sh: 1 out of 2 sparc: 1 out of 1 Automake's means to implement such behavior is using conditionals to be evaluated at configuration-time. The old configuration scheme however used make-time conditionals. The SH port was lucky to get around this issue because it applies a selection from a limited set of possible selections, the powerpc however applies a selection from an unlimited set, based on data not being available at configuration time. * Currently I only see two general solutions: 1) make RTEMS_CPU_MODEL available at configuration time, ie. replace make-time configuration by configuration-time configuration 2) Perform the selection at build-time, i.e. always install all files, but use #ifdef #else #endif in source files. This is what the m68k has exploited at other locations inside of the source-tree. => This directory is the last one remaining not using automake below the whole exec/ hierarchy.
This commit is contained in:
40
c/src/exec/score/cpu/a29k/configure.in
Normal file
40
c/src/exec/score/cpu/a29k/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.S)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-a29k,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
40
c/src/exec/score/cpu/hppa1.1/configure.in
Normal file
40
c/src/exec/score/cpu/hppa1.1/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.S)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-hppa1.1,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
# *** NOTE *** This Makefile violates RTEMS Makefile standards.
|
|
||||||
# This Makefile picks up sources from outside this directory
|
|
||||||
# and installs relocatible objects outside of this directory.
|
|
||||||
# This behavior is a work-around for RTEMS Makefile's missing
|
|
||||||
# ability to compile inside of directories containing subdirectories.
|
|
||||||
# This directory will disapear once automake will be introduced.
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = ../..
|
|
||||||
subdir = hppa1.1/wrap
|
|
||||||
|
|
||||||
RTEMS_ROOT = @RTEMS_ROOT@
|
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@/..
|
|
||||||
|
|
||||||
RELS = ../$(ARCH)/rtems-cpu.rel
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
|
||||||
C_PIECES = cpu
|
|
||||||
C_FILES = $(C_PIECES:%=%.c)
|
|
||||||
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
|
|
||||||
|
|
||||||
H_PIECES =
|
|
||||||
H_FILES = $(H_PIECES:%=$(srcdir)/../%)
|
|
||||||
|
|
||||||
# Assembly source names, if any, go here -- minus the .S
|
|
||||||
S_PIECES = cpu_asm rtems
|
|
||||||
S_FILES = $(S_PIECES:%=%.S)
|
|
||||||
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
|
|
||||||
|
|
||||||
SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
|
|
||||||
OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
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_INCLUDE)
|
|
||||||
|
|
||||||
$(INSTALLDIRS):
|
|
||||||
@$(mkinstalldirs) $(INSTALLDIRS)
|
|
||||||
|
|
||||||
#
|
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I$(srcdir)/..
|
|
||||||
CFLAGS += $(CFLAGS_OS_V)
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += ../$(ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
all: ${ARCH} $(SRCS) preinstall $(OBJS) $(ARCH)/rtems.o $(RELS)
|
|
||||||
$(INSTALL_VARIANT) -m 644 $(ARCH)/rtems.o $(PROJECT_RELEASE)/lib
|
|
||||||
|
|
||||||
../$(ARCH)/rtems-cpu.rel: $(OBJS)
|
|
||||||
test -d ../$(ARCH) || mkdir ../$(ARCH)
|
|
||||||
$(make-rel)
|
|
||||||
|
|
||||||
# Install the program(s), appending _g or _p as appropriate.
|
|
||||||
# for include files, just use $(INSTALL_CHANGE)
|
|
||||||
install: all
|
|
||||||
|
|
||||||
preinstall: ${ARCH}
|
|
||||||
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
||||||
40
c/src/exec/score/cpu/i386/configure.in
Normal file
40
c/src/exec/score/cpu/i386/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.S)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-i386,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
# *** NOTE *** This Makefile violates RTEMS Makefile standards.
|
|
||||||
# This Makefile picks up sources from outside this directory
|
|
||||||
# and installs relocatible objects outside of this directory.
|
|
||||||
# This behavior is a work-around for RTEMS Makefile's missing
|
|
||||||
# ability to compile inside of directories containing subdirectories.
|
|
||||||
# This directory will disapear once automake will be introduced.
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = ../..
|
|
||||||
subdir = i386/wrap
|
|
||||||
|
|
||||||
RTEMS_ROOT = @RTEMS_ROOT@
|
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@/..
|
|
||||||
|
|
||||||
RELS = ../$(ARCH)/rtems-cpu.rel
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
|
||||||
C_PIECES = cpu
|
|
||||||
C_FILES = $(C_PIECES:%=%.c)
|
|
||||||
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
|
|
||||||
|
|
||||||
H_PIECES = asm.h
|
|
||||||
H_FILES = $(H_PIECES:%=$(srcdir)/../%)
|
|
||||||
|
|
||||||
# Assembly source names, if any, go here -- minus the .S
|
|
||||||
S_PIECES = cpu_asm
|
|
||||||
S_FILES = $(S_PIECES:%=%.S)
|
|
||||||
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
|
|
||||||
|
|
||||||
SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
|
|
||||||
OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
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_INCLUDE)
|
|
||||||
|
|
||||||
$(INSTALLDIRS):
|
|
||||||
@$(mkinstalldirs) $(INSTALLDIRS)
|
|
||||||
|
|
||||||
#
|
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I$(srcdir)/..
|
|
||||||
CFLAGS += $(CFLAGS_OS_V)
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += ../$(ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
all: ${ARCH} $(SRCS) preinstall $(OBJS) $(ARCH)/rtems.o $(RELS)
|
|
||||||
$(INSTALL_VARIANT) -m 644 $(ARCH)/rtems.o $(PROJECT_RELEASE)/lib
|
|
||||||
|
|
||||||
../$(ARCH)/rtems-cpu.rel: $(OBJS)
|
|
||||||
test -d ../$(ARCH) || mkdir ../$(ARCH)
|
|
||||||
$(make-rel)
|
|
||||||
|
|
||||||
# Install the program(s), appending _g or _p as appropriate.
|
|
||||||
# for include files, just use $(INSTALL_CHANGE)
|
|
||||||
install: all
|
|
||||||
|
|
||||||
preinstall: ${ARCH}
|
|
||||||
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
||||||
40
c/src/exec/score/cpu/mips/configure.in
Normal file
40
c/src/exec/score/cpu/mips/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.S)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-mips64orion,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
40
c/src/exec/score/cpu/mips64orion/configure.in
Normal file
40
c/src/exec/score/cpu/mips64orion/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.S)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-mips64orion,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
# *** NOTE *** This Makefile violates RTEMS Makefile standards.
|
|
||||||
# This Makefile picks up sources from outside this directory
|
|
||||||
# and installs relocatible objects outside of this directory.
|
|
||||||
# This behavior is a work-around for RTEMS Makefile's missing
|
|
||||||
# ability to compile inside of directories containing subdirectories.
|
|
||||||
# This directory will disapear once automake will be introduced.
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = ../..
|
|
||||||
subdir = mips64orion/wrap
|
|
||||||
|
|
||||||
RTEMS_ROOT = @RTEMS_ROOT@
|
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@/..
|
|
||||||
|
|
||||||
RELS = ../$(ARCH)/rtems-cpu.rel
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
|
||||||
C_PIECES = cpu
|
|
||||||
C_FILES = $(C_PIECES:%=%.c)
|
|
||||||
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
|
|
||||||
|
|
||||||
H_PIECES = asm.h cpu_asm.h idtcpu.h idtmon.h iregdef.h
|
|
||||||
H_FILES = $(H_PIECES:%=$(srcdir)/../%)
|
|
||||||
|
|
||||||
# Assembly source names, if any, go here -- minus the .S
|
|
||||||
S_PIECES = cpu_asm
|
|
||||||
S_FILES = $(S_PIECES:%=%.S)
|
|
||||||
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
|
|
||||||
|
|
||||||
SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
|
|
||||||
OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
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_INCLUDE)
|
|
||||||
|
|
||||||
$(INSTALLDIRS):
|
|
||||||
@$(mkinstalldirs) $(INSTALLDIRS)
|
|
||||||
|
|
||||||
#
|
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I$(srcdir)/..
|
|
||||||
CFLAGS += $(CFLAGS_OS_V)
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += ../$(ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
all: ${ARCH} $(SRCS) preinstall $(OBJS) $(ARCH)/rtems.o $(RELS)
|
|
||||||
$(INSTALL_VARIANT) -m 644 $(ARCH)/rtems.o $(PROJECT_RELEASE)/lib
|
|
||||||
|
|
||||||
../$(ARCH)/rtems-cpu.rel: $(OBJS)
|
|
||||||
test -d ../$(ARCH) || mkdir ../$(ARCH)
|
|
||||||
$(make-rel)
|
|
||||||
|
|
||||||
# Install the program(s), appending _g or _p as appropriate.
|
|
||||||
# for include files, just use $(INSTALL_CHANGE)
|
|
||||||
install: all
|
|
||||||
|
|
||||||
preinstall: ${ARCH}
|
|
||||||
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
||||||
40
c/src/exec/score/cpu/no_cpu/configure.in
Normal file
40
c/src/exec/score/cpu/no_cpu/configure.in
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
|
||||||
|
AC_PREREQ(2.13)
|
||||||
|
AC_INIT(cpu_asm.c)
|
||||||
|
RTEMS_TOP(../../../../../..)
|
||||||
|
AC_CONFIG_AUX_DIR(../../../../../..)
|
||||||
|
|
||||||
|
RTEMS_CANONICAL_TARGET_CPU
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(rtems-c-src-exec-score-cpu-sparc,$RTEMS_VERSION,no)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
RTEMS_ENABLE_LIBCDIR
|
||||||
|
|
||||||
|
RTEMS_ENV_RTEMSBSP
|
||||||
|
|
||||||
|
RTEMS_CHECK_CPU
|
||||||
|
RTEMS_CANONICAL_HOST
|
||||||
|
|
||||||
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
|
dnl check target cc
|
||||||
|
RTEMS_PROG_CC_FOR_TARGET
|
||||||
|
RTEMS_CANONICALIZE_TOOLS
|
||||||
|
|
||||||
|
RTEMS_CHECK_NEWLIB
|
||||||
|
|
||||||
|
# Check if there is custom/*.cfg for this BSP
|
||||||
|
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
||||||
|
|
||||||
|
PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
|
||||||
|
AC_SUBST(PROJECT_INCLUDE)
|
||||||
|
|
||||||
|
# Try to explicitly list a Makefile here
|
||||||
|
AC_OUTPUT(
|
||||||
|
Makefile
|
||||||
|
rtems/Makefile
|
||||||
|
rtems/score/Makefile)
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
# *** NOTE *** This Makefile violates RTEMS Makefile standards.
|
|
||||||
# This Makefile picks up sources from outside this directory
|
|
||||||
# and installs relocatible objects outside of this directory.
|
|
||||||
# This behavior is a work-around for RTEMS Makefile's missing
|
|
||||||
# ability to compile inside of directories containing subdirectories.
|
|
||||||
# This directory will disapear once automake will be introduced.
|
|
||||||
#
|
|
||||||
|
|
||||||
@SET_MAKE@
|
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
top_builddir = ../..
|
|
||||||
subdir = no_cpu/wrap
|
|
||||||
|
|
||||||
RTEMS_ROOT = @RTEMS_ROOT@
|
|
||||||
PROJECT_ROOT = @PROJECT_ROOT@
|
|
||||||
|
|
||||||
VPATH = @srcdir@/..
|
|
||||||
|
|
||||||
RELS = ../$(ARCH)/rtems-cpu.rel
|
|
||||||
|
|
||||||
# C source names, if any, go here -- minus the .c
|
|
||||||
C_PIECES = cpu cpu_asm
|
|
||||||
C_FILES = $(C_PIECES:%=%.c)
|
|
||||||
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
|
|
||||||
|
|
||||||
H_PIECES = asm.h
|
|
||||||
H_FILES = $(H_PIECES:%=$(srcdir)/../%)
|
|
||||||
|
|
||||||
# Assembly source names, if any, go here -- minus the .S
|
|
||||||
S_PIECES =
|
|
||||||
S_FILES = $(S_PIECES:%=%.S)
|
|
||||||
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
|
|
||||||
|
|
||||||
SRCS = $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
|
|
||||||
OBJS = $(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
|
|
||||||
|
|
||||||
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_INCLUDE)
|
|
||||||
|
|
||||||
$(INSTALLDIRS):
|
|
||||||
@$(mkinstalldirs) $(INSTALLDIRS)
|
|
||||||
|
|
||||||
#
|
|
||||||
# (OPTIONAL) Add local stuff here using +=
|
|
||||||
#
|
|
||||||
|
|
||||||
DEFINES +=
|
|
||||||
CPPFLAGS += -I$(srcdir)/..
|
|
||||||
CFLAGS += $(CFLAGS_OS_V)
|
|
||||||
|
|
||||||
LD_PATHS +=
|
|
||||||
LD_LIBS +=
|
|
||||||
LDFLAGS +=
|
|
||||||
|
|
||||||
#
|
|
||||||
# Add your list of files to delete here. The config files
|
|
||||||
# already know how to delete some stuff, so you may want
|
|
||||||
# to just run 'make clean' first to see what gets missed.
|
|
||||||
# 'make clobber' already includes 'make clean'
|
|
||||||
#
|
|
||||||
|
|
||||||
CLEAN_ADDITIONS += ../$(ARCH)
|
|
||||||
CLOBBER_ADDITIONS +=
|
|
||||||
|
|
||||||
all: ${ARCH} $(SRCS) $(OBJS) $(ARCH)/rtems.o $(RELS)
|
|
||||||
|
|
||||||
$(ARCH)/rtems.o: rtems.c
|
|
||||||
|
|
||||||
../$(ARCH)/rtems-cpu.rel: $(OBJS)
|
|
||||||
test -d ../$(ARCH) || mkdir ../$(ARCH)
|
|
||||||
$(make-rel)
|
|
||||||
|
|
||||||
# Install the program(s), appending _g or _p as appropriate.
|
|
||||||
# for include files, just use $(INSTALL_CHANGE)
|
|
||||||
install: all
|
|
||||||
|
|
||||||
preinstall: ${ARCH}
|
|
||||||
@$(INSTALL_CHANGE) -m 644 $(H_FILES) $(PROJECT_INCLUDE)
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
||||||
cd $(top_builddir) \
|
|
||||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
||||||
Reference in New Issue
Block a user