Cleanup of config/includes.
Remove a use of AH_BOTTOM from configure.ac. This macro is used by autoheader to add '#include' of some include file to the end of config.h.in and then to config.h. OpenOCD can be built with a custom config.h, so it's preferable to move these '#include' statement directly in the C files that need them dropping this unneeded dependency. It also causes problems when I want to use the gnulib library (which comes with its own Makefile, and does not have the same include path as the top-level Makefile). So this change touches a lot of files, but is actually really simple. It does not affect functionality at all. Change-Id: I52c70bf15eb2edc1dd10e0fde23b2bcd4caec000 Signed-off-by: Tim Newsome <tim@sifive.com> Reviewed-on: http://openocd.zylin.com/6171 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
b44948985f
commit
87c90393fe
@@ -19,6 +19,9 @@
|
||||
#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,
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#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 {
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "helper/types.h"
|
||||
|
||||
struct target;
|
||||
|
||||
enum breakpoint_type {
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define OPENOCD_TARGET_IMAGE_H
|
||||
|
||||
#include <helper/fileio.h>
|
||||
#include <helper/replacements.h>
|
||||
|
||||
#ifdef HAVE_ELF_H
|
||||
#include <elf.h>
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#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.
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
#ifndef OPENOCD_TARGET_REGISTER_H
|
||||
#define OPENOCD_TARGET_REGISTER_H
|
||||
|
||||
#include "helper/replacements.h"
|
||||
#include "helper/types.h"
|
||||
|
||||
struct target;
|
||||
|
||||
enum reg_type {
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
#include "helper/replacements.h"
|
||||
|
||||
/*
|
||||
* According to:
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
#define OPENOCD_TARGET_TARGET_H
|
||||
|
||||
#include <helper/list.h>
|
||||
#include "helper/replacements.h"
|
||||
#include "helper/system.h"
|
||||
#include <jim.h>
|
||||
|
||||
struct reg;
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#ifndef OPENOCD_TARGET_TRACE_H
|
||||
#define OPENOCD_TARGET_TRACE_H
|
||||
|
||||
#include "helper/types.h"
|
||||
|
||||
struct target;
|
||||
struct command_context;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user