{"id":15048925,"url":"https://github.com/limine-bootloader/limine-c-template","last_synced_at":"2025-04-05T05:04:33.685Z","repository":{"id":40581000,"uuid":"474244552","full_name":"limine-bootloader/limine-c-template","owner":"limine-bootloader","description":"A simple template for building a Limine-compliant kernel in C.","archived":false,"fork":false,"pushed_at":"2025-03-07T15:53:34.000Z","size":92,"stargazers_count":148,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"trunk","last_synced_at":"2025-03-29T04:05:08.421Z","etag":null,"topics":["aarch64","amd64","arm64","bare-bones","barebones","c","c-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}},"created_at":"2022-03-26T04:49:37.000Z","updated_at":"2025-03-28T08:51:09.000Z","dependencies_parsed_at":"2023-02-04T06:32:02.937Z","dependency_job_id":"a4107676-68c9-4a7d-9c25-a8e8f29e26f7","html_url":"https://github.com/limine-bootloader/limine-c-template","commit_stats":{"total_commits":157,"total_committers":3,"mean_commits":"52.333333333333336","dds":0.01273885350318471,"last_synced_commit":"9d3001df169edb6bd29b92dc8e7c894e2a1983a5"},"previous_names":["limine-bootloader/limine-c-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-c-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-c-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-c-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/limine-bootloader%2Flimine-c-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/limine-bootloader","download_url":"https://codeload.github.com/limine-bootloader/limine-c-template/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289424,"owners_count":20914464,"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","c","c-language","kernel","limine","limine-bootloader","loongarch","loongarch64","loongson","risc-v","riscv","riscv64","template","x86-64"],"created_at":"2024-09-24T21:17:11.572Z","updated_at":"2025-04-05T05:04:33.664Z","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### 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-c-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimine-bootloader%2Flimine-c-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimine-bootloader%2Flimine-c-template/lists"}