X-Git-Url: https://rtime.felk.cvut.cz/gitweb/mirosot.git/blobdiff_plain/86608e251db3b85b5d9cec1d487261b11325edbe..ba111b946b45f8493ad0e2b10430c296f2f08cb8:/bluetooth/Makefile.omk diff --git a/bluetooth/Makefile.omk b/bluetooth/Makefile.omk index 077597f..ae33731 100644 --- a/bluetooth/Makefile.omk +++ b/bluetooth/Makefile.omk @@ -10,9 +10,20 @@ #bth_comp2_LIBS = boot_fn arch_drivers excptvec misc pxmc m sci_channels bluetooth #bth_comp2_MOREOBJS = $(USER_LIB_DIR)/system_stub.o -lib_LIBRARIES = bluetooth +lib_LIBRARIES = mirobt -bluetooth_SOURCES = bth_command.c bth_event_acc.c bth_error.c bth_cmd_complete_ev.c l2cap.c bth_inface.c bth_main.c h2638_pkt_controll.c +mirobt_SOURCES = bth_command.c bth_event_acc.c bth_error.c \ +bth_cmd_complete_ev.c l2cap.c bth_inface.c bth_main.c + +ifeq ($(CONFIG_BLUETOOTH_LINUX),y) +mirobt_SOURCES += hci_bluez.c fake_pkt_controll.c +else +mirobt_SOURCES += hci_sci.c h2638_pkt_controll.c +endif include_HEADERS = bth_inface.h bth_fce_out.h bth_h8s2638.h -default_CONFIG = CONFIG_BLUETOOTH=y \ No newline at end of file +default_CONFIG += CONFIG_BLUETOOTH=y +default_CONFIG += CONFIG_BLUETOOTH_LINUX=n + +config_include_HEADERS = bth_config.h +bth_config_DEFINES = $(default_CONFIG)