@@ -134,9 +134,11 @@ INC += -I$(PBTOP)/lib/btstack/chipset/bcm
134134INC += -I$(PBTOP ) /lib/btstack/chipset/intel
135135INC += -I$(PBTOP ) /lib/btstack/chipset/realtek
136136INC += -I$(PBTOP ) /lib/btstack/chipset/zephyr
137+ ifneq ($(CI_MODE ) ,1)
137138INC += $(shell pkg-config libusb-1.0 --cflags)
138139endif
139140endif
141+ endif
140142ifeq ($(PB_LIB_LSM6DS3TR_C ) ,1)
141143INC += -I$(PBTOP ) /lib/lsm6ds3tr_c_STdC/driver
142144endif
@@ -167,6 +169,10 @@ TEXT0_ADDR ?= 0x08000000
167169ifeq ($(PB_MCU_FAMILY ) ,native)
168170UNAME_S := $(shell uname -s)
169171LD = $(CC )
172+ ifeq ($(CI_MODE ) ,1)
173+ COPT = -DPBDRV_CONFIG_RUN_ON_CI
174+ else
175+ endif
170176CFLAGS += $(INC ) -Wall -Werror -Wdouble-promotion -Wfloat-conversion -std=gnu99 $(COPT ) -D_GNU_SOURCE
171177ifeq ($(UNAME_S ) ,Linux)
172178LDFLAGS += -Wl,-Map=$@ .map,--cref -Wl,--gc-sections
@@ -175,8 +181,10 @@ LDFLAGS += -Wl,-map,$@.map -Wl,-dead_strip
175181endif
176182LIBS = -lm
177183ifeq ($(PB_LIB_BTSTACK ) ,lowenergy)
184+ ifneq ($(CI_MODE ) ,1)
178185LIBS += $(shell pkg-config libusb-1.0 --libs)
179186endif
187+ endif
180188else # end native, begin embedded
181189CROSS_COMPILE ?= arm-none-eabi-
182190ifeq ($(PB_MCU_FAMILY ) ,STM32)
@@ -562,15 +570,19 @@ OBJ += $(addprefix $(BUILD)/, $(BLE5STACK_SRC_C:.c=.o))
562570endif
563571
564572ifeq ($(PB_LIB_BTSTACK ) ,classic)
573+ ifneq ($(CI_MODE ) ,1)
565574OBJ += $(addprefix $(BUILD ) /, $(BTSTACK_SRC_C:.c=.o ) )
566575$(BUILD ) /lib/btstack/% .o : CFLAGS += -Wno-error
567576endif
577+ endif
568578
569579ifeq ($(PB_LIB_BTSTACK ) ,lowenergy)
580+ ifneq ($(CI_MODE ) ,1)
570581OBJ += $(addprefix $(BUILD ) /, $(BTSTACK_SRC_C:.c=.o ) )
571582OBJ += $(addprefix $(BUILD ) /, $(BTSTACK_BLE_SRC_C:.c=.o ) )
572583$(BUILD ) /lib/btstack/% .o : CFLAGS += -Wno-error
573584endif
585+ endif
574586
575587ifeq ($(PB_LIB_STM32_HAL ) ,1)
576588OBJ += $(addprefix $(BUILD ) /, $(STM32_HAL_SRC_C:.c=.o ) )
0 commit comments