Sync with Sharebrained's fw, only Xylos TX works for now

This commit is contained in:
furrtek
2016-07-27 03:03:40 +02:00
parent fdfa7c9776
commit 739956b42b
150 changed files with 17236 additions and 7875 deletions

View File

@@ -1,104 +1,167 @@
#
# Copyright (C) 2014 Jared Boone, ShareBrained Technology, Inc.
#
# 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.
#
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
PATH_BOOTSTRAP=bootstrap
PATH_APPLICATION=application
PATH_BASEBAND=baseband
PATH_BASEBAND_TX=baseband-tx
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
TARGET=portapack-h1-firmware
#=============================================================================
# Special targets provided by cmake.
TARGET_BOOTSTRAP=$(PATH_BOOTSTRAP)/bootstrap
TARGET_HACKRF_FIRMWARE=hackrf_one_usb_ram
TARGET_APPLICATION=$(PATH_APPLICATION)/build/application
TARGET_BASEBAND=$(PATH_BASEBAND)/build/baseband
TARGET_BASEBAND_TX=$(PATH_BASEBAND_TX)/build/baseband-tx
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
MAKE_SPI_IMAGE=tools/make_spi_image.py
MAKE_MODULES_FILE=tools/make_baseband_file.py
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
DFU_HACKRF=hackrf_one_usb_ram.dfu
LICENSE=../LICENSE
.SUFFIXES: .hpux_make_needs_suffix_list
GIT_REVISION=$(shell git log -n 1 --format=%h)
# Suppress display of executed commands.
$(VERBOSE).SILENT:
CP=arm-none-eabi-objcopy
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
MODULES = $(PATH_BASEBAND) \
$(PATH_BASEBAND_TX)
#=============================================================================
# Set environment variables for the build.
all: $(TARGET).bin modules
# The shell in which to execute make rules.
SHELL = /bin/sh
release: $(TARGET).bin $(DFU_HACKRF) $(LICENSE)
# TODO: Bad hack to fix location of LICENSE file for tar.
cp $(LICENSE) LICENSE
tar -c -j -f $(TARGET)-$(GIT_REVISION).tar.bz2 $(TARGET).bin $(DFU_HACKRF) LICENSE
zip -9 -q $(TARGET)-$(GIT_REVISION).zip $(TARGET).bin $(DFU_HACKRF) LICENSE
rm -f LICENSE
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
program: $(TARGET).bin modules
dfu-util --device 1fc9:000c --download hackrf_one_usb_ram.dfu --reset
sleep 1s
hackrf_spiflash -w $(TARGET).bin
modules: $(TARGET_BASEBAND).bin $(TARGET_BASEBAND_TX).bin
$(MAKE_MODULES_FILE) $(MODULES)
cp $(PATH_BASEBAND).bin ../sdcard/$(PATH_BASEBAND).bin
cp $(PATH_BASEBAND_TX).bin ../sdcard/$(PATH_BASEBAND_TX).bin
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
$(TARGET).bin: modules $(MAKE_SPI_IMAGE) $(TARGET_BOOTSTRAP).bin $(TARGET_HACKRF_FIRMWARE).dfu $(TARGET_BASEBAND_TX)_inc.bin $(TARGET_APPLICATION).bin
$(MAKE_SPI_IMAGE) $(TARGET_BOOTSTRAP).bin $(TARGET_HACKRF_FIRMWARE).dfu $(TARGET_BASEBAND_TX)_inc.bin $(TARGET_APPLICATION).bin $(TARGET).bin
# Escaping for special characters.
EQUALS = =
$(TARGET_BOOTSTRAP).bin: $(TARGET_BOOTSTRAP).elf
$(CP) -O binary $(TARGET_BOOTSTRAP).elf $(TARGET_BOOTSTRAP).bin
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/furrtek/portapack-hackrf
$(TARGET_BASEBAND).bin: $(TARGET_BASEBAND).elf
$(CP) -O binary $(TARGET_BASEBAND).elf $(TARGET_BASEBAND).bin
$(TARGET_BASEBAND_TX).bin: $(TARGET_BASEBAND_TX).elf
$(CP) -O binary $(TARGET_BASEBAND_TX).elf $(TARGET_BASEBAND_TX).bin
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/furrtek/portapack-hackrf
$(TARGET_APPLICATION).bin: $(TARGET_APPLICATION).elf
$(CP) -O binary $(TARGET_APPLICATION).elf $(TARGET_APPLICATION).bin
#=============================================================================
# Targets provided globally by CMake.
$(TARGET_BASEBAND).elf: always_check
@$(MAKE) -s -e GIT_REVISION=$(GIT_REVISION) -C $(PATH_BASEBAND)
$(TARGET_BASEBAND_TX).elf: always_check
@$(MAKE) -s -e GIT_REVISION=$(GIT_REVISION) -C $(PATH_BASEBAND_TX)
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running interactive CMake command-line interface..."
/usr/bin/cmake -i .
.PHONY : edit_cache
$(TARGET_APPLICATION).elf: always_check
@$(MAKE) -s -e GIT_REVISION=$(GIT_REVISION) -C $(PATH_APPLICATION)
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
$(TARGET_BOOTSTRAP).elf: always_check
@$(MAKE) -s -e GIT_REVISION=$(GIT_REVISION) -C $(PATH_BOOTSTRAP)
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
cd /home/furrtek/portapack-hackrf && $(CMAKE_COMMAND) -E cmake_progress_start /home/furrtek/portapack-hackrf/CMakeFiles /home/furrtek/portapack-hackrf/firmware/CMakeFiles/progress.marks
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/all
$(CMAKE_COMMAND) -E cmake_progress_start /home/furrtek/portapack-hackrf/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
rm -f $(TARGET).bin
rm -f $(TARGET_BOOTSTRAP).bin
rm -f $(TARGET_BASEBAND).bin
rm -f $(TARGET_APPLICATION).bin
$(MAKE) -C $(PATH_BASEBAND) clean
$(MAKE) -C $(PATH_APPLICATION) clean
$(MAKE) -C $(PATH_BOOTSTRAP) clean
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/preinstall
.PHONY : preinstall/fast
# clear depends
depend:
cd /home/furrtek/portapack-hackrf && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
# Convenience name for target.
firmware/CMakeFiles/firmware.dir/rule:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/CMakeFiles/firmware.dir/rule
.PHONY : firmware/CMakeFiles/firmware.dir/rule
# Convenience name for target.
firmware: firmware/CMakeFiles/firmware.dir/rule
.PHONY : firmware
# fast build rule for target.
firmware/fast:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f firmware/CMakeFiles/firmware.dir/build.make firmware/CMakeFiles/firmware.dir/build
.PHONY : firmware/fast
# Convenience name for target.
firmware/CMakeFiles/program.dir/rule:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/CMakeFiles/program.dir/rule
.PHONY : firmware/CMakeFiles/program.dir/rule
# Convenience name for target.
program: firmware/CMakeFiles/program.dir/rule
.PHONY : program
# fast build rule for target.
program/fast:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f firmware/CMakeFiles/program.dir/build.make firmware/CMakeFiles/program.dir/build
.PHONY : program/fast
# Convenience name for target.
firmware/CMakeFiles/release.dir/rule:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f CMakeFiles/Makefile2 firmware/CMakeFiles/release.dir/rule
.PHONY : firmware/CMakeFiles/release.dir/rule
# Convenience name for target.
release: firmware/CMakeFiles/release.dir/rule
.PHONY : release
# fast build rule for target.
release/fast:
cd /home/furrtek/portapack-hackrf && $(MAKE) -f firmware/CMakeFiles/release.dir/build.make firmware/CMakeFiles/release.dir/build
.PHONY : release/fast
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... firmware"
@echo "... program"
@echo "... rebuild_cache"
@echo "... release"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
cd /home/furrtek/portapack-hackrf && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
always_check:
@true