diff options
-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. |