OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [powerpc/] [mbx/] [v2_0/] [misc/] [STUBS_config] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#! /bin/sh
2
# Configure PowerPC/cogent eCos to create Cogent GDB stubs
3
# Ensure that PATH include the directory where the PPC tools reside.
4
#
5
# Run from an empty temporary directory with one argument: the path to
6
# the packages directory (i.e., where pkgconf.tcl lives).
7
#
8
# Output will be ./stubrom.bin which is suitable for burning into ROM.
9
# Remember to be careful with byte-endianess in the ROM programmer.
10
 
11
if ( echo | tclsh ) 2>/dev/null ; then
12
  TCL=tclsh
13
elif ( echo | cygtclsh80 ) 2>/dev/null ; then
14
  TCL=cygtclsh80
15
else
16
  echo Could not find TCL interpreter
17
  exit 1
18
fi
19
 
20
$TCL $1/pkgconf.tcl                                                    \
21
   --target=powerpc --platform=mbx --startup=rom                       \
22
   --disable CYGPKG_KERNEL --disable CYGPKG_UITRON                     \
23
   --disable CYGPKG_LIBC --disable CYGPKG_LIBM                         \
24
   --disable CYGPKG_ERROR --disable CYGPKG_IO                          \
25
   --disable CYGPKG_IO_SERIAL --disable CYGPKG_DEVICES_WALLCLOCK       \
26
   --disable CYGPKG_DEVICES_WATCHDOG
27
 
28
patch <
29
--- pkgconf/hal.h.orig  Thu Feb 10 09:05:07 2000
30
+++ pkgconf/hal.h       Thu Feb 10 09:04:56 2000
31
@@ -122,7 +122,7 @@
32
  }
33
 
34
  }}CFG_DATA */
35
-#define CYGFUN_HAL_COMMON_KERNEL_SUPPORT
36
+#undef  CYGFUN_HAL_COMMON_KERNEL_SUPPORT
37
 #undef  CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL
38
 
39
 #ifdef CYGDBG_HAL_DIAG_DISABLE_GDB_PROTOCOL
40
@@ -243,7 +243,7 @@
41
 #define CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK
42
 #define CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE 4096
43
 #undef  CYGSEM_HAL_COMMON_INTERRUPTS_ALLOW_NESTING
44
-#define CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
45
+#undef  CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
46
 #undef  CYGIMP_HAL_COMMON_INTERRUPTS_CHAIN
47
 #undef  CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS
48
 
49
@@ -272,7 +272,7 @@
50
  }
51
 
52
  }}CFG_DATA */
53
-#define CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
54
+#undef  CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
55
 
56
 /* {{CFG_DATA
57
 
58
@@ -423,10 +423,10 @@
59
 
60
    }}CFG_DATA */
61
 
62
-#undef   CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
63
+#define  CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
64
 #undef   CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
65
-#define  CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
66
-#define  CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
67
+#undef   CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT
68
+#undef   CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
69
 
70
 /*
71
  * NOTE:
72
@@ -522,7 +522,7 @@
73
 
74
 
75
 /* Enable this when configuring as a ROM monitor (i.e., stub) */
76
-#undef  CYGSEM_HAL_ROM_MONITOR
77
+#define CYGSEM_HAL_ROM_MONITOR
78
 
79
 #include CYGBLD_HAL_TARGET_H
80
 #include CYGBLD_HAL_PLATFORM_H
81
END_OF_PATCH
82
 
83
make
84
make -C hal/common/current/src/stubrom
85
powerpc-eabi-objcopy -O binary hal/common/current/src/stubrom/stubrom stubrom.bin

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.