aboutsummaryrefslogtreecommitdiff
path: root/build/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/Makefile')
-rw-r--r--build/Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/build/Makefile b/build/Makefile
index 53f8c98..bf87620 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -1,6 +1,4 @@
-HOST_CC ?= gcc
-
-HOST_CFLAGS ?= -Wall -std=gnu99 -I../src/lib/rs232 -O3
+CFLAGS ?= -Wall -std=gnu99 -O2
ARM_BASE ?= arm-none-eabi
@@ -77,13 +75,6 @@ ramfs.img : makefs $(RAMFS_FILES)
./makefs $(RAMFS_FILES) > $@
-pipe_image : pipe_image.o rs232.o
- $(HOST_CC) $^ -o $@
-
-makefs : makefs.o
- $(HOST_CC) $^ -o $@
-
-
qemu-elf : kernel.elf
qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $^
@@ -91,11 +82,11 @@ 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 | \
+ ./pipe_image | \
qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $<
run-on-rpi : kernel.img pipe_image
- ./pipe_image --stdout | \
+ ./pipe_image | \
sudo socat FILE:/dev/ttyUSB0,b115200,raw -
sudo screen /dev/ttyUSB0 115200,cs8,-parenb,-cstopb,-hupcl