From 3f9a100fae77a4886966cf41dd109be81055d3d0 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 8 Apr 2019 18:29:02 +0200 Subject: fix --- .gitignore | 1 + init/Makefile | 6 +++--- init/init.o | Bin 1672 -> 0 bytes 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 init/init.o diff --git a/.gitignore b/.gitignore index 1978fd3..12e2244 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ bzImage initramfs* *.elf root/* +init diff --git a/init/Makefile b/init/Makefile index 53a64ea..fae06bf 100644 --- a/init/Makefile +++ b/init/Makefile @@ -1,11 +1,11 @@ CC = gcc CFLAGS = LDFLAGS = --static -OUTPUT = init.elf +OUTPUT = init SRC = init.c -build: init.o +build: $(CC) $(CFLAGS) $(SRC) $(LDFLAGS) -o $(OUTPUT) .PHONY: copy clean @@ -14,4 +14,4 @@ clean: rm -df $(OUTPUT) copy: - objcopy -O binary $(OUTPUT) ../root/init + cp $(OUTPUT) ../root/init diff --git a/init/init.o b/init/init.o deleted file mode 100644 index 6a8fc22..0000000 Binary files a/init/init.o and /dev/null differ -- cgit v1.2.3