aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2020-01-13 15:27:41 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2020-01-13 15:27:41 +0100
commit94e489766cc5f3d4bf83618313049a75102e43cf (patch)
tree33ded2aa82be99b5d006931b7b957a94fdca44f8 /build
parent1c1236edda92c101a69bd875f56955d213b91bfa (diff)
downloadrpi-MMU-example-94e489766cc5f3d4bf83618313049a75102e43cf.tar.gz
rpi-MMU-example-94e489766cc5f3d4bf83618313049a75102e43cf.zip
minor line moved
Diffstat (limited to 'build')
-rw-r--r--build/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/Makefile b/build/Makefile
index cc5c6f0..cd15ccc 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -25,8 +25,6 @@ LOADER_STAGE2_OBJECTS := uart.o strings.o io.o loader_stage2.o
RAMFS_FILES := PL0_test.img
-all : kernel.img
-
empty:=
space:= $(empty) $(empty)
@@ -36,6 +34,8 @@ vpath %.S $(dirs_colon)
vpath %.c $(dirs_colon)
vpath %.ld $(dirs_colon)
+all : kernel.img
+
%.o : %.c
$(if $(findstring /arm/,$<),\
$(ARM_CC) $(ARM_CFLAGS),$(HOST_CC) $(HOST_CFLAGS)) -c $< -o $@