Compiling from source - Acetolyne/portapack-carnage GitHub Wiki
You will need a few tools installed on your computer before you begin.
GCC-ARM-Embedded - I am using the "9-2019-q4-major" release. CMake 2.8.9 or newer - Build system now uses CMake instead of GNU Make. PyYAML for Python 2.7 (for libopencm3, built by hackrf submodule). dfu-util 0.7 or newer - Used to load and run the stock HackRF firmware from RAM.
The source code is hosted on GitHub. Change to a directory where you want the source code, and clone the source repository.
git clone --recurse-submodules https://github.com/Acetolyne/portapack-carnage.git
Change directories into the cloned repository.
cd portapack-hackrf
Make a "build" directory and initialize the CMake build files into that directory:
mkdir build
cd build
cmake ..
Make the SPI flash binary image (which builds the bootstrap, application, and baseband binaries):
make firmware
The binary will be at "firmware/portapack-carnage.bin". under the build directory that you are currently in.
On Ubuntu based systems you may see an error that says something regarding the assert call.
To fix this error do the below fix
--- a/firmware/common/utility.hpp +++ b/firmware/common/utility.hpp @@ -26,6 +26,7 @@ #include <cstdint> #include <cstddef> #include <algorithm> +#undef assert #include <complex> #include <memory>