aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-24 22:43:07 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-24 22:43:07 +0100
commit4c110d2802742fe1d37ba7280f374174fc45cbe1 (patch)
tree26f3a2a2d24caee714327090080d63c5dad8a50b /Makefile
parent2d91eebbf1fc9335269207602b360ec485aaf7bb (diff)
downloadrpi-MMU-example-4c110d2802742fe1d37ba7280f374174fc45cbe1.tar.gz
rpi-MMU-example-4c110d2802742fe1d37ba7280f374174fc45cbe1.zip
simplify linking of libkernel
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 35cc48c..d782eda 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,6 @@ ARM_OBJECTS=kernel.o paging.o demo_functionality.o PL0_test.o uart.o loader_stag
EMBEDDABLE_OBJECTS=PL_0_test_embeddable.o loader_stage2_embeddable.o
-RENAME_FLAGS=--rename-section .data=.renamed_data --rename-section .rodata=.renamed_rodata --rename-section .text=.renamed_text --rename-section .bss=.renamed_bss
-
all : kernel7.img
%.o : %.c
@@ -21,13 +19,10 @@ all : kernel7.img
%_embeddable.o : %.img
arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata $^ $@
-libkernel_renamed.o : libkernel.o
- arm-none-eabi-objcopy $(RENAME_FLAGS) $^ $@
-
PL_0_test.elf : PL0_test.o uart.o
arm-none-eabi-gcc -T PL0_test.ld -o $@ $(ELFFLAGS) $^
-kernel.elf : boot.o kernel.o uart.o PL_0_test_embeddable.o demo_functionality.o paging.o libkernel_renamed.o interrupt_vector.o interrupts.o
+kernel.elf : boot.o kernel.o uart.o PL_0_test_embeddable.o demo_functionality.o paging.o libkernel.o interrupt_vector.o interrupts.o
arm-none-eabi-gcc -T linker.ld -o $@ $(ELFFLAGS) $^
loader.elf : boot.o loader_stage1.o loader_stage2.o uart.o