NAND/MX3: review scope of data
[openocd/jflash.git] / ecosflash / Makefile
blob8a879ad5bca73a150573a5cd36f027af055dceb7
1 #####ECOSGPLCOPYRIGHTBEGIN####
2 ## -------------------------------------------
3 ## This file is part of eCos, the Embedded Configurable Operating System.
4 ## Copyright (C) 2008 Øyvind Harboe
5 ##
6 ## eCos is free software; you can redistribute it and/or modify it under
7 ## the terms of the GNU General Public License as published by the Free
8 ## Software Foundation; either version 2 or (at your option) any later version.
9 ##
10 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
11 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 ## for more details.
15 ## You should have received a copy of the GNU General Public License along
16 ## with eCos; if not, write to the Free Software Foundation, Inc.,
17 ## 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19 ## As a special exception, if other files instantiate templates or use macros
20 ## or inline functions from this file, or you compile this file and link it
21 ## with other works to produce a work based on this file, this file does not
22 ## by itself cause the resulting work to be covered by the GNU General Public
23 ## License. However the source code for this file must still be made available
24 ## in accordance with section (3) of the GNU General Public License.
26 ## This exception does not invalidate any other reasons why a work based on
27 ## this file might be covered by the GNU General Public License.
28 ## -------------------------------------------
29 #####ECOSGPLCOPYRIGHTEND####
31 # Create OpenOCD eCos flash driver
32 # Syntax: make INSTALL_DIR=ecosinstalldir OUTPUT=outputname
34 include $(INSTALL_DIR)/include/pkgconf/ecos.mak
36 all:
37 $(ECOS_COMMAND_PREFIX)gcc $(ECOS_GLOBAL_CFLAGS) $(ECOS_GLOBAL_LDFLAGS) -g -o debug_$(OUTPUT).elf -nostdlib flash.S flash.c -Wl,--gc-sections -I$(INSTALL_DIR)/include -Wl,$(INSTALL_DIR)/lib/libtarget.a -Wl,-Map,flash.map
38 cp debug_$(OUTPUT).elf $(OUTPUT).elf
39 $(ECOS_COMMAND_PREFIX)strip $(OUTPUT).elf
40 echo Flash driver $(OUTPUT).elf