Blob
1 ARCH = aarch642 TARGET = ${ARCH}-none-elf3 BOARD ?=qemu_virt5 BIN = /usr/local/bin/7 AS = ${BIN}clang8 ASFLAGS = -target ${TARGET}9 ASFILES = boot.o11 CXX = ${BIN}clang++12 CXXFLAGS = -target ${TARGET} -Wall -Wextra -nostdlib -fno-exceptions13 CXXFLAGS += -ffreestanding -mgeneral-regs-only14 CXXFLAGS += -Iinclude15 CXXFILES = kernel.cc uart_${BOARD}.cc17 OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o}18 LD = ${BIN}ld.lld20 .PHONY: clean22 all: squat.img24 squat.img: squat.elf25 llvm-objcopy squat.elf -O binary squat.img27 squat.elf: linker.ld ${OBJS}28 ${LD} -T linker.ld -o squat.elf ${OBJS}30 .S.o:31 ${AS} ${ASFLAGS} -c boot.S -o boot.o33 clean:34 rm -rf *.o squat.elf squat.img