Feat: Kernel has now a functions for better screen printing

This commit is contained in:
AfonsoCMSousa
2025-11-19 23:12:45 +00:00
parent 8f9ea8b71f
commit 67776035b6
3 changed files with 150 additions and 35 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ set -e # Exit on any error
echo "==================================="
echo " SoraOS Build System v1.0"
echo "==================================="
echo ""
# Colors
GREEN='\033[0;32m'
@@ -17,7 +18,7 @@ NC='\033[0m'
echo -e "Preparing build environment...${NC}"
echo -e "Creating Folders${NC}"
mkdir -p bin obj boot include
echo -e "${GREEN} ${NC}Folders created.${NC}"
echo -e "${GREEN}${NC} Folders created.${NC}"
# Step 1: Assemble Stage 1 bootloader (MBR - 512 bytes)
echo -e "${BLUE}[1/6]${NC} Assembling Stage 1 bootloader (MBR)..."
@@ -46,7 +47,7 @@ cat ./bin/boot.bin ./bin/elevator.bin ./bin/kernel.bin > os.bin
# Pad to floppy size (1.44MB)
# FIX: Uncomment the line below if you want to ensure the image is exactly 1.44MB
#
# truncate -s 1440K os-image.bin
truncate -s 1440K os.bin
echo ""
echo -e "${GREEN}✓ Build complete!${NC}"