Mainly, I renamed build_x86-64.sh to build_kernel.sh. I think it reflects better what the script is doing, alongside the recent addition of build_api.sh. You can specify the architecture with the -a or --arch option. This will make it easier when working on another architecture, because we won't have to add another build script for it. For example:
./build_kernel.sh -a x86-64
./build_kernel.sh -a riscv64
The default architecture is x86-64, so in that case you just have to do this:
./build_kernel.sh
I also added the install-*.sh scripts. This is because I think it is better for this repository to decide what files get installed, instead of the BareMetal OS repository.
Overall, I don't actually think these scripts are easier (or harder) than the other scripts. But adding the options seemed like the right way to go. I've also added the -h and --help options to most of the commands I added. For example, install_kernel.sh prints this:
Options
-h, --help : Print this help message.
-a, --arch ARCH : Install the kernel of the specified architecture.
-p, --path PATH : Install kernel files to specified path.
And install_api.sh prints this:
Options
-h, --help : Print this help message.
-i, --include_path PATH : Install header to specified path.
-l, --library_path PATH : Install library to specified path.
Made some changes to the build scripts here.
Mainly, I renamed
build_x86-64.sh
tobuild_kernel.sh
. I think it reflects better what the script is doing, alongside the recent addition ofbuild_api.sh
. You can specify the architecture with the-a
or--arch
option. This will make it easier when working on another architecture, because we won't have to add another build script for it. For example:The default architecture is
x86-64
, so in that case you just have to do this:I also added the
install-*.sh
scripts. This is because I think it is better for this repository to decide what files get installed, instead of the BareMetal OS repository.Overall, I don't actually think these scripts are easier (or harder) than the other scripts. But adding the options seemed like the right way to go. I've also added the
-h
and--help
options to most of the commands I added. For example,install_kernel.sh
prints this:And
install_api.sh
prints this: