{"repo":"Limine-Bootloader/limine-c-template","free":true,"listed":false,"github":"https://github.com/Limine-Bootloader/limine-c-template","clone":"git clone https://github.com/Limine-Bootloader/limine-c-template.git","description":"A simple template for building a Limine-compliant kernel in C.","language":"Makefile","stars":23,"topics":["c","limine","template","c-language","limine-bootloader","x86-64","bare-bones","barebones","amd64","kernel"],"license":"0BSD","category":"saas-starters-boilerplates","readme_excerpt":"Limine C Template This repository will demonstrate how to set up a basic kernel in C using Limine. How to use this? Dependencies Any 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. It is recommended to build this project using a standard UNIX-like system, using a Clang/LLVM toolchain capable of cross compilation. Additionally, 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 . Toolchain selection The TOOLCHAIN and TOOLCHAIN PREFIX make variables can be used to set the toolchain. TOOLCHAIN can be set to llvm to use Clang/LLVM. For example: or: Architectural targets The ARCH make variable determines the target architecture to build the kernel and image for. The default ARCH is x86 64 . Other options include: aarch64 , loongarch64 , and riscv64 . Makefile targets Running make all will compile the kernel (from the kernel/ directory) and then generate a bootable ISO image. Running 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. Running make run will build the kernel and a bootable ISO (equivalent to make all) and then run it using qemu (if installed). Running make run-hdd will build the kernel and a raw HDD image (equivalent to make all-hdd) and then run it using qemu (","default_branch":null,"files":null,"tree":[],"storefront":"/r/Limine-Bootloader","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Limine-Bootloader/limine-c-template/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}