|
2
|
1 #=============================================================================== |
|
|
2 # |
|
|
3 # makefile |
|
|
4 # |
|
|
5 # hal/arm/pid/misc |
|
|
6 # |
|
|
7 #=============================================================================== |
|
|
8 #####COPYRIGHTBEGIN#### |
|
|
9 # |
|
|
10 # ------------------------------------------- |
|
|
11 # The contents of this file are subject to the Cygnus eCos Public License |
|
|
12 # Version 1.0 (the "License"); you may not use this file except in |
|
|
13 # compliance with the License. You may obtain a copy of the License at |
|
|
14 # http://sourceware.cygnus.com/ecos |
|
|
15 # |
|
|
16 # Software distributed under the License is distributed on an "AS IS" |
|
|
17 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
18 # License for the specific language governing rights and limitations under |
|
|
19 # the License. |
|
|
20 # |
|
|
21 # The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
22 # September 30, 1998. |
|
|
23 # |
|
|
24 # The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
25 # by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
|
26 # ------------------------------------------- |
|
|
27 # |
|
|
28 #####COPYRIGHTEND#### |
|
|
29 #=============================================================================== |
|
|
30 |
|
|
31 PACKAGE := hal_arm_pid |
|
|
32 include ../../../../../pkgconf/pkgconf.mak |
|
|
33 include ../../../../../pkgconf/system.mak |
|
|
34 |
|
|
35 ifdef CYG_HAL_STARTUP_STUBS |
|
|
36 PROGS := gdb_module |
|
|
37 OTHER_PROGS := gdb_module.img |
|
|
38 endif |
|
|
39 ifdef CYG_HAL_STARTUP_RAM |
|
|
40 PROGS := flash prog_flash |
|
|
41 endif |
|
|
42 WHEREAMI := misc |
|
|
43 |
|
|
44 include $(COMPONENT_REPOSITORY)/pkgconf/makrules.prv |
|
|
45 |
|
|
46 ifdef CYG_HAL_STARTUP_STUBS |
|
|
47 gdb_module.img: gdb_module.stamp |
|
|
48 $(OBJCOPY) --strip-all gdb_module$(EXEEXT) gdb_module.img.XX |
|
|
49 $(OBJCOPY) --change-addresses=0xFC060000 gdb_module.img.XX gdb_module.img |
|
|
50 $(OBJCOPY) -O binary gdb_module.img gdb_module.bin |
|
|
51 $(RM) -f gdb_module.img.XX |
|
|
52 endif |
|
|
53 |