bsp/gensh1: Move libcpu files to BSP

Update #3254.
This commit is contained in:
Sebastian Huber
2017-12-08 13:23:41 +01:00
parent 604f080c2c
commit b850e7fb76
17 changed files with 46 additions and 84 deletions

View File

@@ -2,10 +2,19 @@ ACLOCAL_AMFLAGS = -I ../../../../aclocal
include $(top_srcdir)/../../../../automake/compile.am include $(top_srcdir)/../../../../automake/compile.am
include_shdir = $(includedir)/sh
include_rtems_scoredir = $(includedir)/rtems/score
include_bspdir = $(includedir)/bsp include_bspdir = $(includedir)/bsp
dist_project_lib_DATA = bsp_specs dist_project_lib_DATA = bsp_specs
include_sh_HEADERS = include/sh/sci.h
include_sh_HEADERS += include/sh/sh7_pfc.h
include_sh_HEADERS += include/sh/sh7_sci.h
include_rtems_score_HEADERS = include/rtems/score/ispsh7032.h
include_rtems_score_HEADERS += include/rtems/score/iosh7032.h
include_HEADERS = include/bsp.h include_HEADERS = include/bsp.h
include_HEADERS += include/tm27.h include_HEADERS += include/tm27.h
@@ -38,20 +47,19 @@ libbsp_a_SOURCES += \
../../shared/sbrk.c ../../shared/bootcard.c ../shared/bsphwinit.c \ ../../shared/sbrk.c ../../shared/bootcard.c ../shared/bsphwinit.c \
../../shared/getentropy-cpucounter.c \ ../../shared/getentropy-cpucounter.c \
../../shared/gnatinstallhandler.c ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += clock/ckinit.c
libbsp_a_SOURCES += clock/delay.c
libbsp_a_SOURCES += startup/cpu_asm.c startup/ispsh7032.c
libbsp_a_SOURCES += timer/timer.c
# scitab # scitab
libbsp_a_SOURCES += scitab.c libbsp_a_SOURCES += scitab.c
# console # console
libbsp_a_SOURCES += ../../sh/shared/console.c libbsp_a_SOURCES += ../../sh/shared/console.c
libbsp_a_SOURCES += console/sci.c
# debugio # debugio
libbsp_a_SOURCES += ../../shared/dummy_printk_support.c libbsp_a_SOURCES += ../../shared/dummy_printk_support.c
libbsp_a_LIBADD = \ libbsp_a_LIBADD = ../../../libcpu/@RTEMS_CPU@/cache.rel
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/sci.rel \
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/delay.rel \
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score.rel \
../../../libcpu/@RTEMS_CPU@/cache.rel
EXTRA_DIST = times EXTRA_DIST = times

View File

@@ -9,7 +9,6 @@
include $(RTEMS_ROOT)/make/custom/default.cfg include $(RTEMS_ROOT)/make/custom/default.cfg
RTEMS_CPU=sh RTEMS_CPU=sh
RTEMS_CPU_MODEL=sh7032
# This contains the compiler options necessary to select the CPU model # This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it. # and (hopefully) optimize for it.

View File

@@ -28,6 +28,16 @@ $(PROJECT_INCLUDE)/$(dirstamp):
@: > $(PROJECT_INCLUDE)/$(dirstamp) @: > $(PROJECT_INCLUDE)/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
$(PROJECT_INCLUDE)/sh/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/sh
@: > $(PROJECT_INCLUDE)/sh/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/score
@: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(PROJECT_INCLUDE)/bsp/$(dirstamp): $(PROJECT_INCLUDE)/bsp/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/bsp @$(MKDIR_P) $(PROJECT_INCLUDE)/bsp
@: > $(PROJECT_INCLUDE)/bsp/$(dirstamp) @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
@@ -37,6 +47,26 @@ $(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
$(PROJECT_INCLUDE)/sh/sci.h: include/sh/sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci.h
$(PROJECT_INCLUDE)/sh/sh7_pfc.h: include/sh/sh7_pfc.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_pfc.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_pfc.h
$(PROJECT_INCLUDE)/sh/sh7_sci.h: include/sh/sh7_sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_sci.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_sci.h
$(PROJECT_INCLUDE)/rtems/score/ispsh7032.h: include/rtems/score/ispsh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h
$(PROJECT_INCLUDE)/rtems/score/iosh7032.h: include/rtems/score/iosh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7032.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7032.h
$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp) $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h

View File

