summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-13 18:54:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-13 18:54:45 +0000
commit5d2c26f18f3aac94f9ef4b0f7e0fc09313f3209f (patch)
tree17fbc110cabd712534cd3009d8a21cfe0fb4841a
parent0417fe38d63d1f663a72e9afc13a68126d9e4576 (diff)
2009-05-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile, init.c, system.h: Allow overrides from invoking environment. Also move RTEMS Configuration to bottom of init.c.
-rw-r--r--http/ChangeLog5
-rw-r--r--http/Makefile2
-rw-r--r--http/init.c48
-rw-r--r--http/system.h7
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 <joel.sherrill@oarcorp.com>
+
+ * Makefile, init.c, system.h: Allow overrides from invoking
+ environment. Also move RTEMS Configuration to bottom of init.c.
+
2009-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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 <bsp.h>
#include <errno.h>
#include <time.h>
-#include <rtems/confdefs.h>
#include <stdio.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/ftpd.h>
@@ -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 <rtems/confdefs.h>
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 <rtems/confdefs.h>
-
/* end of include file */