1
0
mirror of https://github.com/bluekitchen/btstack.git synced 2025-02-28 16:11:24 +00:00

gatt_compiler: use python3 in build scripts

This commit is contained in:
Matthias Ringwald 2020-09-25 13:25:22 +02:00
parent 1468b7bb3f
commit 75c13281d4
14 changed files with 19 additions and 19 deletions
port
ez430-rf2560
max32630-fthr/example/template
msp-exp430f5438-cc2564b
msp430f5229lp-cc2564b
samv71-xplained-atwilc3000/example/template
stm32-f103rb-nucleo
stm32-f4discovery-cc256x
stm32-l073rz-nucleo-em9304
stm32-wb55xx-nucleo-freertos
test
gap
gatt_client
gatt_server
gatt_service
pts

@ -111,7 +111,7 @@ include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
# compile GATT database
%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
led_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${CC2560B} led_counter.o

@ -269,7 +269,7 @@ PROJ_CFLAGS+=-DMXC_ASSERT_ENABLE
# LINKERFILE=$(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source/GCC/$(TARGET_LC).ld
%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
all: spp_and_le_streamer.h

@ -117,7 +117,7 @@ include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
# compile GATT database
%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
led_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${CC2560B} led_counter.o

@ -113,7 +113,7 @@ include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
# compile GATT database
%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
led_counter.out: ${CORE_OBJ} ${COMMON_OBJ} ${CC2560B} led_counter.o

@ -52,7 +52,7 @@ BTSTACK_ROOT=../../../..
all: le_counter.h wilc3000_ble_firmware.h
le_counter.h: ${BTSTACK_ROOT}/example/le_counter.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
# Include the common Makefile, which will also include the project specific

@ -85,5 +85,5 @@ libopencm3/lib/libopencm3_stm32f1.a:
# compile GATT database
spp_and_gatt_counter.h: spp_and_gatt_counter.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@

@ -379,7 +379,7 @@ all: \
include ${BTSTACK_ROOT}/chipset/cc256x/Makefile.inc
$(BUILD_DIR)/%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
$(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
$(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@

@ -246,7 +246,7 @@ all: \
$(addprefix $(BUILD_DIR)/,$(EXAMPLES:=.jdebug)) \
$(BUILD_DIR)/%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
$(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
$(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@

@ -273,7 +273,7 @@ all: \
$(addprefix $(BUILD_DIR)/,$(EXAMPLES:=.jdebug)) \
$(BUILD_DIR)/%.h: %.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
$(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
$(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@

@ -31,7 +31,7 @@ all: test_le_scan
# compile .ble description
profile.h: profile.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
test_le_scan: ${COMMON_OBJ} test_le_scan.o
${CC} ${COMMON_OBJ} test_le_scan.o ${CFLAGS} ${LDFLAGS} -o $@

@ -33,7 +33,7 @@ all: gatt_client_test le_central
# compile .ble description
profile.h: profile.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
gatt_client_test: profile.h ${COMMON_OBJ} gatt_client_test.o expected_results.h
${CC} ${COMMON_OBJ} gatt_client_test.o ${CFLAGS} ${LDFLAGS} -o $@

@ -48,7 +48,7 @@ all: gatt_server_test
# compile .ble description
profile.h: profile.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
gatt_server_test: profile.h ${COMMON_OBJ} gatt_server_test.o
${CC} ${COMMON_OBJ} gatt_server_test.o ${CFLAGS} ${LDFLAGS} -o $@

@ -42,7 +42,7 @@ COMMON_OBJ = $(COMMON:.c=.o)
all: battery_service_test
battery_service_profile.h: battery_service_profile.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
battery_service_test: battery_service_profile.h ${COMMON_OBJ} battery_service_test.o
${CC} ${COMMON_OBJ} battery_service_test.o ${CFLAGS} ${LDFLAGS} -o $@

@ -149,13 +149,13 @@ EXAMPLES += csc_server_test csc_client_test cycling_power_server_test
all: ${EXAMPLES}
cycling_power_server_test.h: cycling_power_server_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
cycling_power_server_test: cycling_power_server_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} ${SRC_BLE_GATT_SERVICE_FILES_OBJ} cycling_power_server_test.c
${CC} $(filter-out cycling_power_server_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
csc_server_test.h: csc_server_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
csc_server_test: csc_server_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} ${SRC_BLE_GATT_SERVICE_FILES_OBJ} csc_server_test.c
${CC} $(filter-out csc_server_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
@ -173,7 +173,7 @@ hog_demo_test: hog_demo_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVE
${CC} $(filter-out hog_demo_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
hrp_server_test.h: hrp_server_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
hrp_server_test: hrp_server_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} heart_rate_service_server.o hrp_server_test.c
${CC} $(filter-out hrp_server_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
@ -191,10 +191,10 @@ avdtp_source_test: ${CORE_OBJ} ${COMMON_OBJ} ${SM_OBJ} ${SBC_ENCODER_OBJ} ${AVDT
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
ble_peripheral_test.h: ble_peripheral_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
ble_central_test.h: ble_central_test.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
ble_peripheral_test: ble_peripheral_test.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} ble_peripheral_test.o
${CC} $(filter-out ble_peripheral_test.h,$^) ${CFLAGS} ${LDFLAGS} -o $@
@ -227,7 +227,7 @@ iopt: ${CORE_OBJ} ${COMMON_OBJ} pan.o hsp_ag.o hsp_hs.o hfp_ag.o hfp_hf.o hfp_gs
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
gatt_profiles.h: gatt_profiles.gatt
python ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@
gatt_profiles: gatt_profiles.h ${CORE_OBJ} ${COMMON_OBJ} ${ATT_OBJ} ${GATT_SERVER_OBJ} ${SM_OBJ} ${SRC_BLE_GATT_SERVICE_FILES_OBJ} gatt_profiles.o
${CC} $(filter-out gatt_profiles.h,$^) ${CFLAGS} ${LDFLAGS} -o $@