aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoffer Dall <cdall@cs.columbia.edu>2011-05-05 00:55:04 +0200
committerChristoffer Dall <cdall@cs.columbia.edu>2011-05-05 00:55:04 +0200
commit224f381d00cc19e7f999a0f9018856a8d2bae988 (patch)
treec0829202f90d66d3ae1d541bedf5d99d40482ddc
parentdd754be958f3da4908ad0e89d1a6b863024964bf (diff)
Make variable for kernel source location
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1306c66..784f8cd 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ CPPFLAGS += -DVEXPRESS
MONITOR = monitor.S
BOOTLOADER = boot.S
+KERNEL_SRC = ../linux-kvm-arm
KERNEL = uImage
FILESYSTEM = filesystem.cpio.gz
@@ -35,8 +36,8 @@ clean:
rm -f $(IMAGE) boot.o model.lds monitor.o uImage
$(KERNEL): ../linux-kvm-arm/arch/arm/boot/zImage
- cd ../linux-kvm-arm; make -j4 uImage
- cp ../linux-kvm-arm/arch/arm/boot/uImage $(KERNEL)
+ cd $(KERNEL_SRC); make -j4 uImage
+ cp $(KERNEL_SRC)/arch/arm/boot/uImage $(KERNEL)
$(IMAGE): boot.o monitor.o model.lds $(KERNEL) $(FILESYSTEM) Makefile
$(LD) -o $@ --script=model.lds