1 ec901abe 2023-02-20 continue AS = clang
2 ec901abe 2023-02-20 continue CXX = clang++
3 ec901abe 2023-02-20 continue LD = ld.lld
4 4eb324fc 2023-02-20 continue OBJCOPY = llvm-objcopy
5 056ad79b 2024-03-19 continue OBJDUMP = llvm-objdump
7 f56312c5 2023-02-14 continue ARCH = aarch64
8 f56312c5 2023-02-14 continue TARGET = ${ARCH}-none-elf
9 10d59256 2024-03-13 continue -include config.mk
10 10d59256 2024-03-13 continue #BOARD ?= virt
11 249aeb61 2024-03-14 continue BOARD ?= a64
13 f56312c5 2023-02-14 continue ASFLAGS = -target ${TARGET}
14 10d59256 2024-03-13 continue ASFILES += boot.S
16 10d59256 2024-03-13 continue CXXFLAGS += -target ${TARGET}
17 621c3fa7 2023-03-02 continue CXXFLAGS +=-Wall -Wextra -Werror
18 621c3fa7 2023-03-02 continue CXXFLAGS +=-nostdlib -fno-exceptions -std=c++11
19 ec901abe 2023-02-20 continue CXXFLAGS +=-ffreestanding -mgeneral-regs-only
20 621c3fa7 2023-03-02 continue CXXFLAGS +=-Iinclude
21 10d59256 2024-03-13 continue CXXFILES += kernel.cc uart_${BOARD}.cc
23 ec901abe 2023-02-20 continue OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o}
26 056ad79b 2024-03-19 continue .PHONY: all clean disassemble tools
28 bb583ea6 2024-03-14 continue all: squat-${BOARD}.img tools
30 10d59256 2024-03-13 continue squat-${BOARD}.img: squat-${BOARD}.elf
31 10d59256 2024-03-13 continue ${OBJCOPY} squat-${BOARD}.elf -O binary squat-${BOARD}.img
33 10d59256 2024-03-13 continue squat-${BOARD}.elf: linker.ld ${OBJS}
34 10d59256 2024-03-13 continue ${LD} -T linker.ld -o squat-${BOARD}.elf ${OBJS}
37 f7e75ee1 2023-03-03 continue ${AS} ${ASFLAGS} -c $< -o $@
40 10d59256 2024-03-13 continue rm -rf *.o squat-*.elf squat-*.img
41 2dc7cc54 2024-03-06 continue ${MAKE} -C tools/img_eGON.BT0 clean
43 056ad79b 2024-03-19 continue disassemble: squat-${BOARD}.elf
44 056ad79b 2024-03-19 continue ${OBJDUMP} -d squat-${BOARD}.elf
47 2dc7cc54 2024-03-06 continue ${MAKE} -C tools/img_eGON.BT0 img_eGON.BT0