Makefile: remove unnecessary prints

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-11 23:13:21 -04:00
commit e85ba55593
2 changed files with 28 additions and 6 deletions

View file

@ -79,13 +79,11 @@ export INITRAMFS
export MODULE_CFLAGS
PHONY: default
default:
$(Q)compiledb -n $(MAKE) --no-print-directory $(KERNEL)
$(Q)compiledb -n $(MAKE) -C usr.bin
$(Q)$(MAKE) --no-print-directory $(KERNEL)
default: $(KERNEL)
$(Q)+$(MAKE) --no-print-directory -f scripts/Makefile.build _modules obj=.
.PHONY: all
all: $(KERNEL)
all: $(KERNEL) modules
$(Q)compiledb -n $(MAKE) --no-print-directory
.PHONY: __build_all
@ -103,6 +101,25 @@ $(KERNEL): $(KOBJ) linker.ld
modules:
$(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build _modules obj=.
.PHONY: modules_install
modules_install: modules
$(Q)echo " INSTALL modules"
$(Q)mkdir -p initramfs/modules
$(Q)for ko in $$(find . -path ./initramfs -prune -o -name '*.ko' -print); do \
cp "$$ko" initramfs/modules/; \
done
$(Q)echo -n > initramfs/modules/modules.alias
$(Q)for ko in initramfs/modules/*.ko; do \
[ -f "$$ko" ] || continue; \
readelf -p .modinfo "$$ko" 2>/dev/null | \
sed -n 's/^\s*\[.*\]\s*//p' | \
while IFS= read -r line; do \
case "$$line" in alias=*) \
echo "$${line#alias=} $$ko" >> initramfs/modules/modules.alias ;; \
esac; \
done; \
done
.PHONY: clean
clean:
$(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build _clean obj=.