mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-21 04:14:26 +08:00
bsps: Move version.c and use bspopts.h
This patch is a part of the BSP source reorganization. Update #3285. Update #3375.
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
#include <rtems/system.h>
|
||||
|
||||
#include <bspopts.h>
|
||||
|
||||
#ifndef RTEMS_VERSION
|
||||
#error "Missing RTEMS_VERSION"
|
||||
#endif
|
||||
@@ -23,4 +25,5 @@
|
||||
#endif
|
||||
|
||||
const char _RTEMS_version[] =
|
||||
"rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/" RTEMS_BSP ")";
|
||||
"rtems-" RTEMS_VERSION " (" CPU_NAME "/" CPU_MODEL_NAME "/"
|
||||
RTEMS_XSTRING( RTEMS_BSP ) ")";
|
||||
@@ -0,0 +1 @@
|
||||
libbsp_a_SOURCES += ../../../../../../bsps/shared/rtems-version.c
|
||||
|
||||
@@ -134,7 +134,6 @@ AC_SUBST(libbsp_cpu_subdir,$RTEMS_CPU)
|
||||
|
||||
BSP_SUBDIRS="$BSP_SUBDIRS lib/libbsp"
|
||||
BSP_SUBDIRS="$BSP_SUBDIRS libchip"
|
||||
BSP_SUBDIRS="$BSP_SUBDIRS support"
|
||||
BSP_SUBDIRS="$BSP_SUBDIRS wrapup"
|
||||
|
||||
# Build testsuites
|
||||
@@ -168,7 +167,6 @@ AC_CONFIG_FILES([Makefile],
|
||||
MAKE=${MAKE}])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
support/Makefile
|
||||
libchip/Makefile
|
||||
lib/libbsp/Makefile
|
||||
wrapup/Makefile
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
include $(top_srcdir)/automake/compile.am
|
||||
|
||||
AM_CPPFLAGS += -DRTEMS_BSP=\"@RTEMS_BSP@\"
|
||||
|
||||
noinst_LIBRARIES = libsupport.a
|
||||
|
||||
libsupport_a_SOURCES = version.c
|
||||
libsupport_a_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
|
||||
include $(top_srcdir)/automake/local.am
|
||||
@@ -13,8 +13,6 @@ TMPINSTALL_FILES = $(PROJECT_LIB)/librtemsbsp.a
|
||||
|
||||
CLEANFILES = o-optimize/librtemsbsp.a
|
||||
|
||||
SRCS = ../support/libsupport.a
|
||||
|
||||
SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
|
||||
|
||||
SRCS += ../libchip/libflash.a
|
||||
|
||||
Reference in New Issue
Block a user