aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-08-26 10:34:20 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-24 22:40:31 +0200
commit052f73e4e5c7f6266bf80f392ac593046e2d8d2c (patch)
tree1317d3e7297f3df7339e0f775b2213de240d0863 /Makefile
parent4038ec5662a5b1ebe652e9170069e3f2f79c7e71 (diff)
downloadfbos-052f73e4e5c7f6266bf80f392ac593046e2d8d2c.tar.gz
fbos-052f73e4e5c7f6266bf80f392ac593046e2d8d2c.zip
Add CI job
This will ensure that the code style is preserved and that commits being pushed at least build successfully. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f969a1c..611ee48 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,8 @@ endif
# I did not go too much into the rabbit hole of platform-specific flags. Hence
# no `-mcpu`, no `-mtune`, no funny business.
-CC = $(CROSS_COMPILE)gcc
-LD = $(CROSS_COMPILE)ld
+CC = $(CROSS_COMPILE)gcc$(CC_SUFFIX)
+LD = $(CROSS_COMPILE)ld
QEMU ?= qemu-system-riscv64
ISA ?= rv64imafdc_zicntr_zicsr_zifencei_zihpm_zca_zcd_zba_zbb
@@ -88,3 +88,7 @@ gdb:
.PHONY: clean
clean:
$(Q) rm -f $(OBJ) $(KRNL) $(LINKER)
+
+.PHONY: lint
+lint:
+ $(Q) git ls-files *.c *.h | xargs clang-format --dry-run --Werror