This protocol, currently, has to be installed locally. So, wherever your OS code is located, that is where the boot protocol, too, has to be located.
It is currently a work-in progress for the protocol to be located in the standard includes for GCC/Clang.
1. Before you clone the repo, go ahead and make a new directory where your OS code will reside.
mkdir my_os
Where `my_os` is whatever name you want to call your OS
2. Enter the directory you created, and clone the protocols repository:
cd my_os
git clone https://github.com/ARACADERISE/boot_protocol.git
Once this is done, go ahead and refer to the boot protocols documentation on how to use it, then return after you are done.
3. After you have written some code, enter the directory `boot_protocol` of which you just cloned before writing some code.
4. Edit the `boot.yaml` file to store the according binary files for the second-stage bootloader and kernel, along with your second-stage bootloader C source code file and the C kernel source code file. You can refer to the protocols documentation for more information over the file `boot.yaml`.
After this, run `make`. Then, go back to the directory where your OS code resides, create a Makefile with the following(and add whatever for your likings):
.PHONY: run
run:
@cd boot_protocol && make run
Congrats! You now have a running OS :D