mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-03 20:54:18 +00:00
port: allow to defined BTSTACK_ROOT and include exising Makefiles. Fixes #198
This commit is contained in:
parent
0b27d9d1e2
commit
f67eb7c279
@ -8,7 +8,7 @@ CC2560B = bluetooth_init_cc2560B_1.6_BT_Spec_4.1.o
|
|||||||
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
||||||
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH += example
|
VPATH += example
|
||||||
VPATH += firmware
|
VPATH += firmware
|
||||||
VPATH += src
|
VPATH += src
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_posix.c btstack_tlv_posix.c
|
CORE += main.c btstack_stdin_posix.c btstack_tlv_posix.c
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_posix.c btstack_tlv_posix.c
|
CORE += main.c btstack_stdin_posix.c btstack_tlv_posix.c
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ VPATH += $(BOARD_DIR)/Source
|
|||||||
IPATH += $(BOARD_DIR)/Include
|
IPATH += $(BOARD_DIR)/Include
|
||||||
|
|
||||||
# BTstack
|
# BTstack
|
||||||
BTSTACK_ROOT = ../../../..
|
BTSTACK_ROOT ?= ../../../..
|
||||||
VPATH += $(BTSTACK_ROOT)/chipset/cc256x
|
VPATH += $(BTSTACK_ROOT)/chipset/cc256x
|
||||||
VPATH += $(BTSTACK_ROOT)/example
|
VPATH += $(BTSTACK_ROOT)/example
|
||||||
VPATH += $(BTSTACK_ROOT)/port/pegasus-max3263x
|
VPATH += $(BTSTACK_ROOT)/port/pegasus-max3263x
|
||||||
|
@ -8,7 +8,7 @@ CC2560B = bluetooth_init_cc2560B_1.6_BT_Spec_4.1.o
|
|||||||
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
||||||
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH += example
|
VPATH += example
|
||||||
VPATH += firmware
|
VPATH += firmware
|
||||||
VPATH += src
|
VPATH += src
|
||||||
|
@ -8,7 +8,7 @@ CC2560B = bluetooth_init_cc2560B_1.6_BT_Spec_4.1.o
|
|||||||
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
CC2564B = bluetooth_init_cc2564B_1.6_BT_Spec_4.1.o
|
||||||
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
CC2567 = CC256x_BT_Service_Pack_2.8_ANT_1.16.o
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH += example
|
VPATH += example
|
||||||
VPATH += firmware
|
VPATH += firmware
|
||||||
VPATH += src
|
VPATH += src
|
||||||
|
@ -8,7 +8,7 @@ STRIP = $(TOOLCHAIN)/bin/arm-linux-androideabi-strip
|
|||||||
CFLAGS = -march=armv7-a -mfloat-abi=softfp -I$(SYSROOT)/usr/include -fpie -fpic -fPIE -pie#
|
CFLAGS = -march=armv7-a -mfloat-abi=softfp -I$(SYSROOT)/usr/include -fpie -fpic -fPIE -pie#
|
||||||
LDFLAGS = -Wl,--fix-cortex-a8 -L$(SYSROOT)/usr/lib -fpie -fpic -fPIE -pie
|
LDFLAGS = -Wl,--fix-cortex-a8 -L$(SYSROOT)/usr/lib -fpie -fpic -fPIE -pie
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CFLAGS += -I$(BTSTACK_ROOT)/include
|
CFLAGS += -I$(BTSTACK_ROOT)/include
|
||||||
CFLAGS += -I$(BTSTACK_ROOT)/src/
|
CFLAGS += -I$(BTSTACK_ROOT)/src/
|
||||||
|
@ -69,7 +69,7 @@ INC_PATHS += -I$(abspath ../../../../../components/libraries/fifo)
|
|||||||
INC_PATHS += -I$(abspath ../../../../../components/toolchain/gcc)
|
INC_PATHS += -I$(abspath ../../../../../components/toolchain/gcc)
|
||||||
|
|
||||||
# BTstack territory
|
# BTstack territory
|
||||||
BTSTACK_ROOT = ../../../../../components/btstack
|
BTSTACK_ROOT ?= ../../../../../components/btstack
|
||||||
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/nrf5x/main.c)
|
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/nrf5x/main.c)
|
||||||
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/retarget_blocking.c)
|
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/port/retarget_blocking.c)
|
||||||
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/platform/embedded/btstack_run_loop_embedded.c)
|
C_SOURCE_FILES += $(abspath $(BTSTACK_ROOT)/platform/embedded/btstack_run_loop_embedded.c)
|
||||||
@ -216,4 +216,4 @@ flash: $(MAKECMDGOALS)
|
|||||||
nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/$<.hex -f nrf51 --chiperase
|
nrfjprog --program $(OUTPUT_BINARY_DIRECTORY)/$<.hex -f nrf51 --chiperase
|
||||||
nrfjprog --reset
|
nrfjprog --reset
|
||||||
|
|
||||||
## Flash softdevice
|
## Flash softdevice
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_chipset_atwilc3000.c \
|
btstack_chipset_atwilc3000.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_chipset_da14581.c \
|
btstack_chipset_da14581.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_chipset_da14581.c \
|
btstack_chipset_da14581.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for posix-h4 based examples
|
# Makefile for posix-h4 based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_link_key_db_fs.c \
|
btstack_link_key_db_fs.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
|
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_chipset_bcm.c \
|
btstack_chipset_bcm.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for libusb based examples
|
# Makefile for libusb based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
|
bluetooth_init_cc2564B_1.6_BT_Spec_4.1.c \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for Raspberry Pi
|
# Makefile for Raspberry Pi
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += \
|
CORE += \
|
||||||
btstack_chipset_bcm.c \
|
btstack_chipset_bcm.c \
|
||||||
|
@ -7,7 +7,7 @@ BINARY=spp_and_le_counter
|
|||||||
OPENCM3_DIR = libopencm3
|
OPENCM3_DIR = libopencm3
|
||||||
LDSCRIPT = stm32f1-nucleo.ld
|
LDSCRIPT = stm32f1-nucleo.ld
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH = $(BTSTACK_ROOT)/example
|
VPATH = $(BTSTACK_ROOT)/example
|
||||||
VPATH += $(BTSTACK_ROOT)/src
|
VPATH += $(BTSTACK_ROOT)/src
|
||||||
VPATH += $(BTSTACK_ROOT)/src/ble
|
VPATH += $(BTSTACK_ROOT)/src/ble
|
||||||
|
@ -31,7 +31,7 @@ OPT = -Os
|
|||||||
# Build path
|
# Build path
|
||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH += ${BTSTACK_ROOT}/example
|
VPATH += ${BTSTACK_ROOT}/example
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
@ -31,7 +31,7 @@ OPT = -Os
|
|||||||
# Build path
|
# Build path
|
||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
|
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
VPATH += ${BTSTACK_ROOT}/example
|
VPATH += ${BTSTACK_ROOT}/example
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for windows-h4 examples
|
# Makefile for windows-h4 examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_windows.c
|
CORE += main.c btstack_stdin_windows.c
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for windows-h4 examples
|
# Makefile for windows-h4 examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_windows.c
|
CORE += main.c btstack_stdin_windows.c
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for windows WinUSB based examples
|
# Makefile for windows WinUSB based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_windows.c
|
CORE += main.c btstack_stdin_windows.c
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Makefile for windows WinUSB based examples
|
# Makefile for windows WinUSB based examples
|
||||||
BTSTACK_ROOT = ../..
|
BTSTACK_ROOT ?= ../..
|
||||||
|
|
||||||
CORE += main.c btstack_stdin_windows.c
|
CORE += main.c btstack_stdin_windows.c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user