From b07e06a1bc6906638f5370ae033ef3a87e93ddd3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 27 Oct 1999 19:35:36 +0000 Subject: New files from Ralf Corsepius which are a dummy for linking programs together when you are primarily concerned with tricking another package into building. This may grow into something which could help link programs on the command line by having a default start sequence. --- c/src/libmisc/dummy/Makefile.in | 70 +++++++++++++++++++++++++++++++++++++++++ c/src/libmisc/dummy/README | 23 ++++++++++++++ c/src/libmisc/dummy/dummy.c | 36 +++++++++++++++++++++ cpukit/libmisc/dummy/README | 23 ++++++++++++++ cpukit/libmisc/dummy/dummy.c | 36 +++++++++++++++++++++ 5 files changed, 188 insertions(+) create mode 100644 c/src/libmisc/dummy/Makefile.in create mode 100644 c/src/libmisc/dummy/README create mode 100644 c/src/libmisc/dummy/dummy.c create mode 100644 cpukit/libmisc/dummy/README create mode 100644 cpukit/libmisc/dummy/dummy.c diff --git a/c/src/libmisc/dummy/Makefile.in b/c/src/libmisc/dummy/Makefile.in new file mode 100644 index 0000000000..9a9f9939f8 --- /dev/null +++ b/c/src/libmisc/dummy/Makefile.in @@ -0,0 +1,70 @@ +# +# $Id$ +# + +@SET_MAKE@ +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +top_builddir = .. +subdir = dummy + +RTEMS_ROOT = @RTEMS_ROOT@ +PROJECT_ROOT = @PROJECT_ROOT@ + +VPATH = @srcdir@ + +PGM = ${ARCH}/dummy.rel + +# C source names, if any, go here -- minus the .c +C_PIECES = dummy +C_FILES = $(C_PIECES:%=%.c) +C_O_FILES = $(C_PIECES:%=${ARCH}/%.o) + +H_FILES = + +SRCS = $(C_FILES) $(H_FILES) +OBJS = $(C_O_FILES) + +include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg +include $(RTEMS_ROOT)/make/lib.cfg + +INSTALL_CHANGE = @INSTALL_CHANGE@ +mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs + +INSTALLDIRS = $(PROJECT_INCLUDE)/rtems + +$(INSTALLDIRS): + @$(mkinstalldirs) $(INSTALLDIRS) + +# +# (OPTIONAL) Add local stuff here using += +# + +DEFINES += +CPPFLAGS += -I. +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 += + +${PGM}: ${SRCS} ${OBJS} + $(make-rel) + +all: ${ARCH} $(SRCS) $(PGM) + $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib + + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status diff --git a/c/src/libmisc/dummy/README b/c/src/libmisc/dummy/README new file mode 100644 index 0000000000..03bb30834d --- /dev/null +++ b/c/src/libmisc/dummy/README @@ -0,0 +1,23 @@ +dummy.rel +========= + +A relocatible objects which contains a dummy configuration for RTEMS. + +Helps linking standard c-program code with RTEMS, which shall *not* be run +on a target, such as configure script code fragments generated by autoconf's +AC_TRY_LINK. + +Example: + +tar xzvf somepkg.tar.gz +cd somepkg + +LDFLAGS=/usr/local/rtems/-rtems//lib/dummy.rel \ +CC="-rtems-gcc \ +-B/usr/local/rtems/-rtems//lib/ -specs bsp_specs -qrtems" \ +CC_FOR_BUILD="gcc" \ +configure --host=-rtems --build=i686-pc-linux-gnu +make + +History: +Starting dummy.c with a copy of rtems-19990528/c/src/tests/samples/minimum/init.c diff --git a/c/src/libmisc/dummy/dummy.c b/c/src/libmisc/dummy/dummy.c new file mode 100644 index 0000000000..7474b4a1c2 --- /dev/null +++ b/c/src/libmisc/dummy/dummy.c @@ -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_task Init( + rtems_task_argument ignored +) +{ +} + +/* configuration information */ + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include + +/* global variables */ + diff --git a/cpukit/libmisc/dummy/README b/cpukit/libmisc/dummy/README new file mode 100644 index 0000000000..03bb30834d --- /dev/null +++ b/cpukit/libmisc/dummy/README @@ -0,0 +1,23 @@ +dummy.rel +========= + +A relocatible objects which contains a dummy configuration for RTEMS. + +Helps linking standard c-program code with RTEMS, which shall *not* be run +on a target, such as configure script code fragments generated by autoconf's +AC_TRY_LINK. + +Example: + +tar xzvf somepkg.tar.gz +cd somepkg + +LDFLAGS=/usr/local/rtems/-rtems//lib/dummy.rel \ +CC="-rtems-gcc \ +-B/usr/local/rtems/-rtems//lib/ -specs bsp_specs -qrtems" \ +CC_FOR_BUILD="gcc" \ +configure --host=-rtems --build=i686-pc-linux-gnu +make + +History: +Starting dummy.c with a copy of rtems-19990528/c/src/tests/samples/minimum/init.c diff --git a/cpukit/libmisc/dummy/dummy.c b/cpukit/libmisc/dummy/dummy.c new file mode 100644 index 0000000000..7474b4a1c2 --- /dev/null +++ b/cpukit/libmisc/dummy/dummy.c @@ -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_task Init( + rtems_task_argument ignored +) +{ +} + +/* configuration information */ + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include + +/* global variables */ + -- cgit v1.2.3