aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2019-10-15 17:33:12 +0200
committervetch <vetch97@gmail.com>2019-10-15 17:33:12 +0200
commit2632ef73aa04a6b08f4b4061effd2d4390c77b83 (patch)
tree2a84e945b79d48ddf113f9aa4936c5c186528bfd /Makefile
parent29f996e03b36f6cd390d99ff260ab251e19a6e69 (diff)
downloadrpi-MMU-example-2632ef73aa04a6b08f4b4061effd2d4390c77b83.tar.gz
rpi-MMU-example-2632ef73aa04a6b08f4b4061effd2d4390c77b83.zip
test size, write by rs232 lib
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index adb74d0..b05600f 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ loader_stage2.elf : loader_stage2.o uart.o
loader_stage2.img : loader_stage2.elf
arm-none-eabi-objcopy $^ -O binary $@
+ test -n "$$(find $@ -size -16384c)" || exit -1
loader_stage2_embeddable.o : loader_stage2.img
arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata $^ $@
@@ -49,7 +50,7 @@ qemu-bin : loader.img kernel7.img pipe_image
qemu-loader : loader.img
qemu-system-arm -m 256 -M raspi2 -serial stdio -kernel $^
-pipe_image : pipe_image.c
+pipe_image : pipe_image.c RS-232/rs232.c
gcc -Wall -std=gnu99 -O3 $^ -o $@
clean :