diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/score/Makefile.am | 30 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c | 6 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c | 4 |
3 files changed, 30 insertions, 10 deletions
diff --git a/c/src/lib/libcpu/sh/sh7032/score/Makefile.am b/c/src/lib/libcpu/sh/sh7032/score/Makefile.am new file mode 100644 index 0000000000..2c4e423fbe --- /dev/null +++ b/c/src/lib/libcpu/sh/sh7032/score/Makefile.am @@ -0,0 +1,30 @@ +## +## $Id$ +## + +AUTOMAKE_OPTIONS = foreign 1.4 + +PGM = $(ARCH)/score.rel + +C_FILES = cpu_asm.c ispsh7032.c +C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) + +OBJS = $(C_O_FILES) + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(top_srcdir)/../../../../../../automake/lib.am + +# +# (OPTIONAL) Add local stuff here using += +# + +$(PGM): $(OBJS) + $(make-rel) + +all-local: $(ARCH) $(OBJS) $(PGM) + +.PRECIOUS: $(PGM) + +EXTRA_DIST = ispsh7032.c + +include $(top_srcdir)/../../../../../../automake/local.am diff --git a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c index 192c2f43d2..41c2c07475 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c @@ -43,14 +43,8 @@ #include <rtems/score/thread.h> #include <rtems/score/sh.h> -#if defined(sh7032) #include <rtems/score/ispsh7032.h> #include <rtems/score/iosh7032.h> -#elif defined (sh7045) -#include <rtems/score/ispsh7045.h> -#include <rtems/score/iosh7045.h> -#endif - #include <rtems/score/sh_io.h> /* from cpu_isps.c */ diff --git a/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c b/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c index 9fcc9badbf..b8e443ea00 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c +++ b/c/src/lib/libcpu/sh/sh7032/score/ispsh7032.c @@ -32,10 +32,6 @@ #include <rtems/score/shtypes.h> #include <rtems/score/ispsh7032.h> -#if !defined(sh7032) -#error Wrong CPU MODEL -#endif - /* * This is an exception vector table * |