helper: Remove src/helper from include dirs
authorYasushi SHOJI <yashi@spacecubics.com>
Sun, 29 Aug 2021 09:18:01 +0000 (18:18 +0900)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 2 Oct 2021 13:18:15 +0000 (13:18 +0000)
commit05752557dd0dcab76250ab12377d59435b74204d
tree52944824e93ab48977e7bb8f14e32337b63ac897
parente4872054108a3a18dc651b45dea679696e14ee7f
helper: Remove src/helper from include dirs

The header files under src/helper/ can currently be included with
either

    #include <bits.h>
    or
    #include <helper/bits.h>

This is because we specify both "src/" and "src/helper/" directories
as include directories.  Some files name under "src/helper/", such as
types.h, log.h, and util.h are too generic and could be ambiguous
depending on the search path.

This commit remove "src/helper/" from our include dir and make C files
include explicitly.

Change-Id: I38fc9b96ba01a513d4a72757d40007e21b502f25
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6507
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
15 files changed:
Makefile.am
src/flash/nor/psoc6.c
src/flash/nor/stm32l4x.c
src/helper/command.h
src/helper/jim-nvp.c
src/jtag/drivers/libusb_helper.c
src/rtos/rtos.h
src/server/server.c
src/target/armv7m_trace.h
src/target/mips64_pracc.c
src/target/riscv/riscv-011.c
src/target/riscv/riscv-013.c
src/target/riscv/riscv.c
src/target/riscv/riscv_semihosting.c
src/target/target_type.h