aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2ef48d5..bb8d06e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu99 -Wall -Wextra -I.
+CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra -I.
ELFFLAGS=-ffreestanding -O2 -nostdlib -lgcc -I.
@@ -45,10 +45,10 @@ qemu-elf : kernel.elf
qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $^
qemu-bin : loader.elf kernel7.img pipe_image
- ./pipe_image && 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 : kernel7.img pipe_image
- ./pipe_image | socat FILE:/dev/ttyUSB0,b115200,raw -
+ ./pipe_image --stdout | socat FILE:/dev/ttyUSB0,b115200,raw -
sleep 1
screen /dev/ttyUSB0 115200,cs8,-parenb,-cstopb,-hupcl