diff options
-rw-r--r-- | build/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/build/Makefile b/build/Makefile index fe8986b..cc5c6f0 100644 --- a/build/Makefile +++ b/build/Makefile @@ -6,7 +6,8 @@ ARM_BASE ?= arm-none-eabi ARM_CC ?= $(ARM_BASE)-gcc -ARM_CFLAGS ?= -mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra $(addprefix -I, $(dirs)) +ARM_CFLAGS ?= -mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall \ + -Wextra $(addprefix -I, $(dirs)) ARM_AS ?= $(ARM_BASE)-as @@ -14,7 +15,9 @@ ARM_OBJCOPY ?= $(ARM_BASE)-objcopy ARM_ELFFLAGS ?= -nostdlib -lgcc -KERNEL_STAGE2_OBJECTS := setup.o interrupt_vector.o interrupts.o uart.o demo_functionality.o paging.o ramfs_embeddable.o ramfs.o strings.o io.o atags.o scheduler.o +KERNEL_STAGE2_OBJECTS := setup.o interrupt_vector.o interrupts.o \ + uart.o demo_functionality.o paging.o ramfs_embeddable.o \ + ramfs.o strings.o io.o atags.o scheduler.o PL_0_TEST_OBJECTS := PL0_utils.o svc.o PL0_test.o strings.o io.o @@ -70,10 +73,12 @@ qemu-bin : kernel.img qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $^ qemu-loader : loader.img kernel.img pipe_image - ./pipe_image --stdout | qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $< + ./pipe_image --stdout | \ + qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $< run-on-rpi : kernel.img pipe_image - ./pipe_image --stdout | sudo socat FILE:/dev/ttyUSB0,b115200,raw - + ./pipe_image --stdout | \ + sudo socat FILE:/dev/ttyUSB0,b115200,raw - screen /dev/ttyUSB0 115200,cs8,-parenb,-cstopb,-hupcl pipe_image : pipe_image.o rs232.o |