From 80700af624dd31cccd57912ad960726bbe73fd98 Mon Sep 17 00:00:00 2001 From: aramya <22577625+thamugadi@users.noreply.github.com> Date: Sat, 1 Jul 2023 14:57:35 +0100 Subject: [PATCH] elf files --- Makefile | 7 ++++--- entry/{devicetree.c => tree.c} | 0 2 files changed, 4 insertions(+), 3 deletions(-) rename entry/{devicetree.c => tree.c} (100%) diff --git a/Makefile b/Makefile index 467ccdb..a932cb4 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ PPC = powerpc-eabi QEMU = qemu-system-ppc RES = 1600x900x32 -SOURCES_C = $(wildcard entry/*.c) -SOURCES_S = $(wildcard entry/*.s) +SOURCES_C = $(shell find entry -name "*.c") +SOURCES_S = $(shell find entry -name "*.s") OBJECTS = $(SOURCES_C:.c=.elf) $(SOURCES_S:.s=.elf) .PHONY: clean run debug beige @@ -36,7 +36,8 @@ kernel.elf: $(OBJECTS) $(PPC)-as -c $< -o $@ clean: - rm -f *.APM *elf *txt + rm -f *.APM *txt + find entry -name "*.elf" -type f -delete run: $(QEMU) -hda *.APM -g $(RES) -machine $(MACHINE) diff --git a/entry/devicetree.c b/entry/tree.c similarity index 100% rename from entry/devicetree.c rename to entry/tree.c