mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Cleanup make (#12179)
* Cleanup Makefiles Given the targets are now simply the MCU, there is now a significant amount of duplication. TODO: - will possibly add STM32.mk for inclusion from STM32F4 etc to remove further duplication. Noting it is now imperative that the gating is right. * Removed the remnants of "features" * Further clean up in preparation of new MCUs * Typo for STM32F722xx * Fix F411 * Last remnants of the _TARGETS lists.
This commit is contained in:
parent
d9264045b3
commit
ecdbba2ce2
19 changed files with 152 additions and 580 deletions
|
@ -1,5 +1,6 @@
|
|||
SITL_TARGETS += $(TARGET)
|
||||
FEATURES += #SDCARD_SPI VCP
|
||||
TARGET_MCU := SITL
|
||||
TARGET_MCU_FAMILY := SITL
|
||||
SIMULATOR_BUILD = yes
|
||||
|
||||
TARGET_SRC = \
|
||||
drivers/accgyro/accgyro_fake.c \
|
||||
|
|
|
@ -1,34 +1,4 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
|
||||
F405_TARGETS += $(TARGET)
|
||||
TARGET_MCU := STM32F405xx
|
||||
TARGET_MCU_FAMILY := STM32F4
|
||||
|
||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
||||
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -1,33 +1,2 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c
|
||||
|
||||
F411_TARGETS += $(TARGET)
|
||||
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(addprefix drivers/accgyro_legacy/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro_legacy/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
TARGET_MCU := STM32F411xE
|
||||
TARGET_MCU_FAMILY := STM32F4
|
||||
|
|
|
@ -1,34 +1,4 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
|
||||
F7X5XG_TARGETS += $(TARGET)
|
||||
TARGET_MCU := STM32F745xx
|
||||
TARGET_MCU_FAMILY := STM32F7
|
||||
|
||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
||||
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -1,32 +1,4 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
|
||||
TARGET_MCU := STM32F722xx
|
||||
TARGET_MCU_FAMILY := STM32F7
|
||||
|
||||
F7X2RE_TARGETS += $(TARGET)
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -54,9 +54,7 @@
|
|||
|
||||
#define USE_BEEPER
|
||||
|
||||
#ifdef USE_SDCARD
|
||||
#define USE_SDCARD_SPI
|
||||
#endif
|
||||
#undef USE_SDCARD
|
||||
|
||||
#define USE_SPI
|
||||
#define SPI_FULL_RECONFIGURABILITY
|
||||
|
|
|
@ -1,32 +1,2 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
|
||||
G47X_TARGETS += $(TARGET)
|
||||
|
||||
FEATURES += VCP SDCARD_SPI ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
TARGET_MCU := STM32G474xx
|
||||
TARGET_MCU_FAMILY := STM32G4
|
||||
|
|
|
@ -1,34 +1,5 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
TARGET_MCU := STM32H723xx
|
||||
TARGET_MCU_FAMILY := STM32H7
|
||||
|
||||
H723xG_TARGETS += $(TARGET)
|
||||
|
||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
||||
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -1,25 +1,7 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c
|
||||
TARGET_MCU := STM32H730xx
|
||||
TARGET_MCU_FAMILY := STM32H7
|
||||
|
||||
H730xB_TARGETS += $(TARGET)
|
||||
|
||||
HSE_VALUE = 8000000
|
||||
HSE_VALUE = 8000000
|
||||
|
||||
ifneq ($(EXST),)
|
||||
EXST = yes
|
||||
|
@ -27,19 +9,3 @@ ifeq ($(EXST_ADJUST_VMA),)
|
|||
EXST_ADJUST_VMA = 0x90100000
|
||||
endif
|
||||
endif
|
||||
|
||||
FEATURES += VCP ONBOARDFLASH SDCARD_SDIO
|
||||
|
||||
TARGET_SRC = \
|
||||
msc/usbd_storage_sd_spi.c \
|
||||
drivers/sdcard_spi.c \
|
||||
drivers/bus_quadspi_hal.c \
|
||||
drivers/bus_quadspi.c \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -1,34 +1,4 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c \
|
||||
|
||||
H743xI_TARGETS += $(TARGET)
|
||||
TARGET_MCU := STM32H743xx
|
||||
TARGET_MCU_FAMILY := STM32H7
|
||||
|
||||
CUSTOM_DEFAULTS_EXTENDED = yes
|
||||
|
||||
FEATURES += VCP SDCARD_SPI SDCARD_SDIO ONBOARDFLASH
|
||||
|
||||
TARGET_SRC = \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
|
@ -1,25 +1,7 @@
|
|||
RX_SRC = \
|
||||
rx/cc2500_common.c \
|
||||
rx/cc2500_frsky_shared.c \
|
||||
rx/cc2500_frsky_d.c \
|
||||
rx/cc2500_frsky_x.c \
|
||||
rx/cc2500_sfhss.c \
|
||||
rx/cc2500_redpine.c \
|
||||
rx/a7105_flysky.c \
|
||||
rx/cyrf6936_spektrum.c \
|
||||
drivers/rx/expresslrs_driver.c \
|
||||
rx/expresslrs.c \
|
||||
rx/expresslrs_common.c \
|
||||
rx/expresslrs_telemetry.c \
|
||||
drivers/rx/rx_cc2500.c \
|
||||
drivers/rx/rx_a7105.c \
|
||||
drivers/rx/rx_cyrf6936.c \
|
||||
drivers/rx/rx_sx127x.c \
|
||||
drivers/rx/rx_sx1280.c
|
||||
TARGET_MCU := STM32H750xx
|
||||
TARGET_MCU_FAMILY := STM32H7
|
||||
|
||||
H750xB_TARGETS += $(TARGET)
|
||||
|
||||
HSE_VALUE = 8000000
|
||||
HSE_VALUE = 8000000
|
||||
|
||||
ifneq ($(EXST),)
|
||||
EXST = yes
|
||||
|
@ -28,21 +10,5 @@ endif
|
|||
|
||||
ifneq ($(EXST),yes)
|
||||
TARGET_FLASH_SIZE := 1024
|
||||
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_h750_1m.ld
|
||||
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_h750_1m.ld
|
||||
endif
|
||||
|
||||
FEATURES += VCP ONBOARDFLASH SDCARD_SDIO
|
||||
|
||||
TARGET_SRC = \
|
||||
msc/usbd_storage_sd_spi.c \
|
||||
drivers/sdcard_spi.c \
|
||||
drivers/bus_quadspi_hal.c \
|
||||
drivers/bus_quadspi.c \
|
||||
$(addprefix drivers/accgyro/,$(notdir $(wildcard $(SRC_DIR)/drivers/accgyro/*.c))) \
|
||||
$(ROOT)/lib/main/BoschSensortec/BMI270-Sensor-API/bmi270_maximum_fifo.c \
|
||||
$(addprefix drivers/barometer/,$(notdir $(wildcard $(SRC_DIR)/drivers/barometer/*.c))) \
|
||||
$(addprefix drivers/compass/,$(notdir $(wildcard $(SRC_DIR)/drivers/compass/*.c))) \
|
||||
drivers/max7456.c \
|
||||
drivers/vtx_rtc6705.c \
|
||||
drivers/vtx_rtc6705_soft_spi.c \
|
||||
$(RX_SRC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue