I just wanted to keep all PS4-kexec with fix in the same place, also i wanted to build payloads do separate folders.
NO, the kexec here is for boot a custom kernel, the payload (main.c) here is for boot the os and kernel by using the kexec.
You can find a better explanation here
You need some dependance, you can install them with these command.
sudo apt install build-essential
sudo apt install yasm
sudo pacman -Sy base-devel
sudo pacman -Sy yasm
After that just go to the root directory and run the make command.
Follow this guide
@sleirsgoevy for the payload, @tihmstar for 7.02 offset, @codedwrench for 7.55 & 9.00 offset