Browse Source

build: add helper/types.h to config.h

this header is used in numerous files and adding to config.h
simplifies its use globally.

Change-Id: Id724a9950b90504721233022c7fb5768e9bc5548
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/649
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
tags/v0.6.0-rc1
Spencer Oliver 10 years ago
parent
commit
7bfcc10839
24 changed files with 1 additions and 40 deletions
  1. +1
    -0
      configure.ac
  2. +0
    -2
      src/helper/binarybuffer.h
  3. +0
    -2
      src/helper/command.h
  4. +0
    -2
      src/helper/fileio.h
  5. +0
    -4
      src/helper/replacements.h
  6. +0
    -1
      src/jtag/drivers/libusb0_common.h
  7. +0
    -1
      src/jtag/drivers/libusb1_common.h
  8. +0
    -2
      src/jtag/drivers/rlink.h
  9. +0
    -1
      src/jtag/drivers/ulink.c
  10. +0
    -2
      src/jtag/drivers/usb_common.h
  11. +0
    -2
      src/pld/xilinx_bit.h
  12. +0
    -1
      src/rtos/rtos.h
  13. +0
    -2
      src/target/arm_disassembler.h
  14. +0
    -2
      src/target/arm_simulator.h
  15. +0
    -2
      src/target/armv4_5_cache.h
  16. +0
    -2
      src/target/avr32_ap7k.h
  17. +0
    -1
      src/target/avr32_jtag.c
  18. +0
    -2
      src/target/breakpoints.h
  19. +0
    -2
      src/target/mips_m4k.h
  20. +0
    -1
      src/target/register.c
  21. +0
    -1
      src/target/smp.c
  22. +0
    -2
      src/target/target.h
  23. +0
    -1
      src/target/target_type.h
  24. +0
    -2
      src/target/trace.h

+ 1
- 0
configure.ac View File

@@ -11,6 +11,7 @@ AM_MAINTAINER_MODE
AM_CONFIG_HEADER([config.h])
AH_BOTTOM([
#include <helper/system.h>
#include <helper/types.h>
#include <helper/replacements.h>
])



+ 0
- 2
src/helper/binarybuffer.h View File

@@ -24,8 +24,6 @@
#ifndef BINARYBUFFER_H
#define BINARYBUFFER_H

#include <helper/types.h>

/** @file
* Support functions to access arbitrary bits in a byte array
*/


+ 0
- 2
src/helper/command.h View File

@@ -24,8 +24,6 @@
#ifndef COMMAND_H
#define COMMAND_H

#include <helper/types.h>

#include <jim.h>
#include <jim-nvp.h>



+ 0
- 2
src/helper/fileio.h View File

@@ -27,8 +27,6 @@
#ifndef FILEIO_H
#define FILEIO_H

#include <helper/types.h>

#define FILEIO_MAX_ERROR_STRING (128)

