AM_INIT_AUTOMAKE([-Wall -Wno-portability dist-bzip2 dist-zip subdir-objects])
AC_CONFIG_HEADERS([config.h])
-AH_BOTTOM([
-#include <helper/system.h>
-#include <helper/types.h>
-#include <helper/replacements.h>
-])
AC_LANG([C])
AC_PROG_CC
#define OPENOCD_FLASH_COMMON_H
#include <helper/log.h>
+#include <helper/replacements.h>
/**
* Parses the optional '.index' portion of a flash bank identifier.
#include "config.h"
#endif
+#include "helper/types.h"
#include <target/algorithm.h>
#include <target/armv7m.h>
#include <target/cortex_m.h>
#include "config.h"
#endif
+#include "helper/replacements.h"
#include "log.h"
#include "binarybuffer.h"
#ifndef OPENOCD_HELPER_BITS_H
#define OPENOCD_HELPER_BITS_H
+#include <helper/replacements.h>
#include <helper/types.h>
#define BIT(nr) (1UL << (nr))
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "configuration.h"
#include "log.h"
+#include "replacements.h"
static size_t num_config_files;
static char **config_file_names;
#include "log.h"
#include "configuration.h"
#include "fileio.h"
+#include "replacements.h"
struct fileio {
char *url;
#ifndef OPENOCD_HELPER_FILEIO_H
#define OPENOCD_HELPER_FILEIO_H
+#include "types.h"
+
#define FILEIO_MAX_ERROR_STRING (128)
enum fileio_type {
#include "log.h"
#include "command.h"
+#include "replacements.h"
#include "time_support.h"
#include <stdarg.h>
#include <limits.h>
#include <stdlib.h>
+#include <string.h>
#if IS_DARWIN
#include <libproc.h>
#endif
#ifdef _WIN32
#include <io.h>
+#include <winsock2.h>
#endif
/* replacements for gettimeofday */
#define OPENOCD_HELPER_REPLACEMENTS_H
#include <stdint.h>
+#include <helper/system.h>
/* MIN,MAX macros */
#ifndef MIN
#ifndef OPENOCD_HELPER_SYSTEM_H
#define OPENOCD_HELPER_SYSTEM_H
+/* +++ platform specific headers +++ */
+#ifdef _WIN32
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#endif
+/* --- platform specific headers --- */
+
/* standard C library header files */
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#endif
-/* +++ platform specific headers +++ */
-#ifdef _WIN32
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#endif
-/* --- platform specific headers --- */
-
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#define OPENOCD_HELPER_TIME_SUPPORT_H
#include <time.h>
+#include "types.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include "config.h"
#endif
+#include <helper/system.h>
+
#ifdef _WIN32
#include <windows.h>
#else
#include <target/target.h>
#include <jtag/aice/aice_interface.h>
#include <jtag/aice/aice_transport.h>
+#include <string.h>
/* */
static int jim_newtap_expected_id(Jim_Nvp *n, Jim_GetOptInfo *goi,
#include "config.h"
#endif
+#include <helper/system.h>
#include <jtag/drivers/libusb_helper.h>
#include <helper/log.h>
#include <helper/time_support.h>
#include "interface.h"
#include <transport/transport.h>
#include <helper/jep106.h>
+#include "helper/system.h"
#ifdef HAVE_STRINGS_H
#include <strings.h>
#include <jtag/interface.h>
#include <jtag/commands.h>
+#include "helper/system.h"
#include "libusb_helper.h"
#define USB_VID 0x15ba
#endif
#include <transport/transport.h>
+#include "helper/replacements.h"
#include <jtag/swd.h>
#include <jtag/interface.h>
#include <jtag/commands.h>
#include "config.h"
#endif
+#include <helper/system.h>
#include <libusb.h>
#include <helper/log.h>
+#include <helper/replacements.h>
#include "cmsis_dap.h"
#include "config.h"
#endif
+#include <string.h>
#include <hidapi.h>
#include <helper/log.h>
#include <jtag/swd.h>
#include <transport/transport.h>
#include <helper/time_support.h>
+#include <helper/log.h>
#if IS_CYGWIN == 1
#include <windows.h>
#include <jtag/swd.h>
#include <jtag/commands.h>
#include <jtag/drivers/jtag_usb_common.h>
+#include <src/helper/replacements.h>
#include <target/cortex_m.h>
#include <libjaylink/libjaylink.h>
*/
#include <helper/log.h>
+#include <string.h>
#include "jtag_usb_common.h"
#ifndef OPENOCD_JTAG_USB_COMMON_H
#define OPENOCD_JTAG_USB_COMMON_H
+#include <helper/replacements.h>
+#include <helper/types.h>
+
void jtag_usb_set_location(const char *location);
const char *jtag_usb_get_location(void);
bool jtag_usb_location_equal(uint8_t dev_bus, uint8_t *port_path,
#include <netinet/tcp.h>
#endif
-#include <string.h>
+#include "helper/replacements.h"
#define NO_TAP_SHIFT 0
#define TAP_SHIFT 1
#include "mpsse.h"
#include "helper/log.h"
+#include "helper/replacements.h"
#include "helper/time_support.h"
#include <libusb.h>
#include <sys/un.h>
#include <netdb.h>
#endif
+#include "helper/system.h"
+#include "helper/replacements.h"
#include <jtag/interface.h>
#include "bitbang.h"
/* project specific includes */
#include <jtag/interface.h>
#include <jtag/commands.h>
+#include "helper/replacements.h"
#include "rlink.h"
#include "rlink_st7.h"
#include "rlink_ep1_cmd.h"
#ifndef OPENOCD_JTAG_DRIVERS_RLINK_H
#define OPENOCD_JTAG_DRIVERS_RLINK_H
+#include "helper/types.h"
struct rlink_speed_table {
uint8_t const *dtc;
uint16_t dtc_size;
/* project specific includes */
#include <helper/binarybuffer.h>
#include <helper/bits.h>
+#include <helper/system.h>
#include <jtag/interface.h>
#include <jtag/hla/hla_layout.h>
#include <jtag/hla/hla_transport.h>
#endif
#include <math.h>
+#include "helper/system.h"
#include <jtag/interface.h>
#include <jtag/commands.h>
#include <target/image.h>
#endif
#include <jtag/interface.h>
#include <jtag/commands.h>
+#include "helper/system.h"
#include <libusb_helper.h>
#include <target/image.h>
#include <jtag/interface.h>
#include <jtag/commands.h>
#include <helper/time_support.h>
+#include <helper/replacements.h>
#include "ublast_access.h"
/* system includes */
#include "config.h"
#endif
+#include "versaloon_include.h"
+
#include <stdio.h>
#include <string.h>
#include <libusb.h>
-#include "versaloon_include.h"
#include "versaloon.h"
#include "versaloon_internal.h"
#include "usbtoxxx/usbtoxxx.h"
#ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
#define OPENOCD_JTAG_DRIVERS_VERSALOON_VERSALOON_INCLUDE_H
+#include "helper/system.h"
/* This file is used to include different header and macros */
/* according to different platform */
#include <jtag/interface.h>
#include <helper/binarybuffer.h>
#include <helper/log.h>
+#include <helper/replacements.h>
#ifndef DEBUG_JTAG_IOZ
#define DEBUG_JTAG_IOZ 64
#include "config.h"
#endif
#include "openocd.h"
+#include "helper/system.h"
/* This is the main entry for developer PC hosted OpenOCD.
*
#include "pld.h"
#include <helper/log.h>
+#include <helper/replacements.h>
#include <helper/time_support.h>
#include <helper/log.h>
#include <sys/stat.h>
-
+#include <helper/system.h>
static int read_section(FILE *input_file, int length_size, char section,
uint32_t *buffer_length, uint8_t **buffer)
#ifndef OPENOCD_PLD_XILINX_BIT_H
#define OPENOCD_PLD_XILINX_BIT_H
+#include "helper/types.h"
+
struct xilinx_bit_file {
uint8_t unknown_header[13];
uint8_t *source_file;
#include "openocd.h"
#include "tcl_server.h"
#include "telnet_server.h"
+#include "time_support.h"
#include <signal.h>
#endif
#include <helper/log.h>
+#include <helper/replacements.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <jtag/jtag.h>
#include "svf.h"
+#include "helper/system.h"
#include <helper/time_support.h>
/* SVF command */
#ifndef OPENOCD_TARGET_ALGORITHM_H
#define OPENOCD_TARGET_ALGORITHM_H
+#include "helper/types.h"
+#include "helper/replacements.h"
+
enum param_direction {
PARAM_IN,
PARAM_OUT,
#ifndef OPENOCD_TARGET_ARMV4_5_CACHE_H
#define OPENOCD_TARGET_ARMV4_5_CACHE_H
+#include "helper/types.h"
+
struct command_invocation;
struct armv4_5_cachesize {
#include <stdint.h>
+#include "helper/types.h"
+
struct target;
enum breakpoint_type {
#define OPENOCD_TARGET_IMAGE_H
#include <helper/fileio.h>
+#include <helper/replacements.h>
#ifdef HAVE_ELF_H
#include <elf.h>
#ifndef OPENOCD_TARGET_NDS32_EDM_H
#define OPENOCD_TARGET_NDS32_EDM_H
+#include "helper/types.h"
+
/**
* @file
* This is the interface to the Embedded Debug Module for Andes cores.
#ifndef OPENOCD_TARGET_REGISTER_H
#define OPENOCD_TARGET_REGISTER_H
+#include "helper/replacements.h"
+#include "helper/types.h"
+
struct target;
enum reg_type {
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
+#include "helper/replacements.h"
/*
* According to:
#define OPENOCD_TARGET_TARGET_H
#include <helper/list.h>
+#include "helper/replacements.h"
+#include "helper/system.h"
#include <jim.h>
struct reg;
#ifndef OPENOCD_TARGET_TRACE_H
#define OPENOCD_TARGET_TRACE_H
+#include "helper/types.h"
+
struct target;
struct command_context;
*/
#include <helper/log.h>
+#include <helper/replacements.h>
#include <transport/transport.h>
extern struct command_context *global_cmd_ctx;
#endif
#include "xsvf.h"
+#include "helper/system.h"
#include <jtag/jtag.h>
#include <svf/svf.h>