{"id":28460883,"url":"https://github.com/limine-bootloader/limine-cxx-template","last_synced_at":"2025-07-20T15:33:28.151Z","repository":{"id":211666909,"uuid":"729510026","full_name":"limine-bootloader/limine-cxx-template","owner":"limine-bootloader","description":"A simple template for building a Limine-compliant kernel in C++.","archived":false,"fork":false,"pushed_at":"2025-07-20T04:17:36.000Z","size":101,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"trunk","last_synced_at":"2025-07-20T06:35:12.927Z","etag":null,"topics":["aarch64","amd64","arm64","bare-bones","barebones","cplusplus","cplusplus-language","cpp","cpp-language","kernel","limine","limine-bootloader","loongarch","loongarch64","loongson","risc-v","riscv","riscv64","template","x86-64"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/limine-bootloader.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-09T13:10:21.000Z","updated_at":"2025-07-20T04:17:40.000Z","dependencies_parsed_at":"2024-05-22T07:46:04.396Z","dependency_job_id":"7a918306-a1dd-492f-8e33-b423b3ca4825","html_url":"https://github.com/limine-bootloader/limine-cxx-template","commit_stats":null,"previous_names":["limine-bootloader/limine-cpp-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/limine-bootloader/limine-cxx-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-cxx-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-cxx-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-cxx-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-cxx-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limine-bootloader","download_url":"https://codeload.github.com/limine-bootloader/limine-cxx-template/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-cxx-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266151525,"owners_count":23884436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aarch64","amd64","arm64","bare-bones","barebones","cplusplus","cplusplus-language","cpp","cpp-language","kernel","limine","limine-bootloader","loongarch","loongarch64","loongson","risc-v","riscv","riscv64","template","x86-64"],"created_at":"2025-06-07T02:39:50.855Z","updated_at":"2025-07-20T15:33:28.141Z","avatar_url":"https://github.com/limine-bootloader.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Limine C++ Template\n\nThis repository will demonstrate how to set up a basic kernel in C++ using Limine.\n\n## How to use this?\n\n### Dependencies\n\nAny `make` command depends on GNU make (`gmake`) and is expected to be run using it. This usually means using `make` on most GNU/Linux distros, or `gmake` on other non-GNU systems.\n\nIt is recommended to build this project using a standard UNIX-like system, using a Clang/LLVM toolchain capable of cross compilation.\n\nAdditionally, building an ISO with `make all` requires `xorriso`, and building a HDD/USB image with `make all-hdd` requires `sgdisk` (usually from `gdisk` or `gptfdisk` packages) and `mtools`.\n\n### Toolchain selection\n\nThe `TOOLCHAIN` and `TOOLCHAIN_PREFIX` `make` variables can be used to set the toolchain. `TOOLCHAIN` can be set to `llvm` to use Clang/LLVM.\n\nFor example:\n```\nmake TOOLCHAIN=llvm\n```\nor:\n```\nmake TOOLCHAIN_PREFIX=x86_64-elf-\n```\n\n### Architectural targets\n\nThe `ARCH` make variable determines the target architecture to build the kernel and image for.\n\nThe default `ARCH` is `x86_64`. Other options include: `aarch64`, `loongarch64`, and `riscv64`.\n\n### Makefile targets\n\nRunning `make all` will compile the kernel (from the `kernel/` directory) and then generate a bootable ISO image.\n\nRunning `make all-hdd` will compile the kernel and then generate a raw image suitable to be flashed onto a USB stick or hard drive/SSD.\n\nRunning `make run` will build the kernel and a bootable ISO (equivalent to make all) and then run it using `qemu` (if installed).\n\nRunning `make run-hdd` will build the kernel and a raw HDD image (equivalent to make all-hdd) and then run it using `qemu` (if installed).\n\nFor x86_64, the `run-bios` and `run-hdd-bios` targets are equivalent to their non `-bios` counterparts except that they boot `qemu` using the default SeaBIOS firmware instead of OVMF.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimine-bootloader%2Flimine-cxx-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimine-bootloader%2Flimine-cxx-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimine-bootloader%2Flimine-cxx-template/lists"}