diff options
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/dummy/README | 23 | ||||
-rw-r--r-- | cpukit/libmisc/dummy/dummy.c | 36 |
2 files changed, 59 insertions, 0 deletions
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/<cpu>-rtems/<bsp>/lib/dummy.rel \ +CC="<cpu>-rtems-gcc \ +-B/usr/local/rtems/<cpu>-rtems/<bsp>/lib/ -specs bsp_specs -qrtems" \ +CC_FOR_BUILD="gcc" \ +configure --host=<cpu>-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.h> + +rtems_task Init( + rtems_task_argument ignored +) +{ +} + +/* configuration information */ + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include <confdefs.h> + +/* global variables */ + |