aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-24 11:44:20 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-24 11:44:20 +0100
commit8dc2c16040c21319a36beaaf67378950899bc93d (patch)
treebad01ef5a4fb7cb1ba8e4874b0f26fa2950c751e /build
parentf9435ea17e8d5143651da9e0f530a77f36aa7ebb (diff)
downloadrpi-MMU-example-master.tar.gz
rpi-MMU-example-master.zip
remove librs232HEADmaster
Diffstat (limited to 'build')
-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