Changeset c0ec0d8 in rtems


Ignore:
Timestamp:
Apr 28, 2009, 5:04:11 AM (11 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
1c5ebc5
Parents:
a263aa72
Message:

2009-04-28 Chris Johns <chrisj@…>

  • 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.
Location:
testsuites/samples
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/ChangeLog

    ra263aa72 rc0ec0d8  
     12009-04-28      Chris Johns <chrisj@rtems.org>
     2
     3        * fileio/init.c, fileio/system.h, iostream/init.cc,
     4        loopback/init.c, pppd/init.c, pppd/pppdapp.c: Do not build if
     5        BSP_SMALL_MEMORY is defined. Remove this code once a better way is
     6        supported by the build system.
     7
    182009-04-14      Sebastian Huber <Sebastian.Huber@embedded-brains.de>
    29
  • testsuites/samples/fileio/init.c

    ra263aa72 rc0ec0d8  
    3737#include <rtems/fsmount.h>
    3838
     39#if FILEIO_BUILD
    3940/*
    4041 * Table of FAT file systems that will be mounted
     
    726727#endif
    727728
     729#else
     730/*
     731 * RTEMS Startup Task
     732 */
     733rtems_task
     734Init (rtems_task_argument ignored)
     735{
     736  puts( "\n\n*** FILE I/O SAMPLE AND TEST ***" );
     737  puts( "\n\n*** NOT ENOUGH MEMORY TO BUILD AND RUN ***" );
     738}
     739#endif
  • testsuites/samples/fileio/system.h

    ra263aa72 rc0ec0d8  
    2828
    2929#include <bsp.h> /* for device driver prototypes */
    30 #ifdef RTEMS_BSP_HAS_IDE_DRIVER
     30
     31#define FILEIO_BUILD 1
     32#if BSP_SMALL_MEMORY
     33#undef FILEIO_BUILD
     34#endif
     35
     36#if defined(RTEMS_BSP_HAS_IDE_DRIVER) && !BSP_SMALL_MEMORY
    3137#include <libchip/ata.h> /* for ata driver prototype */
    3238#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
  • testsuites/samples/iostream/init.cc

    ra263aa72 rc0ec0d8  
    2424#include "system.h"
    2525
     26#if BSP_SMALL_MEMORY
     27#include <stdio.h>
     28#else
    2629#include <iostream>
     30#endif
     31
    2732#include <stdlib.h>
    2833
     
    3136)
    3237{
     38#if BSP_SMALL_MEMORY
     39  printf ("NO STDC++. MEMORY TOO SMALL");
     40#else
    3341  std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
    3442  std::cout << "Hello World" << std::endl;
    3543  std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
     44#endif
    3645  exit( 0 );
    3746}
     47
  • testsuites/samples/loopback/init.c

    ra263aa72 rc0ec0d8  
    2929
    3030#include <rtems/confdefs.h>
     31
     32#if !BSP_SMALL_MEMORY
    3133
    3234#include <rtems/rtems_bsdnet.h>
     
    274276    exit( 0 );
    275277}
     278#else
     279#include <stdio.h>
     280/*
     281 * RTEMS Startup Task
     282 */
     283rtems_task
     284Init (rtems_task_argument ignored)
     285{
     286  printf("NO NETWORKING. MEMORY TOO SMALL");
     287}
     288#endif
  • testsuites/samples/pppd/init.c

    ra263aa72 rc0ec0d8  
    33#include <stdlib.h>
    44#include <string.h>
    5 #include <rtems/rtems_bsdnet.h>
    6 #include <rtems/rtemspppd.h>
    75
    86#define CONFIGURE_INIT
    97#include "system.h"
     8
     9#if !BSP_SMALL_MEMORY
     10#include <rtems/rtems_bsdnet.h>
     11#include <rtems/rtemspppd.h>
    1012#include "netconfig.h"
    11 
    12 
    1313extern int pppdapp_initialize(void);
    14 
     14#endif
    1515
    1616rtems_task Init(rtems_task_argument argument)
    1717{
     18#if BSP_SMALL_MEMORY
     19  printf("NO NETWORKING. MEMORY TOO SMALL");
     20#else
    1821  /* initialize network */
    1922  rtems_bsdnet_initialize_network();
    2023  rtems_pppd_initialize();
    2124  pppdapp_initialize();
    22 
     25#endif
    2326  rtems_task_delete(RTEMS_SELF);
    2427}
  • testsuites/samples/pppd/pppdapp.c

    ra263aa72 rc0ec0d8  
     1
     2#include <bsp.h>
     3
     4#if !BSP_SMALL_MEMORY
    15
    26#include <stdio.h>
     
    145149  return ( iReturn );
    146150}
     151
     152#endif
Note: See TracChangeset for help on using the changeset viewer.