Commit Diff


commit - 8607cffe4e9a907487ad3eef6aa205341fa1a7d6
commit + 620d1d531d59df70378dd7263bd87280c3a73cb9
blob - 43c4bd8429cbae10f4eb2ca7bea4c34774aecf7c
blob + 67f1d76e8ad6a249e4f884caf869a7809509da93
--- .gitignore
+++ .gitignore
@@ -1,3 +1,4 @@
 **/*.o
 squat.elf
 squat.img
+local.mk
blob - 99e101c743e11449079a4ce05b4f19a5025f8839
blob + 39391afaca664e8eedac367ca940cf0607ac38a0
--- Makefile
+++ Makefile
@@ -1,9 +1,11 @@
+-include	local.mk
+BOARD       ?=qemu_virt
+BIN			?=/usr/local/bin/
+OBJCOPY		?=llvm-objcopy
+
 ARCH		= aarch64
 TARGET		= ${ARCH}-none-elf
-BOARD       ?=qemu_virt
 
-BIN			= /usr/local/bin/
-
 AS			= ${BIN}clang
 ASFLAGS		= -target ${TARGET}
 ASFILES		= boot.o
@@ -22,7 +24,7 @@ LD			= ${BIN}ld.lld
 all: squat.img
 
 squat.img: squat.elf
-	llvm-objcopy squat.elf -O binary squat.img
+	${OBJCOPY} squat.elf -O binary squat.img
 
 squat.elf: linker.ld ${OBJS}
 	${LD} -T linker.ld -o squat.elf ${OBJS}