1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00

Cleaned up the PipXtreme makefile.

This commit is contained in:
Brian Webb 2012-03-18 19:26:18 -07:00
parent 823b111d60
commit fdf853a2fe

View File

@ -52,12 +52,6 @@ USE_GPS ?= NO
USE_I2C ?= YES USE_I2C ?= YES
# Select the type of hardware you're using
ENABLE_TRANSMITTER_BOX ?= NO
ENABLE_ANALOG_TRANSMITTER ?= NO
ENABLE_MOVE_CONTROLLER ?= NO
ENABLE_MAPLE_MINI_TRANSMITTER ?= YES
# Set to YES when using Code Sourcery toolchain # Set to YES when using Code Sourcery toolchain
CODE_SOURCERY ?= YES CODE_SOURCERY ?= YES
@ -72,10 +66,7 @@ FLASH_TOOL = OPENOCD
# List of modules to include # List of modules to include
OPTMODULES = OPTMODULES =
MODULES = TransmitterControls FirmwareIAP RadioComBridge MODULES = FirmwareIAP RadioComBridge
ifeq ($(ENABLE_MOVE_CONTROLLER), YES)
MODULES += AttitudeMARG
endif
# Paths # Paths
OPSYSTEM = ./System OPSYSTEM = ./System
@ -145,8 +136,6 @@ SRC += $(OPTESTS)/test_common.c
SRC += $(OPTESTS)/$(TESTAPP).c SRC += $(OPTESTS)/$(TESTAPP).c
endif endif
## UAVOBJECTS ## UAVOBJECTS
ifndef TESTAPP ifndef TESTAPP
SRC += $(OPUAVSYNTHDIR)/accessorydesired.c SRC += $(OPUAVSYNTHDIR)/accessorydesired.c
@ -253,26 +242,6 @@ SRC += $(RTOSSRCDIR)/tasks.c
SRC += $(RTOSSRCDIR)/portable/GCC/ARM_CM3/port.c SRC += $(RTOSSRCDIR)/portable/GCC/ARM_CM3/port.c
SRC += $(RTOSSRCDIR)/portable/MemMang/heap_1.c SRC += $(RTOSSRCDIR)/portable/MemMang/heap_1.c
## Dosfs file system
#SRC += $(DOSFSDIR)/dosfs.c
#SRC += $(DOSFSDIR)/dfs_sdcard.c
## PyMite files
#SRC += $(wildcard ${PYMITEVM}/*.c)
#SRC += $(wildcard ${PYMITEPLAT}/*.c)
#SRC += $(OUTDIR)/pmlib_img.c
#SRC += $(OUTDIR)/pmlib_nat.c
#SRC += $(OUTDIR)/pmlibusr_img.c
#SRC += $(OUTDIR)/pmlibusr_nat.c
## Mass Storage Device
#SRC += $(MSDDIR)/msd.c
#SRC += $(MSDDIR)/msd_bot.c
#SRC += $(MSDDIR)/msd_desc.c
#SRC += $(MSDDIR)/msd_memory.c
#SRC += $(MSDDIR)/msd_scsi.c
#SRC += $(MSDDIR)/msd_scsi_data.c
# List C source files here which must be compiled in ARM-Mode (no -mthumb). # List C source files here which must be compiled in ARM-Mode (no -mthumb).
# use file-extension c for "c-only"-files # use file-extension c for "c-only"-files
## just for testing, timer.c could be compiled in thumb-mode too ## just for testing, timer.c could be compiled in thumb-mode too
@ -390,19 +359,6 @@ ifeq ($(USE_I2C), YES)
CDEFS += -DUSE_I2C CDEFS += -DUSE_I2C
endif endif
ifeq ($(ENABLE_TRANSMITTER_BOX), YES)
CDEFS += -DTRANSMITTER_BOX
endif
ifeq ($(ENABLE_ANALOG_TRANSMITTER), YES)
CDEFS += -DANALOG_TRANSMITTER
endif
ifeq ($(ENABLE_MOVE_CONTROLLER), YES)
CDEFS += -DMOVE_CONTROLLER
endif
ifeq ($(ENABLE_MAPLE_MINI_TRANSMITTER), YES)
CDEFS += -DMAPLE_MINI
endif
# Place project-specific -D and/or -U options for # Place project-specific -D and/or -U options for
# Assembler with preprocessor here. # Assembler with preprocessor here.
#ADEFS = -DUSE_IRQ_ASM_WRAPPER #ADEFS = -DUSE_IRQ_ASM_WRAPPER
@ -524,13 +480,6 @@ endif
endif endif
endif endif
# Generate code for PyMite
#$(OUTDIR)/pmlib_img.c $(OUTDIR)/pmlib_nat.c $(OUTDIR)/pmlibusr_img.c $(OUTDIR)/pmlibusr_nat.c $(OUTDIR)/pmfeatures.h: $(wildcard $(PYMITELIB)/*.py) $(wildcard $(PYMITEPLAT)/*.py) $(wildcard $(FLIGHTPLANLIB)/*.py) $(wildcard $(FLIGHTPLANS)/*.py)
# @echo $(MSG_PYMITEINIT) $(call toprel, $@)
# @$(PYTHON) $(PYMITETOOLS)/pmImgCreator.py -f $(PYMITEPLAT)/pmfeatures.py -c -s --memspace=flash -o $(OUTDIR)/pmlib_img.c --native-file=$(OUTDIR)/pmlib_nat.c $(PYMITELIB)/list.py $(PYMITELIB)/dict.py $(PYMITELIB)/__bi.py $(PYMITELIB)/sys.py $(PYMITELIB)/string.py $(wildcard $(FLIGHTPLANLIB)/*.py)
# @$(PYTHON) $(PYMITETOOLS)/pmGenPmFeatures.py $(PYMITEPLAT)/pmfeatures.py > $(OUTDIR)/pmfeatures.h
# @$(PYTHON) $(PYMITETOOLS)/pmImgCreator.py -f $(PYMITEPLAT)/pmfeatures.py -c -u -o $(OUTDIR)/pmlibusr_img.c --native-file=$(OUTDIR)/pmlibusr_nat.c $(FLIGHTPLANS)/test.py
# Link: create ELF output file from object files. # Link: create ELF output file from object files.
$(eval $(call LINK_TEMPLATE, $(OUTDIR)/$(TARGET).elf, $(ALLOBJ))) $(eval $(call LINK_TEMPLATE, $(OUTDIR)/$(TARGET).elf, $(ALLOBJ)))