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
|
||||
|
||||
install: mspdebug mspdebug.man
|
||||
$(INSTALL) -D -m 0755 -s mspdebug $(PREFIX)/bin/mspdebug
|
||||
$(INSTALL) -D -m 0644 mspdebug.man $(PREFIX)/share/man/man1/mspdebug.1
|
||||
mkdir -p $(PREFIX)/bin
|
||||
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
|
||||
|
||||
|
|
6
bsl.c
6
bsl.c
|
@ -30,11 +30,15 @@
|
|||
#include "util.h"
|
||||
#include "fet_error.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define B460800 460800
|
||||
#endif
|
||||
|
||||
struct bsl_device {
|
||||
struct device base;
|
||||
|
||||
int serial_fd;
|
||||
uint8_t reply_buf[256];
|
||||
uint8_t reply_buf[256];
|
||||
int reply_len;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue