summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-10-07 20:37:48 +0000
committerJoursoir <chat@joursoir.net>2021-10-07 20:37:48 +0000
commit1312235319486dbc00eafba2e4b4d18ddc9bfa24 (patch)
tree271c7c95d3e1a32a7f50527acfcf7f43dddcee57
parent2a6743666345e6a9d4452533efdc75ba143d0869 (diff)
downloadmfsos-1312235319486dbc00eafba2e4b4d18ddc9bfa24.tar.gz
mfsos-1312235319486dbc00eafba2e4b4d18ddc9bfa24.tar.bz2
mfsos-1312235319486dbc00eafba2e4b4d18ddc9bfa24.zip
make: print a size of the compiled kernel
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 75a159a..bd50bdd 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,7 @@ $(KERNBIN): $(ARCH_BOOT)/head.o $(OBJECTS)
$(CC) -Wl,--oformat binary -Ttext 0x1000 -o $@ \
-ffreestanding -nostdlib \
$^ -lgcc
+ printf "Kernel size: 0x%x\n" `stat -c "%s" $@`
%.o: %.s
$(AS) $< -o $@