Further modifications for OS/X.
Don't rely on install -D, and define B460800 before using it if compiling on OS/X.
This commit is contained in:
parent
5ed4473dda
commit
7703c34664
6
Makefile
6
Makefile
|
@ -36,8 +36,10 @@ clean:
|
||||||
/bin/rm -f mspdebug
|
/bin/rm -f mspdebug
|
||||||
|
|
||||||
install: mspdebug mspdebug.man
|
install: mspdebug mspdebug.man
|
||||||
$(INSTALL) -D -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
|
mkdir -p $(PREFIX)/bin
|
||||||
$(INSTALL) -D -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
|
mkdir -p $(PREFIX)/share/man/man1
|
||||||
|
$(INSTALL) -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
|
||||||
|
$(INSTALL) -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
|
||||||
|
|
||||||
.SUFFIXES: .c .o
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
|
|
6
bsl.c
6
bsl.c
|
@ -30,11 +30,15 @@
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "fet_error.h"
|
#include "fet_error.h"
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#define B460800 460800
|
||||||
|
#endif
|
||||||
|
|
||||||
struct bsl_device {
|
struct bsl_device {
|
||||||
struct device base;
|
struct device base;
|
||||||
|
|
||||||
int serial_fd;
|
int serial_fd;
|
||||||
uint8_t reply_buf[256];
|
uint8_t reply_buf[256];
|
||||||
int reply_len;
|
int reply_len;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue