2016-06-30 15:02:43 -04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 Jared Boone, ShareBrained Technology, Inc.
|
2017-02-11 18:06:01 -05:00
|
|
|
# Copyright (C) 2016 Furrtek
|
2016-06-30 15:02:43 -04:00
|
|
|
#
|
|
|
|
# This file is part of PortaPack.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; see the file COPYING. If not, write to
|
|
|
|
# the Free Software Foundation, Inc., 51 Franklin Street,
|
|
|
|
# Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Build global options
|
|
|
|
# NOTE: Can be overridden externally.
|
|
|
|
#
|
|
|
|
|
|
|
|
enable_language(C CXX ASM)
|
|
|
|
|
2016-07-03 21:32:50 -04:00
|
|
|
project(baseband_shared)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
# Compiler options here.
|
2016-07-27 14:46:09 -04:00
|
|
|
set(USE_OPT "-O3 -g -falign-functions=16 -fno-math-errno --specs=nano.specs")
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
# C specific options here (added to USE_OPT).
|
|
|
|
set(USE_COPT "-std=gnu99")
|
|
|
|
|
|
|
|
# C++ specific options here (added to USE_OPT).
|
2017-01-05 20:15:00 -05:00
|
|
|
set(USE_CPPOPT "-std=c++14 -fno-rtti -fno-exceptions -Weffc++ -Wuninitialized")
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
# Enable this if you want the linker to remove unused code and data
|
|
|
|
set(USE_LINK_GC yes)
|
|
|
|
|
|
|
|
# Linker extra options here.
|
|
|
|
set(USE_LDOPT)
|
|
|
|
|
|
|
|
# Enable this if you want link time optimizations (LTO)
|
|
|
|
set(USE_LTO no)
|
|
|
|
|
|
|
|
# If enabled, this option allows to compile the application in THUMB mode.
|
|
|
|
set(USE_THUMB yes)
|
|
|
|
|
|
|
|
# Enable this if you want to see the full log while compiling.
|
|
|
|
set(USE_VERBOSE_COMPILE no)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build global options
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Architecture or project specific options
|
|
|
|
#
|
|
|
|
|
|
|
|
# Enables the use of FPU on Cortex-M4 (no, softfp, hard).
|
|
|
|
set(USE_FPU hard)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Architecture or project specific options
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Project, sources and paths
|
|
|
|
#
|
|
|
|
|
|
|
|
# Imported source files and paths
|
|
|
|
include(${CHIBIOS_PORTAPACK}/boards/GSG_HACKRF_ONE/board.cmake)
|
|
|
|
include(${CHIBIOS_PORTAPACK}/os/hal/platforms/LPC43xx_M4/platform.cmake)
|
|
|
|
include(${CHIBIOS}/os/hal/hal.cmake)
|
|
|
|
include(${CHIBIOS_PORTAPACK}/os/ports/GCC/ARMCMx/LPC43xx_M4/port.cmake)
|
|
|
|
include(${CHIBIOS}/os/kernel/kernel.cmake)
|
|
|
|
|
|
|
|
include(${CHIBIOS}/test/test.cmake)
|
|
|
|
|
|
|
|
# Define linker script file here
|
|
|
|
set(LDSCRIPT ${PORTLD}/LPC43xx_M4.ld)
|
|
|
|
|
|
|
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
|
|
|
set(CSRC
|
|
|
|
${PORTSRC}
|
|
|
|
${KERNSRC}
|
|
|
|
${TESTSRC}
|
|
|
|
${HALSRC}
|
|
|
|
${PLATFORMSRC}
|
|
|
|
${BOARDSRC}
|
|
|
|
)
|
|
|
|
|
|
|
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
|
|
|
# setting.
|
|
|
|
set(CPPSRC
|
2016-07-25 00:34:38 -04:00
|
|
|
baseband.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
${COMMON}/message_queue.cpp
|
|
|
|
${COMMON}/event.cpp
|
|
|
|
event_m4.cpp
|
|
|
|
${COMMON}/thread_wait.cpp
|
|
|
|
${COMMON}/gpdma.cpp
|
|
|
|
baseband_dma.cpp
|
|
|
|
${COMMON}/baseband_sgpio.cpp
|
|
|
|
${COMMON}/portapack_shared_memory.cpp
|
2016-10-24 14:16:48 -04:00
|
|
|
${COMMON}/buffer.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
baseband_thread.cpp
|
|
|
|
baseband_processor.cpp
|
|
|
|
baseband_stats_collector.cpp
|
|
|
|
dsp_decimate.cpp
|
|
|
|
dsp_demodulate.cpp
|
|
|
|
matched_filter.cpp
|
|
|
|
spectrum_collector.cpp
|
|
|
|
stream_input.cpp
|
2017-01-10 14:45:40 -05:00
|
|
|
stream_output.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
dsp_squelch.cpp
|
|
|
|
clock_recovery.cpp
|
|
|
|
packet_builder.cpp
|
|
|
|
${COMMON}/dsp_fft.cpp
|
|
|
|
${COMMON}/dsp_fir_taps.cpp
|
|
|
|
${COMMON}/dsp_iir.cpp
|
|
|
|
fxpt_atan2.cpp
|
|
|
|
rssi.cpp
|
|
|
|
rssi_dma.cpp
|
|
|
|
rssi_thread.cpp
|
|
|
|
audio_compressor.cpp
|
|
|
|
audio_output.cpp
|
2017-03-12 03:09:22 -04:00
|
|
|
audio_input.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
audio_dma.cpp
|
|
|
|
audio_stats_collector.cpp
|
|
|
|
${COMMON}/utility.cpp
|
|
|
|
${COMMON}/chibios_cpp.cpp
|
|
|
|
${COMMON}/debug.cpp
|
|
|
|
${COMMON}/gcc.cpp
|
2017-11-09 19:25:04 -05:00
|
|
|
tone_gen.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
# C sources to be compiled in ARM mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
set(ACSRC)
|
|
|
|
|
|
|
|
# C++ sources to be compiled in ARM mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
set(ACPPSRC)
|
|
|
|
|
|
|
|
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
set(TCSRC)
|
|
|
|
|
|
|
|
# C sources to be compiled in THUMB mode regardless of the global setting.
|
|
|
|
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
|
|
|
|
# option that results in lower performance and larger code size.
|
|
|
|
set(TCPPSRC)
|
|
|
|
|
|
|
|
# List ASM source files here
|
|
|
|
set(ASMSRC ${PORTASM})
|
|
|
|
|
|
|
|
set(INCDIR ${COMMON} ${PORTINC} ${KERNINC} ${TESTINC}
|
|
|
|
${HALINC} ${PLATFORMINC} ${BOARDINC}
|
|
|
|
${CHIBIOS}/os/various
|
|
|
|
)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Project, sources and paths
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Compiler settings
|
|
|
|
#
|
|
|
|
|
|
|
|
set(MCU cortex-m4)
|
|
|
|
|
|
|
|
# ARM-specific options here
|
|
|
|
set(AOPT)
|
|
|
|
|
|
|
|
# THUMB-specific options here
|
|
|
|
set(TOPT "-mthumb -DTHUMB")
|
|
|
|
|
|
|
|
# Define C warning options here
|
|
|
|
set(CWARN "-Wall -Wextra -Wstrict-prototypes")
|
|
|
|
|
|
|
|
# Define C++ warning options here
|
|
|
|
set(CPPWARN "-Wall -Wextra")
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compiler settings
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Start of default section
|
|
|
|
#
|
|
|
|
|
|
|
|
# List all default C defines here, like -D_DEBUG=1
|
|
|
|
# TODO: Switch -DCRT0_INIT_DATA depending on load from RAM or SPIFI?
|
|
|
|
# NOTE: _RANDOM_TCC to kill a GCC 4.9.3 error with std::max argument types
|
|
|
|
set(DDEFS -DLPC43XX -DLPC43XX_M4 -D__NEWLIB__ -DHACKRF_ONE -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -D_RANDOM_TCC=0 -DGIT_REVISION=\"${GIT_REVISION}\")
|
|
|
|
|
|
|
|
# List all default ASM defines here, like -D_DEBUG=1
|
|
|
|
set(DADEFS)
|
|
|
|
|
|
|
|
# List all default directories to look for include files here
|
|
|
|
set(DINCDIR)
|
|
|
|
|
|
|
|
# List the default directory to look for the libraries here
|
|
|
|
set(DLIBDIR)
|
|
|
|
|
|
|
|
# List all default libraries here
|
|
|
|
set(DLIBS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# End of default section
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# Start of user section
|
|
|
|
#
|
|
|
|
|
|
|
|
# List all user C define here, like -D_DEBUG=1
|
|
|
|
set(UDEFS)
|
|
|
|
|
|
|
|
# Define ASM defines here
|
|
|
|
set(UADEFS)
|
|
|
|
|
|
|
|
# List all user directories here
|
|
|
|
set(UINCDIR)
|
|
|
|
|
|
|
|
# List the user directory to look for the libraries here
|
|
|
|
set(ULIBDIR)
|
|
|
|
|
|
|
|
# List all user libraries here
|
|
|
|
set(ULIBS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# End of user defines
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
set(RULESPATH ${CHIBIOS}/os/ports/GCC/ARMCMx)
|
|
|
|
include(${RULESPATH}/rules.cmake)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} OBJECT ${CSRC} ${CPPSRC} ${ASMSRC})
|
|
|
|
include_directories(. ${INCDIR})
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
set(BASEBAND_IMAGES)
|
|
|
|
|
2016-06-30 19:45:41 -04:00
|
|
|
macro(DeclareTargets chunk_tag name)
|
|
|
|
project("baseband_${name}")
|
|
|
|
|
2016-06-30 15:02:43 -04:00
|
|
|
include(${RULESPATH}/rules.cmake)
|
2016-07-03 21:48:39 -04:00
|
|
|
add_executable(${PROJECT_NAME}.elf $<TARGET_OBJECTS:baseband_shared> ${MODE_CPPSRC})
|
|
|
|
set_target_properties(${PROJECT_NAME}.elf PROPERTIES LINK_DEPENDS ${LDSCRIPT})
|
2016-06-30 15:02:43 -04:00
|
|
|
add_definitions(${DEFS})
|
|
|
|
include_directories(. ${INCDIR})
|
|
|
|
link_directories(${LLIBDIR})
|
|
|
|
target_link_libraries(${PROJECT_NAME}.elf ${LIBS})
|
2016-10-03 14:34:59 -04:00
|
|
|
target_link_libraries(${PROJECT_NAME}.elf -Wl,-Map=${PROJECT_NAME}.map)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2016-07-03 14:32:21 -04:00
|
|
|
add_custom_command(
|
2016-07-03 21:32:50 -04:00
|
|
|
OUTPUT ${PROJECT_NAME}.bin ${PROJECT_NAME}.img
|
2016-06-30 15:02:43 -04:00
|
|
|
COMMAND ${CMAKE_OBJCOPY} -O binary ${PROJECT_NAME}.elf ${PROJECT_NAME}.bin
|
2016-06-30 19:45:41 -04:00
|
|
|
COMMAND ${MAKE_IMAGE_CHUNK} ${PROJECT_NAME}.bin ${chunk_tag} ${PROJECT_NAME}.img
|
2016-07-03 21:32:50 -04:00
|
|
|
DEPENDS ${PROJECT_NAME}.elf ${MAKE_IMAGE_CHUNK}
|
|
|
|
VERBATIM
|
2016-06-30 19:45:41 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(BASEBAND_IMAGES ${BASEBAND_IMAGES} ${PROJECT_NAME}.img)
|
2016-06-30 15:02:43 -04:00
|
|
|
endmacro()
|
|
|
|
|
2017-07-23 07:20:32 -04:00
|
|
|
### ADS-B RX
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_adsbrx.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PADR adsbrx)
|
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### ADS-B TX
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_adsbtx.cpp
|
|
|
|
)
|
2017-07-23 07:20:32 -04:00
|
|
|
DeclareTargets(PADT adsbtx)
|
2017-03-22 14:21:31 -04:00
|
|
|
|
|
|
|
### AFSK
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_afsk.cpp
|
|
|
|
)
|
2017-08-29 04:42:04 -04:00
|
|
|
DeclareTargets(PAFT afsktx)
|
|
|
|
|
|
|
|
### AFSK RX
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_afskrx.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PAFR afskrx)
|
2017-03-22 14:21:31 -04:00
|
|
|
|
2016-06-30 15:02:43 -04:00
|
|
|
### AIS
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_ais.cpp
|
|
|
|
)
|
2016-06-30 19:45:41 -04:00
|
|
|
DeclareTargets(PAIS ais)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
### AM Audio
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_am_audio.cpp
|
|
|
|
)
|
2016-06-30 19:45:41 -04:00
|
|
|
DeclareTargets(PAMA am_audio)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### Audio transmit
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_audiotx.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PATX audio_tx)
|
|
|
|
|
2016-06-30 15:02:43 -04:00
|
|
|
### Capture
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_capture.cpp
|
|
|
|
)
|
2016-06-30 19:45:41 -04:00
|
|
|
DeclareTargets(PCAP capture)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
### ERT
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_ert.cpp
|
|
|
|
)
|
2016-06-30 19:45:41 -04:00
|
|
|
DeclareTargets(PERT ert)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2017-10-05 00:38:45 -04:00
|
|
|
### Radiosonde
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_sonde.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PSON sonde)
|
|
|
|
|
2017-02-07 12:48:17 -05:00
|
|
|
### FSK TX
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_fsk.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PFSK fsktx)
|
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### Jammer
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_jammer.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PJAM jammer)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### Microphone transmit
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_mictx.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PMTX mic_tx)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### NFM Audio
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_nfm_audio.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PNFM nfm_audio)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### No op
|
2016-06-30 15:02:43 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_noop.cpp
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PNOP no_operation)
|
2016-06-30 15:02:43 -04:00
|
|
|
|
2016-08-06 02:49:45 -04:00
|
|
|
### OOK
|
2016-07-26 21:03:40 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2016-08-06 02:49:45 -04:00
|
|
|
proc_ook.cpp
|
2016-07-26 21:03:40 -04:00
|
|
|
)
|
2016-08-06 02:49:45 -04:00
|
|
|
DeclareTargets(POOK ook)
|
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### POCSAG RX
|
2017-03-12 03:09:22 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_pocsag.cpp
|
2017-03-12 03:09:22 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PPOC pocsag)
|
2017-03-12 03:09:22 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### RDS
|
2016-07-26 21:03:40 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_rds.cpp
|
2016-07-26 21:03:40 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PRDS rds)
|
2016-07-26 21:03:40 -04:00
|
|
|
|
2017-01-10 14:45:40 -05:00
|
|
|
### Replay
|
2016-07-26 21:03:40 -04:00
|
|
|
|
2017-01-10 14:45:40 -05:00
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_replay.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PREP replay)
|
2016-07-26 21:03:40 -04:00
|
|
|
|
2017-07-18 14:31:05 -04:00
|
|
|
### Signal generator
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_siggen.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PSIG siggen)
|
|
|
|
|
2017-03-23 00:29:58 -04:00
|
|
|
### SSTV TX
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_sstvtx.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PSTX sstvtx)
|
|
|
|
|
2017-10-29 21:00:39 -04:00
|
|
|
### Test
|
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
|
|
|
proc_test.cpp
|
|
|
|
)
|
|
|
|
DeclareTargets(PTST test)
|
|
|
|
|
2016-12-09 12:21:47 -05:00
|
|
|
### Tones
|
2016-07-26 21:03:40 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2016-12-09 12:21:47 -05:00
|
|
|
proc_tones.cpp
|
2016-07-26 21:03:40 -04:00
|
|
|
)
|
2016-12-09 12:21:47 -05:00
|
|
|
DeclareTargets(PTON tones)
|
2016-09-23 11:34:50 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### TPMS
|
2016-07-26 21:03:40 -04:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_tpms.cpp
|
2016-07-26 21:03:40 -04:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PTPM tpms)
|
2016-07-26 21:03:40 -04:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### Wideband Spectrum
|
2016-12-01 00:58:47 -05:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_wideband_spectrum.cpp
|
2016-12-01 00:58:47 -05:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PSPE wideband_spectrum)
|
2017-02-14 22:05:38 -05:00
|
|
|
|
2017-03-22 14:21:31 -04:00
|
|
|
### WFM Audio
|
2017-02-14 22:05:38 -05:00
|
|
|
|
|
|
|
set(MODE_CPPSRC
|
2017-03-22 14:21:31 -04:00
|
|
|
proc_wfm_audio.cpp
|
2017-02-14 22:05:38 -05:00
|
|
|
)
|
2017-03-22 14:21:31 -04:00
|
|
|
DeclareTargets(PWFM wfm_audio)
|
2017-02-14 22:05:38 -05:00
|
|
|
|
2016-06-30 22:37:05 -04:00
|
|
|
### HackRF "factory" firmware
|
|
|
|
|
2016-07-03 14:32:21 -04:00
|
|
|
add_custom_command(
|
2016-07-03 21:32:50 -04:00
|
|
|
OUTPUT hackrf.bin hackrf.img
|
2016-06-30 22:37:05 -04:00
|
|
|
COMMAND ${STRIP_DFU} ${HACKRF_FIRMWARE_IMAGE} hackrf.bin
|
|
|
|
COMMAND ${MAKE_IMAGE_CHUNK} hackrf.bin HRF1 hackrf.img
|
2016-07-03 21:32:50 -04:00
|
|
|
DEPENDS ${HACKRF_FIRMWARE_IMAGE} ${STRIP_DFU} ${MAKE_IMAGE_CHUNK}
|
|
|
|
VERBATIM
|
2016-06-30 22:37:05 -04:00
|
|
|
)
|
|
|
|
|
2017-04-07 01:20:24 -04:00
|
|
|
set(BASEBAND_IMAGES ${BASEBAND_IMAGES} hackrf.img)
|
2016-06-30 22:37:05 -04:00
|
|
|
|
2016-06-30 22:37:32 -04:00
|
|
|
### Terminator image
|
|
|
|
|
2016-07-03 14:32:21 -04:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT terminator.img
|
2016-06-30 22:37:32 -04:00
|
|
|
COMMAND ${MAKE_IMAGE_CHUNK} terminator.img
|
2016-07-03 14:32:21 -04:00
|
|
|
DEPENDS ${MAKE_IMAGE_CHUNK}
|
2016-07-03 21:32:50 -04:00
|
|
|
VERBATIM
|
2016-06-30 22:37:32 -04:00
|
|
|
)
|
|
|
|
|
2017-04-07 01:20:24 -04:00
|
|
|
set(BASEBAND_IMAGES ${BASEBAND_IMAGES} terminator.img)
|
2016-07-03 21:32:50 -04:00
|
|
|
|
2016-06-30 15:02:43 -04:00
|
|
|
#######################################################################
|
|
|
|
|
2016-07-03 21:32:50 -04:00
|
|
|
project(baseband)
|
2017-05-25 16:08:33 -04:00
|
|
|
|
2016-07-03 21:32:50 -04:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${PROJECT_NAME}.img
|
|
|
|
COMMAND cat ${BASEBAND_IMAGES} > ${PROJECT_NAME}.img
|
|
|
|
DEPENDS ${BASEBAND_IMAGES}
|
2017-02-11 18:06:01 -05:00
|
|
|
DEPENDS hackrf.img terminator.img
|
2016-07-03 21:32:50 -04:00
|
|
|
VERBATIM
|
|
|
|
)
|
|
|
|
|
2016-06-30 15:02:43 -04:00
|
|
|
add_custom_target(
|
2016-07-03 21:32:50 -04:00
|
|
|
${PROJECT_NAME}
|
|
|
|
DEPENDS ${PROJECT_NAME}.img
|
2016-06-30 15:02:43 -04:00
|
|
|
)
|