diff options
author | vetch <vetch97@gmail.com> | 2019-10-08 16:35:12 +0200 |
---|---|---|
committer | vetch <vetch97@gmail.com> | 2019-10-08 16:35:12 +0200 |
commit | 73d6f1693f0c4023df928363012bee3a6d442a4c (patch) | |
tree | b7c8d84c07ada4afb0bc499cceb17d0eaefaca14 | |
parent | 41ad4c6268b0292464802d88ac6835d21e69cabb (diff) | |
download | rpi-MMU-example-73d6f1693f0c4023df928363012bee3a6d442a4c.tar.gz rpi-MMU-example-73d6f1693f0c4023df928363012bee3a6d442a4c.zip |
optimize imports
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | global.h | 1 | ||||
-rw-r--r-- | kernel.c | 3 | ||||
-rw-r--r-- | uart.h | 1 |
4 files changed, 2 insertions, 5 deletions
@@ -12,7 +12,7 @@ boot.o : boot.S arm-none-eabi-as -mcpu=cortex-a7 $^ -o $@ kernel.elf : boot.o kernel.o uart.o - arm-none-eabi-gcc -T linker.ld -o $@ -ffreestanding -O2 -nostdlib boot.o kernel.o uart.o -lgcc -I. + arm-none-eabi-gcc -T linker.ld -o $@ -ffreestanding -O2 -nostdlib $^ -lgcc -I. kernel7.img : kernel.elf arm-none-eabi-objcopy $^ -O binary $@ @@ -1,5 +1,6 @@ // board type, raspi2 #define RASPI 2 + #if RASPI == 4 #define GPIO_BASE 0xFE200000 #else @@ -1,7 +1,4 @@ -#include <stddef.h> -#include <stdint.h> #include <uart.h> -#include <global.h> void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) { @@ -1,7 +1,6 @@ #include <stddef.h> #include <stdint.h> #include <global.h> -// board type, raspi2 enum { // The offsets for reach register. |