You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
2.0 KiB

  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.
  14. ##
  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.
  18. ##
  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.
  25. ##
  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####
  30. # Create OpenOCD eCos flash driver
  31. # Syntax: make INSTALL_DIR=ecosinstalldir OUTPUT=outputname
  32. include $(INSTALL_DIR)/include/pkgconf/ecos.mak
  33. all:
  34. $(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
  35. cp debug_$(OUTPUT).elf $(OUTPUT).elf
  36. $(ECOS_COMMAND_PREFIX)strip $(OUTPUT).elf
  37. echo Flash driver $(OUTPUT).elf