mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-04-28 Chris Johns <chrisj@rtems.org>
* fileio/init.c, fileio/system.h, iostream/init.cc,
loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
BSP_SMALL_MEMORY is defined. Remove this code once a better way is
supported by the build system.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* fileio/init.c, fileio/system.h, iostream/init.cc,
|
||||
loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
|
||||
BSP_SMALL_MEMORY is defined. Remove this code once a better way is
|
||||
supported by the build system.
|
||||
|
||||
2009-04-14 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
|
||||
|
||||
* fileio/init.c: Removed obsolete header include.
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/fsmount.h>
|
||||
|
||||
#if FILEIO_BUILD
|
||||
/*
|
||||
* Table of FAT file systems that will be mounted
|
||||
* with the "fsmount" function.
|
||||
@@ -725,3 +726,14 @@ rtems_shell_alias_t Shell_USERECHO_Alias = {
|
||||
#include <rtems/shellconfig.h>
|
||||
#endif
|
||||
|
||||
#else
|
||||
/*
|
||||
* RTEMS Startup Task
|
||||
*/
|
||||
rtems_task
|
||||
Init (rtems_task_argument ignored)
|
||||
{
|
||||
puts( "\n\n*** FILE I/O SAMPLE AND TEST ***" );
|
||||
puts( "\n\n*** NOT ENOUGH MEMORY TO BUILD AND RUN ***" );
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,13 @@ rtems_task Init(
|
||||
/* configuration information */
|
||||
|
||||
#include <bsp.h> /* for device driver prototypes */
|
||||
#ifdef RTEMS_BSP_HAS_IDE_DRIVER
|
||||
|
||||
#define FILEIO_BUILD 1
|
||||
#if BSP_SMALL_MEMORY
|
||||
#undef FILEIO_BUILD
|
||||
#endif
|
||||
|
||||
#if defined(RTEMS_BSP_HAS_IDE_DRIVER) && !BSP_SMALL_MEMORY
|
||||
#include <libchip/ata.h> /* for ata driver prototype */
|
||||
#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
|
||||
#endif
|
||||
|
||||
@@ -23,15 +23,25 @@
|
||||
#define CONFIGURE_INIT
|
||||
#include "system.h"
|
||||
|
||||
#if BSP_SMALL_MEMORY
|
||||
#include <stdio.h>
|
||||
#else
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument ignored
|
||||
)
|
||||
{
|
||||
#if BSP_SMALL_MEMORY
|
||||
printf ("NO STDC++. MEMORY TOO SMALL");
|
||||
#else
|
||||
std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
|
||||
std::cout << "Hello World" << std::endl;
|
||||
std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
|
||||
#endif
|
||||
exit( 0 );
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
#if !BSP_SMALL_MEMORY
|
||||
|
||||
#include <rtems/rtems_bsdnet.h>
|
||||
#include <rtems/error.h>
|
||||
#include <stdio.h>
|
||||
@@ -273,3 +275,14 @@ Init (rtems_task_argument ignored)
|
||||
puts( "*** END OF LOOPBACK TEST ***" );
|
||||
exit( 0 );
|
||||
}
|
||||
#else
|
||||
#include <stdio.h>
|
||||
/*
|
||||
* RTEMS Startup Task
|
||||
*/
|
||||
rtems_task
|
||||
Init (rtems_task_argument ignored)
|
||||
{
|
||||
printf("NO NETWORKING. MEMORY TOO SMALL");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2,23 +2,26 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <rtems/rtems_bsdnet.h>
|
||||
#include <rtems/rtemspppd.h>
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
#include "system.h"
|
||||
|
||||
#if !BSP_SMALL_MEMORY
|
||||
#include <rtems/rtems_bsdnet.h>
|
||||
#include <rtems/rtemspppd.h>
|
||||
#include "netconfig.h"
|
||||
|
||||
|
||||
extern int pppdapp_initialize(void);
|
||||
|
||||
#endif
|
||||
|
||||
rtems_task Init(rtems_task_argument argument)
|
||||
{
|
||||
#if BSP_SMALL_MEMORY
|
||||
printf("NO NETWORKING. MEMORY TOO SMALL");
|
||||
#else
|
||||
/* initialize network */
|
||||
rtems_bsdnet_initialize_network();
|
||||
rtems_pppd_initialize();
|
||||
pppdapp_initialize();
|
||||
|
||||
#endif
|
||||
rtems_task_delete(RTEMS_SELF);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
#if !BSP_SMALL_MEMORY
|
||||
|
||||
#include <stdio.h>
|
||||
#include <rtems/rtemspppd.h>
|
||||
#include "system.h"
|
||||
@@ -144,3 +148,5 @@ int pppdapp_initialize(void)
|
||||
|
||||
return ( iReturn );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user