Added simple test to find minimum code size of executive with this BSP

and RTEMS configuration.
This commit is contained in:
Joel Sherrill
1999-05-17 22:15:56 +00:00
parent c4d69e21a7
commit d785158293
8 changed files with 175 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ MP_TESTS = $(MP_TESTS_$(HAS_MP)_V)
FP_TESTS = paranoia
SUB_DIRS=hello ticker base_sp unlimited \
SUB_DIRS=hello ticker base_sp unlimited minimum \
$(MP_TESTS) $(CPLUSPLUS_TESTS) $(FP_TESTS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status

View File

@@ -0,0 +1,74 @@
#
# $Id$
#
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../../../..
subdir = c/src/tests/samples/minimum
INSTALL = @INSTALL@
RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
PROJECT_ROOT = @PROJECT_ROOT@
VPATH = @srcdir@
SAMPLE=minimum
PGM=${ARCH}/$(SAMPLE).exe
MANAGERS=io
# C source names, if any, go here -- minus the .c
C_PIECES=init
C_FILES=$(C_PIECES:%=%.c)
C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
H_FILES=
DOCTYPES=doc scn
DOCS=$(DOCTYPES:%=$(SAMPLE).%)
SRCS=$(DOCS) $(C_FILES) $(H_FILES)
OBJS=$(C_O_FILES)
PRINT_SRCS=$(DOCS)
PGM=${ARCH}/$(SAMPLE).exe
include $(RTEMS_ROOT)/make/custom/${RTEMS_BSP}.cfg
include $(RTEMS_ROOT)/make/leaf.cfg
#
# (OPTIONAL) Add local stuff here using +=
#
DEFINES +=
CPPFLAGS +=
CFLAGS +=
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 +=
CLOBBER_ADDITIONS +=
all: ${ARCH} $(SRCS) $(PGM)
$(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
$(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/samples
${PGM}: $(OBJS) $(LINK_FILES)
$(make-exe)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

View File

@@ -0,0 +1,36 @@
/* Init
*
*
* Input parameters: NONE
*
* Output parameters: NONE
*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).
* Copyright assigned to U.S. Government, 1994.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.OARcorp.com/rtems/license.html.
*
* $Id$
*/
#include <rtems.h>
rtems_task Init(
rtems_task_argument ignored
)
{
}
/* configuration information */
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <confdefs.h>
/* global variables */

View File

@@ -0,0 +1,13 @@
#
# $Id$
#
# COPYRIGHT (c) 1989-1998.
# On-Line Applications Research Corporation (OAR).
# Copyright assigned to U.S. Government, 1994.
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.OARcorp.com/rtems/license.html.
#

View File

@@ -0,0 +1 @@
*** TEST SHOULD NOT BE RUN ***

View File

@@ -0,0 +1,36 @@
/* Init
*
*
* Input parameters: NONE
*
* Output parameters: NONE
*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).
* Copyright assigned to U.S. Government, 1994.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.OARcorp.com/rtems/license.html.
*
* $Id$
*/
#include <rtems.h>
rtems_task Init(
rtems_task_argument ignored
)
{
}
/* configuration information */
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <confdefs.h>
/* global variables */

View File

@@ -0,0 +1,13 @@
#
# $Id$
#
# COPYRIGHT (c) 1989-1998.
# On-Line Applications Research Corporation (OAR).
# Copyright assigned to U.S. Government, 1994.
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.OARcorp.com/rtems/license.html.
#

View File

@@ -0,0 +1 @@
*** TEST SHOULD NOT BE RUN ***