@@ -9,49 +9,6 @@ cache_rel_SOURCES = ../shared/src/cache_manager.c
cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/cache cache_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/cache
cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) cache_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
if sh7032
# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
# file name conflicts
include_shdir = $(includedir)/sh
include_rtems_scoredir = $(includedir)/rtems/score
include_sh_HEADERS = sh7032/include/sci.h
include_sh_HEADERS += sh7032/include/sh7_pfc.h
include_sh_HEADERS += sh7032/include/sh7_sci.h
include_rtems_score_HEADERS = sh7032/include/ispsh7032.h
include_rtems_score_HEADERS += sh7032/include/iosh7032.h
## sh7032/clock
noinst_PROGRAMS += sh7032/clock.rel
sh7032_clock_rel_SOURCES = sh7032/clock/ckinit.c
sh7032_clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
sh7032_clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
## sh7032/delay
noinst_PROGRAMS += sh7032/delay.rel
sh7032_delay_rel_SOURCES = sh7032/delay/delay.c
sh7032_delay_rel_CPPFLAGS = $(AM_CPPFLAGS)
sh7032_delay_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
## sh7032/sci
noinst_PROGRAMS += sh7032/sci.rel
sh7032_sci_rel_SOURCES = sh7032/sci/sci.c
sh7032_sci_rel_CPPFLAGS = $(AM_CPPFLAGS)
sh7032_sci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
## sh7032/score
noinst_PROGRAMS += sh7032/score.rel
sh7032_score_rel_SOURCES = sh7032/score/cpu_asm.c sh7032/score/ispsh7032.c
sh7032_score_rel_CPPFLAGS = $(AM_CPPFLAGS)
sh7032_score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
### sh7032/timer
noinst_PROGRAMS += sh7032/timer.rel
sh7032_timer_rel_SOURCES = sh7032/timer/timer.c
sh7032_timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
sh7032_timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
endif
if sh7045 if sh7045
# NOTE: Unlike other CPUS, we install into a subdirectory to avoid # NOTE: Unlike other CPUS, we install into a subdirectory to avoid
# file name conflicts # file name conflicts

View File

@@ -2,7 +2,7 @@
AC_PREREQ([2.69]) AC_PREREQ([2.69])
AC_INIT([rtems-c-src-lib-libcpu-sh],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) AC_INIT([rtems-c-src-lib-libcpu-sh],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
AC_CONFIG_SRCDIR([sh7032]) AC_CONFIG_SRCDIR([cache])
RTEMS_TOP([../../../../..],[../../..]) RTEMS_TOP([../../../../..],[../../..])
RTEMS_CANONICAL_TARGET_CPU RTEMS_CANONICAL_TARGET_CPU
@@ -19,7 +19,6 @@ AM_PROG_CC_C_O
RTEMS_CANONICALIZE_TOOLS RTEMS_CANONICALIZE_TOOLS
RTEMS_PROG_CCAS RTEMS_PROG_CCAS
AM_CONDITIONAL([sh7032],[test x"$RTEMS_CPU_MODEL" = x"sh7032"])
AM_CONDITIONAL([sh7045],[test x"$RTEMS_CPU_MODEL" = x"sh7045"]) AM_CONDITIONAL([sh7045],[test x"$RTEMS_CPU_MODEL" = x"sh7045"])
AM_CONDITIONAL([sh7750],[test x"$RTEMS_CPU_MODEL" = x"sh7750"]) AM_CONDITIONAL([sh7750],[test x"$RTEMS_CPU_MODEL" = x"sh7750"])

View File

@@ -13,37 +13,6 @@ all-am: $(PREINSTALL_FILES)
PREINSTALL_FILES = PREINSTALL_FILES =
CLEANFILES = $(PREINSTALL_FILES) CLEANFILES = $(PREINSTALL_FILES)
if sh7032
$(PROJECT_INCLUDE)/sh/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/sh
@: > $(PROJECT_INCLUDE)/sh/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/score
@: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(PROJECT_INCLUDE)/sh/sci.h: sh7032/include/sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci.h
$(PROJECT_INCLUDE)/sh/sh7_pfc.h: sh7032/include/sh7_pfc.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_pfc.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_pfc.h
$(PROJECT_INCLUDE)/sh/sh7_sci.h: sh7032/include/sh7_sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_sci.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_sci.h
$(PROJECT_INCLUDE)/rtems/score/ispsh7032.h: sh7032/include/ispsh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h
$(PROJECT_INCLUDE)/rtems/score/iosh7032.h: sh7032/include/iosh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7032.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7032.h
endif
if sh7045 if sh7045
$(PROJECT_INCLUDE)/sh/$(dirstamp): $(PROJECT_INCLUDE)/sh/$(dirstamp):
@$(MKDIR_P) $(PROJECT_INCLUDE)/sh @$(MKDIR_P) $(PROJECT_INCLUDE)/sh