From e810408ea72af2281e187286174c4fbaed7426ec Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 17 Feb 1998 21:39:36 +0000 Subject: First cut at automatic insertion of version information. --- c/src/exec/sapi/headers/Makefile.in | 12 ++++++++++-- c/src/exec/sapi/headers/sptables.h | 5 ++++- c/src/exec/sapi/include/rtems/Makefile.in | 12 ++++++++++-- c/src/exec/sapi/include/rtems/sptables.h | 5 ++++- 4 files changed, 28 insertions(+), 6 deletions(-) (limited to 'c/src') diff --git a/c/src/exec/sapi/headers/Makefile.in b/c/src/exec/sapi/headers/Makefile.in index a8d70293a2..cbc9a76a0f 100644 --- a/c/src/exec/sapi/headers/Makefile.in +++ b/c/src/exec/sapi/headers/Makefile.in @@ -8,7 +8,7 @@ VPATH = @srcdir@ RTEMS_ROOT = @top_srcdir@ PROJECT_ROOT = @PROJECT_ROOT@ -H_PIECES= config directives extension fatal init io mptables sptables +H_PIECES= config directives extension fatal init io mptables H_FILES=$(H_PIECES:%=$(srcdir)/%.h) # H_FILES that get installed externally @@ -30,6 +30,14 @@ include $(RTEMS_ROOT)/make/leaf.cfg CLEAN_ADDITIONS += CLOBBER_ADDITIONS += -all: $(SRCS) +all: $(SRCS) $(ARCH) $(PROJECT_INCLUDE)/rtems/score/sptables.h $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/ $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE) + +$(PROJECT_INCLUDE)/rtems/score/sptables.h: $(ARCH)/sptables.h-tmp + $(INSTALL) -m 444 $(ARCH)/sptables.h-tmp $@ + +$(ARCH)/sptables.h-tmp: $(ARCH) sptables.h + $(SED) -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \ + < $< >$(ARCH)/sptables.h-tmp + diff --git a/c/src/exec/sapi/headers/sptables.h b/c/src/exec/sapi/headers/sptables.h index e66f478c87..3adc7eb57a 100644 --- a/c/src/exec/sapi/headers/sptables.h +++ b/c/src/exec/sapi/headers/sptables.h @@ -61,8 +61,11 @@ const rtems_multiprocessing_table * This is the version string. */ +#define RTEMS_VERSION "980204" + const char _RTEMS_version[] = - "RTEMS RELEASE V4.1.0 (" CPU_NAME "/" CPU_MODEL_NAME ")"; + "RTEMS RELEASE " RTEMS_VERSION + "(" CPU_NAME "/" CPU_MODEL_NAME "/REPLACE_THIS_WITH_THE_BSP)"; /* diff --git a/c/src/exec/sapi/include/rtems/Makefile.in b/c/src/exec/sapi/include/rtems/Makefile.in index a8d70293a2..cbc9a76a0f 100644 --- a/c/src/exec/sapi/include/rtems/Makefile.in +++ b/c/src/exec/sapi/include/rtems/Makefile.in @@ -8,7 +8,7 @@ VPATH = @srcdir@ RTEMS_ROOT = @top_srcdir@ PROJECT_ROOT = @PROJECT_ROOT@ -H_PIECES= config directives extension fatal init io mptables sptables +H_PIECES= config directives extension fatal init io mptables H_FILES=$(H_PIECES:%=$(srcdir)/%.h) # H_FILES that get installed externally @@ -30,6 +30,14 @@ include $(RTEMS_ROOT)/make/leaf.cfg CLEAN_ADDITIONS += CLOBBER_ADDITIONS += -all: $(SRCS) +all: $(SRCS) $(ARCH) $(PROJECT_INCLUDE)/rtems/score/sptables.h $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/ $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE) + +$(PROJECT_INCLUDE)/rtems/score/sptables.h: $(ARCH)/sptables.h-tmp + $(INSTALL) -m 444 $(ARCH)/sptables.h-tmp $@ + +$(ARCH)/sptables.h-tmp: $(ARCH) sptables.h + $(SED) -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \ + < $< >$(ARCH)/sptables.h-tmp + diff --git a/c/src/exec/sapi/include/rtems/sptables.h b/c/src/exec/sapi/include/rtems/sptables.h index e66f478c87..3adc7eb57a 100644 --- a/c/src/exec/sapi/include/rtems/sptables.h +++ b/c/src/exec/sapi/include/rtems/sptables.h @@ -61,8 +61,11 @@ const rtems_multiprocessing_table * This is the version string. */ +#define RTEMS_VERSION "980204" + const char _RTEMS_version[] = - "RTEMS RELEASE V4.1.0 (" CPU_NAME "/" CPU_MODEL_NAME ")"; + "RTEMS RELEASE " RTEMS_VERSION + "(" CPU_NAME "/" CPU_MODEL_NAME "/REPLACE_THIS_WITH_THE_BSP)"; /* -- cgit v1.2.3