bad: Rename to cdba-server

cdba-server more accurately reflects its purpose now.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
Amit Kucheria
2020-04-23 12:46:37 +05:30
committed by Bjorn Andersson
parent bf2521dcdb
commit c5cbe74df2
10 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View File

@@ -52,5 +52,5 @@ Mkfile.old
dkms.conf
# Binaries generated by the program
bad
cdba-server
cdba

View File

@@ -1,5 +1,5 @@
CLIENT := cdba
CDBA := bad
CDBA := cdba-server
.PHONY: all
@@ -11,7 +11,7 @@ LDFLAGS := -ludev -lyaml
CLIENT_SRCS := cdba.c circ_buf.c
CLIENT_OBJS := $(CLIENT_SRCS:.c=.o)
CDBA_SRCS := bad.c cdb_assist.c circ_buf.c conmux.c device.c device_parser.c fastboot.c alpaca.c
CDBA_SRCS := cdba-server.c cdb_assist.c circ_buf.c conmux.c device.c device_parser.c fastboot.c alpaca.c
CDBA_OBJS := $(CDBA_SRCS:.c=.o)
$(CLIENT): $(CLIENT_OBJS)

4
README
View File

@@ -7,8 +7,8 @@ sudo apt-get install libudev-dev libyaml-dev for debian systems
dnf install systemd-devel libyaml-devel for fedora systems
= Device side
On the host with the CDB Assist or Conmux attached the "bad" executable is run
from sandbox/cdba/bad. Available devices are read from $HOME/.cdba
On the host with the CDB Assist or Conmux attached the "cdba-server" executable is run
from sandbox/cdba/cdba-server. Available devices are read from $HOME/.cdba
= Client side
The client is invoked as:

View File

@@ -41,7 +41,7 @@
#include <termios.h>
#include <unistd.h>
#include "bad.h"
#include "cdba-server.h"
#include "alpaca.h"
struct alpaca {

View File

@@ -41,7 +41,7 @@
#include <termios.h>
#include <unistd.h>
#include "bad.h"
#include "cdba-server.h"
#include "cdb_assist.h"
struct cdb_assist {

View File

@@ -38,7 +38,7 @@
#include <string.h>
#include <unistd.h>
#include "bad.h"
#include "cdba-server.h"
#include "circ_buf.h"
#include "device.h"
#include "device_parser.h"

2
cdba.c
View File

@@ -549,7 +549,7 @@ int main(int argc, char **argv)
request_select_board(board);
ret = fork_ssh(host, "sandbox/cdba/bad", ssh_fds);
ret = fork_ssh(host, "sandbox/cdba/cdba-server", ssh_fds);
if (ret)
err(1, "failed to connect to \"%s\"", host);

View File

@@ -40,7 +40,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "bad.h"
#include "cdba-server.h"
#include "conmux.h"
extern int h_errno;

View File

@@ -44,7 +44,7 @@
#include <string.h>
#include <unistd.h>
#include "bad.h"
#include "cdba-server.h"
#include "fastboot.h"
#define MAX_USBFS_BULK_SIZE (16*1024)