Changeset dd8e4b7 in rtems


Ignore:
Timestamp:
Apr 30, 2018, 7:09:27 AM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c3bab73b
Parents:
97a48209
git-author:
Sebastian Huber <sebastian.huber@…> (04/30/18 07:09:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/18 07:56:43)
Message:

libdebugger: Move to separate library

Always build remote TCP support since it depends only on the POSIX
socket API. It works with the legacy network stack and libbsd. Move it
to a separate libdebugger.a library to allow an easy use with libbsd via
"-ldebugger -lbsd" otherwise we would have a cyclic dependency between
libbsd.a and librtemscpu.a.

Update #3419.

Files:
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • cpukit/headers.am

    r97a48209 rdd8e4b7  
    162162include_rtems_HEADERS += include/rtems/ringbuf.h
    163163include_rtems_HEADERS += include/rtems/rtc.h
     164include_rtems_HEADERS += include/rtems/rtems-debugger-remote-tcp.h
    164165include_rtems_HEADERS += include/rtems/rtems-debugger.h
    165166include_rtems_HEADERS += include/rtems/rtems-fdt-shell.h
  • cpukit/include/rtems/rtems-debugger-remote-tcp.h

    r97a48209 rdd8e4b7  
    11/*
    2  * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>.
    3  * All rights reserved.
     2 * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>.  All rights reserved.
    43 *
    54 * Redistribution and use in source and binary forms, with or without
  • cpukit/libdebugger/Makefile.am

    r97a48209 rdd8e4b7  
    33if LIBDEBUGGER
    44
    5 noinst_LIBRARIES = libdebugger.a
     5project_lib_LIBRARIES = libdebugger.a
    66libdebugger_a_SOURCES = \
    77  rtems-debugger-block.c \
     
    1010  rtems-debugger-server.c \
    1111  rtems-debugger-target.c \
     12  rtems-debugger-remote-tcp.c \
    1213  rtems-debugger-threads.c \
    1314  rtems-debugger-@RTEMS_CPU@.c
    1415
    15 if LIBNETWORKING
    16 libdebugger_a_SOURCES += \
    17   rtems-debugger-remote-tcp.c
    18 endif
     16$(PROJECT_LIB)/libdebugger.a: libdebugger.a
     17        $(INSTALL_DATA) $< $(PROJECT_LIB)/libdebugger.a
     18TMPINSTALL_FILES = $(PROJECT_LIB)/libdebugger.a
    1919
    2020endif
  • cpukit/libdebugger/rtems-debugger-remote-tcp.c

    r97a48209 rdd8e4b7  
    11/*
    2  * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>.
    3  * All rights reserved.
     2 * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>.  All rights reserved.
    43 *
    54 * Redistribution and use in source and binary forms, with or without
     
    3938#include <rtems/debugger/rtems-debugger-remote.h>
    4039
    41 #include "rtems-debugger-remote-tcp.h"
     40#include <rtems/rtems-debugger-remote-tcp.h>
    4241
    4342/**
     
    278277  tcp = (rtems_debugger_remote_tcp*) remote->data;
    279278  close(tcp->fd);
     279  tcp->fd = -1;
    280280
    281281  rtems_debugger_unlock();
  • cpukit/wrapup/Makefile.am

    r97a48209 rdd8e4b7  
    9999endif
    100100
    101 if LIBDEBUGGER
    102 TMP_LIBS += ../libdebugger/libdebugger.a
    103 endif
    104 
    105101librtemscpu.a: $(TMP_LIBS)
    106102        $(AM_V_GEN)rm -f $@
  • testsuites/libtests/Makefile.am

    r97a48209 rdd8e4b7  
    247247debugger01_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_debugger01) \
    248248        $(support_includes)
     249debugger01_LDADD = -ldebugger
    249250endif
    250251endif
Note: See TracChangeset for help on using the changeset viewer.