From 5d2c26f18f3aac94f9ef4b0f7e0fc09313f3209f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 13 May 2009 18:54:45 +0000 Subject: 2009-05-13 Joel Sherrill * Makefile, init.c, system.h: Allow overrides from invoking environment. Also move RTEMS Configuration to bottom of init.c. --- http/ChangeLog | 5 +++++ http/Makefile | 2 +- http/init.c | 48 +++++++++++++++++++++++++----------------------- http/system.h | 7 +------ 4 files changed, 32 insertions(+), 30 deletions(-) diff --git a/http/ChangeLog b/http/ChangeLog index f869873..ccb9c8a 100644 --- a/http/ChangeLog +++ b/http/ChangeLog @@ -1,3 +1,8 @@ +2009-05-13 Joel Sherrill + + * Makefile, init.c, system.h: Allow overrides from invoking + environment. Also move RTEMS Configuration to bottom of init.c. + 2009-05-12 Joel Sherrill * Makefile: Now build with libbsdport. diff --git a/http/Makefile b/http/Makefile index 75377b8..550310d 100644 --- a/http/Makefile +++ b/http/Makefile @@ -32,7 +32,7 @@ include $(PROJECT_ROOT)/make/leaf.cfg # (OPTIONAL) Add local stuff here using += # -DEFINES += +override DEFINES += CPPFLAGS += CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0xC0000 CFLAGS_OPTIMIZE_V += diff --git a/http/init.c b/http/init.c index 075dcfb..9e5d0fc 100644 --- a/http/init.c +++ b/http/init.c @@ -5,35 +5,12 @@ * Don't forget to change the IP addresses */ -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE -#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 -#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM - -#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) -#define CONFIGURE_MAXIMUM_SEMAPHORES 20 -#define CONFIGURE_MAXIMUM_TASKS 20 - -#define CONFIGURE_MICROSECONDS_PER_TICK 10000 - -#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) -#define CONFIGURE_INIT_TASK_PRIORITY 120 -#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ - RTEMS_NO_TIMESLICE | \ - RTEMS_NO_ASR | \ - RTEMS_INTERRUPT_LEVEL(0)) - -#define CONFIGURE_STACK_CHECKER_ENABLED -#define CONFIGURE_INIT - #include "system.h" #include #include #include -#include #include #include #include @@ -172,5 +149,30 @@ rtems_task Init( } +/* + * Configuration + */ +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE +#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 +#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM + +#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) +#define CONFIGURE_MAXIMUM_SEMAPHORES 20 +#define CONFIGURE_MAXIMUM_TASKS 20 + +#define CONFIGURE_MICROSECONDS_PER_TICK 10000 +#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) +#define CONFIGURE_INIT_TASK_PRIORITY 120 +#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ + RTEMS_NO_TIMESLICE | \ + RTEMS_NO_ASR | \ + RTEMS_INTERRUPT_LEVEL(0)) + +#define CONFIGURE_STACK_CHECKER_ENABLED +#define CONFIGURE_INIT + +#include diff --git a/http/system.h b/http/system.h index 91fd5cd..273bd7c 100644 --- a/http/system.h +++ b/http/system.h @@ -3,9 +3,8 @@ * This include file contains information that is included in every * function in the test set. * - * COPYRIGHT (c) 1989-1998. + * COPYRIGHT (c) 1989-2009. * 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 @@ -20,8 +19,4 @@ rtems_task Init( rtems_task_argument argument ); -/* configuration information */ - -#include - /* end of include file */ -- cgit v1.2.3