move daemon sources to platforms/daemon

This commit is contained in:
Matthias Ringwald 2015-05-02 23:05:29 +02:00
parent e50ff87cfe
commit 50f0940e7f
5 changed files with 7 additions and 7 deletions

View File

@ -1800,7 +1800,7 @@ int main (int argc, char * const * argv){
// dump version
log_info("BTdaemon started\n");
log_info("version %s, svn r%u, build %s", BTSTACK_VERSION, BTSTACK_REVISION, BTSTACK_DATE);
log_info("version %s, build %s", BTSTACK_VERSION, BTSTACK_DATE);
// init HCI
hci_init(transport, &config, control, remote_device_db);

View File

@ -4,7 +4,7 @@ prefix = @prefix@
CC = @CC@
LDFLAGS = @LDFLAGS@
CFLAGS = @CFLAGS@ -I $(BTSTACK_ROOT)/include -I $(BTSTACK_ROOT)/ble -I $(BTSTACK_ROOT)/src -I $(BTSTACK_ROOT)
CFLAGS = @CFLAGS@ -I $(BTSTACK_ROOT)/include -I$(BTSTACK_ROOT)/platforms/daemon -I $(BTSTACK_ROOT)/ble -I $(BTSTACK_ROOT)/src -I $(BTSTACK_ROOT)
BTSTACK_LIB_LDFLAGS = @BTSTACK_LIB_LDFLAGS@
BTSTACK_LIB_EXTENSION = @BTSTACK_LIB_EXTENSION@
LIBUSB_CFLAGS = @LIBUSB_CFLAGS@
@ -16,7 +16,7 @@ usb_sources = @USB_SOURCES@
libBTstack_SOURCES = \
btstack.c \
socket_connection.c \
$(BTSTACK_ROOT)/platforms/daemon/socket_connection.c \
$(BTSTACK_ROOT)/src/hci_cmds.c \
$(BTSTACK_ROOT)/src/linked_list.c \
$(BTSTACK_ROOT)/src/run_loop.c \
@ -25,7 +25,7 @@ libBTstack_SOURCES = \
$(run_loop_sources) \
BTdaemon_SOURCES = \
daemon.c \
$(BTSTACK_ROOT)/platforms/daemon/daemon.c \
hci_transport_h4.c \
$(libBTstack_SOURCES) \
$(BTSTACK_ROOT)/src/btstack_memory.c \

View File

@ -1,7 +1,7 @@
#!/bin/sh
DIR=`dirname $0`
FILE=$DIR/../include/btstack/version.h
REVISION=`git log -1 --pretty=format:%h`
COMMIT=`git log -1 --pretty=format:%h`
MAJOR=0
MINOR=9
DATE=`date "+%Y-%m-%d_%H:%M:%S"`
@ -10,6 +10,6 @@ printf "// - generated by %s\n" $0>> $FILE
printf "// - at %s\n" $DATE >> $FILE
printf "#define BTSTACK_MAJOR %u\n" $MAJOR >> $FILE
printf "#define BTSTACK_MINOR %u\n" $MINOR >> $FILE
printf "#define BTSTACK_REVISION %s\n" $REVISION >> $FILE
printf "#define BTSTACK_VERSION \"%u.%u-%s\"\n" $MAJOR $MINOR $REVISION >> $FILE
printf "#define BTSTACK_COMMIT \"%s\"\n" $COMMIT >> $FILE
printf "#define BTSTACK_VERSION \"%u.%u-%s\"\n" $MAJOR $MINOR $COMMIT >> $FILE
printf "#define BTSTACK_DATE \"%s\"" $DATE >> $FILE