aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-10 17:23:00 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-10 17:23:00 +0100
commitd0d9f0280879f8c43131256aa5e82012ec84716f (patch)
tree4d5846a81705544a26e04bdadd84a8849842d967 /Makefile
parent3f1cd2050271dbf548e053f0a67e365b277cfcb3 (diff)
downloadrpi-MMU-example-d0d9f0280879f8c43131256aa5e82012ec84716f.tar.gz
rpi-MMU-example-d0d9f0280879f8c43131256aa5e82012ec84716f.zip
Clean up flags in Makefile a bit.; -fPIC... -fPIC EVERYWHERE
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 377ba18..0796ac8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra -I.
-ELFFLAGS=-ffreestanding -O2 -nostdlib -lgcc -I.
+CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra -O2 -fPIC -I.
+ELFFLAGS=-nostdlib -lgcc
ARM_OBJECTS=kernel.o paging.o demo_functionality.o PL0_test.o uart.o loader_stage1.o loader_stage2.o
@@ -21,9 +21,6 @@ all : kernel7.img
%_embeddable.o : %.img
arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata $^ $@
-libkernel.o : libkernel.c
- arm-none-eabi-gcc $(CFLAGS) -fPIC -c $^ -o $@
-
libkernel_renamed.o : libkernel.o
arm-none-eabi-objcopy $(RENAME_FLAGS) $^ $@