Changeset 6c58235 in network-demos for http/init.c


Ignore:
Timestamp:
Jul 12, 2000, 4:44:57 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
rtems-4-5-branch
Children:
6dba533
Parents:
969907a
Message:

Patch from Andrew Bythell <abythell@…> that should
allow the http demo to build a correct starting filesystem and
run. Formerly, the http demo did not configure the filesystem
as needed or build the tar file such that GoAhead? could find it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • http/init.c

    r969907a r6c58235  
    1111#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    1212#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     13#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS        20
     14#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
    1315
    1416#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
     
    5153#define ARGUMENT 0
    5254
    53 extern int _binary_tarfile_start;
    54 extern int _binary_tarfile_size;
     55/*
     56 *  The tarfile is built in $(ARCH) so includes whether we were
     57 *  built optimized or debug.
     58 */
     59
     60#if defined(RTEMS_DEBUG)
     61extern int _binary_o_debug_tarfile_start;
     62extern int _binary_o_debug_tarfile_size;
     63#define TARFILE_START _binary_o_debug_tarfile_start
     64#define TARFILE_SIZE _binary_o_debug_tarfile_size
     65#else
     66extern int _binary_o_optimize_tarfile_start;
     67extern int _binary_o_optimize_tarfile_size;
     68#define TARFILE_START _binary_o_optimize_tarfile_start
     69#define TARFILE_SIZE _binary_o_optimize_tarfile_size
     70#endif
    5571
    5672struct rtems_ftpd_configuration rtems_ftpd_configuration = {
    5773   10,                     /* FTPD task priority            */
    5874   1024,                   /* Maximum buffersize for hooks  */
    59    80,                     /* Well-known port     */
     75   21,                     /* Well-known port     */
    6076   NULL                    /* List of hooks       */
    6177};
     
    7187
    7288  rtems_bsdnet_initialize_network ();
    73 
    7489  rtems_initialize_ftpd();
    7590
    76   status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),
    77                             &_binary_tarfile_size);
     91  status = Untar_FromMemory((unsigned char *)(&TARFILE_START), &TARFILE_SIZE);
    7892   
    7993  rtems_initialize_webserver();
Note: See TracChangeset for help on using the changeset viewer.