Fix Buildchain UwU

This commit is contained in:
Xircon 2026-04-28 23:28:37 -04:00
parent 7ab30244d3
commit 959b007ecf
5 changed files with 14 additions and 7 deletions

0
a.out
View File

View File

@ -26,7 +26,7 @@ echo ------------
echo COMPILING OS
echo ------------
make -j24 -s
make TARGET=i686-elf TARGET_DEFINE=__I686 TARGET_ASM=nasm -j24 -s
echo ---------
echo Finished!

View File

@ -27,7 +27,7 @@ SOURCES_ASM_xtensa-esp32-elf = $(wildcard arch/xtensa/*.asm)
# TWO ARCHITECTURES! HAHAHAHAH
OBJECTS_ASM = $(patsubst %.asm, $(BUILD_DIR)/kernel/asm/%.obj, $(SOURCES_ASM))
OBJECTS_ASM = $(patsubst %.asm, $(BUILD_DIR)/kernel/asm/%.obj, $(SOURCES_ASM_$(TARGET)))
# i love rejanking this cuz yes (its 4am fuck off)
@ -37,7 +37,7 @@ all: kernel
kernel: $(BUILD_DIR)/nanite.bin
$(BUILD_DIR)/nanite.bin: $(OBJECTS_ASM-$(TARGET)) $(OBJECTS_C)
$(BUILD_DIR)/nanite.bin: $(OBJECTS_ASM) $(OBJECTS_C)
@$(TARGET_LD) $(TARGET_LINKFLAGS) -Wl,-Map=$(BUILD_DIR)/kernel.map -o $@ $^ $(TARGET_LIBS)
@echo "--> Created: nanite.bin"
@ -46,7 +46,7 @@ $(BUILD_DIR)/kernel/c/%.obj: %.c $(HEADERS_C)
@$(TARGET_CC) $(TARGET_CFLAGS) -c -o $@ $<
@echo "--> Compiled: " $<
$(BUILD_DIR)/kernel/asm/%.obj: %.asm $(HEADERS_ASM-$(TARGET))
$(BUILD_DIR)/kernel/asm/%.obj: %.asm $(HEADERS_ASM_$(TARGET))
@mkdir -p $(@D)
@$(TARGET_ASM) $(TARGET_ASMFLAGS) -o $@ $<
@echo "--> Compiled: " $<

View File

@ -67,7 +67,14 @@ void start(unsigned long magic, unsigned long address) {
// Print logo
clrscr();
printf("%s", LOGO);
printf("The Nano OS %s\n-------------------------------------\n", VERSION);
#ifdef __I686
printf("[i686]\n");
#endif
#ifdef __XTENSA
printf("[Xtensa]\n");
#endif
printf("The Nano OS %s\n--------------------------------------------\n", VERSION);
// Multiboot Debug Stuff
// if (magic != MULTIBOOT2_BOOTLOADER_MAGIC) {

View File

@ -5,7 +5,7 @@
\*----------------*/
#pragma once
#define LOGO " _ _____ _ __________________\n / | / / | / | / / _/_ __/ ____/\n / |/ / /| | / |/ // / / / / __/ \n / /| / ___ |/ /| // / / / / /___ \n/_/ |_/_/ |_/_/ |_/___/ /_/ /_____/ \n" // Nanite's Logo as a formatted string
#define VERSION "RD-00055" // Current Version of Nanite
#define LOGO " _ _____ _ __________________\n / | / / | / | / / _/_ __/ ____/\n / |/ / /| | / |/ // / / / / __/ \n / /| / ___ |/ /| // / / / / /___ \n/_/ |_/_/ |_/_/ |_/___/ /_/ /_____/" // Nanite's Logo as a formatted string
#define VERSION "RD-00056" // Current Version of Nanite
#define BOOTLOGO " _ ______ ____ ____ ______\n / | / / __ )/ __ \\/ __ /_ __/\n / |/ / __ / / / / / / // / \n / /| / /_/ / /_/ / /_/ // / \n/_/ |_/_____/\\____/\\____//_/ \n" // Old bootloader logo
// one day i will re-implement NBOOT V 2