Blame


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
6 620d1d53 2023-02-20 continue
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
12 f56312c5 2023-02-14 continue
13 f56312c5 2023-02-14 continue ASFLAGS = -target ${TARGET}
14 10d59256 2024-03-13 continue ASFILES += boot.S
15 f56312c5 2023-02-14 continue
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
22 f56312c5 2023-02-14 continue
23 ec901abe 2023-02-20 continue OBJS = ${ASFILES:.S=.o} ${CXXFILES:.cc=.o}
24 98601545 2023-02-18 continue
25 f7e75ee1 2023-03-03 continue
26 056ad79b 2024-03-19 continue .PHONY: all clean disassemble tools
27 f56312c5 2023-02-14 continue
28 bb583ea6 2024-03-14 continue all: squat-${BOARD}.img tools
29 f56312c5 2023-02-14 continue
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
32 f56312c5 2023-02-14 continue
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}
35 98601545 2023-02-18 continue
36 f56312c5 2023-02-14 continue .S.o:
37 f7e75ee1 2023-03-03 continue ${AS} ${ASFLAGS} -c $< -o $@
38 98601545 2023-02-18 continue
39 98601545 2023-02-18 continue clean:
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
42 6efd408f 2023-03-01 continue
43 056ad79b 2024-03-19 continue disassemble: squat-${BOARD}.elf
44 056ad79b 2024-03-19 continue ${OBJDUMP} -d squat-${BOARD}.elf
45 056ad79b 2024-03-19 continue
46 2dc7cc54 2024-03-06 continue tools:
47 2dc7cc54 2024-03-06 continue ${MAKE} -C tools/img_eGON.BT0 img_eGON.BT0