diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 03:07:25 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 03:07:25 +0800 |
| commit | 9b141251ebfc6ea4dfd9f6be99bbbaa473c79e2c (patch) | |
| tree | 938f57eec1f84eff52e10308ba852d4b1472e1be /mubios | |
| parent | 2c0a717678232438536d0f9238e38e56e440d516 (diff) | |
| download | rcc-project-9b141251ebfc6ea4dfd9f6be99bbbaa473c79e2c.tar.gz rcc-project-9b141251ebfc6ea4dfd9f6be99bbbaa473c79e2c.tar.xz | |
[mubios] Add Clangd Support
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios')
| -rw-r--r-- | mubios/.gitignore | 1 | ||||
| -rw-r--r-- | mubios/Makefile | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/mubios/.gitignore b/mubios/.gitignore index 2a594d5..94f9ee7 100644 --- a/mubios/.gitignore +++ b/mubios/.gitignore @@ -1,2 +1,3 @@ *.qcow2 build* +compile_commands.json diff --git a/mubios/Makefile b/mubios/Makefile index bd5a934..18f7947 100644 --- a/mubios/Makefile +++ b/mubios/Makefile @@ -38,7 +38,7 @@ S_SRCS := $(wildcard arch/*.S) OBJS := $(patsubst %.c,$(BUILD_DIR)/%.o,$(C_SRCS)) \ $(patsubst %.S,$(BUILD_DIR)/%.o,$(S_SRCS)) -.PHONY: all elf rom format +.PHONY: all elf rom format compile_commands all: $(ROM) @@ -49,6 +49,9 @@ rom: $(ROM) format: clang-format -i $(C_SRCS) $(wildcard include/*.h) +compile_commands: + bear --output compile_commands.json -- make -B + $(ELF): $(OBJS) linker.ld @mkdir -p $(dir $@) $(LD) $(LDFLAGS) -o $@ $(OBJS) |