enum fileio_type {


+ 0
- 4
src/helper/replacements.h View File

@@ -139,8 +139,6 @@ static inline unsigned usleep(unsigned int usecs)
#include <windows.h>
#include <time.h>

#include <helper/types.h>

/* Windows does not declare sockaddr_un */
#define UNIX_PATH_LEN 108
struct sockaddr_un {
@@ -230,8 +228,6 @@ static inline int socket_select(int max_fd,

#ifndef HAVE_ELF_H

#include <helper/types.h>

typedef uint32_t Elf32_Addr;
typedef uint16_t Elf32_Half;
typedef uint32_t Elf32_Off;


+ 0
- 1
src/jtag/drivers/libusb0_common.h View File

@@ -22,7 +22,6 @@
#ifndef JTAG_LIBUSB_COMMON_H
#define JTAG_LIBUSB_COMMON_H

#include <helper/types.h>
#include <usb.h>

#define jtag_libusb_device usb_device


+ 0
- 1
src/jtag/drivers/libusb1_common.h View File

@@ -22,7 +22,6 @@
#ifndef JTAG_LIBUSB_COMMON_H
#define JTAG_LIBUSB_COMMON_H

#include <helper/types.h>
#include <libusb-1.0/libusb.h>

#define jtag_libusb_device libusb_device


+ 0
- 2
src/jtag/drivers/rlink.h View File

@@ -18,8 +18,6 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/

#include <helper/types.h>

struct rlink_speed_table {
uint8_t const *dtc;
uint16_t dtc_size;


+ 0
- 1
src/jtag/drivers/ulink.c View File

@@ -26,7 +26,6 @@
#include <jtag/interface.h>
#include <jtag/commands.h>
#include <target/image.h>
#include <helper/types.h>
#include "usb_common.h"
#include "OpenULINK/include/msgtypes.h"



+ 0
- 2
src/jtag/drivers/usb_common.h View File

@@ -20,8 +20,6 @@
#ifndef JTAG_USB_COMMON_H
#define JTAG_USB_COMMON_H

#include <helper/types.h>

#include <usb.h>

int jtag_usb_open(const uint16_t vids[], const uint16_t pids[],


+ 0
- 2
src/pld/xilinx_bit.h View File

@@ -21,8 +21,6 @@
#ifndef XILINX_BIT_H
#define XILINX_BIT_H

#include <helper/types.h>

struct xilinx_bit_file {
uint8_t unknown_header[13];
uint8_t *source_file;


+ 0
- 1
src/rtos/rtos.h View File

@@ -22,7 +22,6 @@
#define RTOS_H

#include "server/server.h"
#include <helper/types.h>
#include <jim-nvp.h>

typedef int64_t threadid_t;


+ 0
- 2
src/target/arm_disassembler.h View File

@@ -21,8 +21,6 @@
#ifndef ARM_DISASSEMBLER_H
#define ARM_DISASSEMBLER_H

#include <helper/types.h>

enum arm_instruction_type {
ARM_UNKNOWN_INSTUCTION,



+ 0
- 2
src/target/arm_simulator.h View File

@@ -21,8 +21,6 @@
#ifndef ARM_SIMULATOR_H
#define ARM_SIMULATOR_H

#include <helper/types.h>

struct target;

struct arm_sim_interface {


+ 0
- 2
src/target/armv4_5_cache.h View File

@@ -21,8 +21,6 @@
#ifndef ARMV4_5_CACHE_H
#define ARMV4_5_CACHE_H

#include <helper/types.h>

struct command_context;

struct armv4_5_cachesize {


+ 0
- 2
src/target/avr32_ap7k.h View File

@@ -20,8 +20,6 @@
#ifndef AVR32_AP7K
#define AVR32_AP7K

#include <helper/types.h>

struct target;

#define AP7k_COMMON_MAGIC 0x4150374b


+ 0
- 1
src/target/avr32_jtag.c View File

@@ -22,7 +22,6 @@
#endif

#include "target.h"
#include "helper/types.h"
#include "jtag/jtag.h"
#include "avr32_jtag.h"



+ 0
- 2
src/target/breakpoints.h View File

@@ -21,8 +21,6 @@
#ifndef BREAKPOINTS_H
#define BREAKPOINTS_H

#include <helper/types.h>

struct target;

enum breakpoint_type {


+ 0
- 2
src/target/mips_m4k.h View File

@@ -26,8 +26,6 @@
#ifndef MIPS_M4K_H
#define MIPS_M4K_H

#include <helper/types.h>

struct target;

#define MIPSM4K_COMMON_MAGIC 0xB321B321


+ 0
- 1
src/target/register.c View File

@@ -25,7 +25,6 @@
#include "config.h"
#endif

#include <helper/types.h>
#include "register.h"
#include <helper/log.h>



+ 0
- 1
src/target/smp.c View File

@@ -23,7 +23,6 @@
#endif

#include "server/server.h"
#include <helper/types.h>

#include "target/target.h"



+ 0
- 2
src/target/target.h View File

@@ -33,8 +33,6 @@
#ifndef TARGET_H
#define TARGET_H

#include <helper/types.h>

struct reg;
struct trace;
struct command_context;


+ 0
- 1
src/target/target_type.h View File

@@ -27,7 +27,6 @@
#ifndef TARGET_TYPE_H
#define TARGET_TYPE_H

#include <helper/types.h>
#include <jim-nvp.h>

struct target;


+ 0
- 2
src/target/trace.h View File

@@ -21,8 +21,6 @@
#ifndef TRACE_H
#define TRACE_H

#include <helper/types.h>

struct target;
struct command_context;



Loading…
Cancel
Save