X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=kernel%2Farch%2Fx86%2FMakefile.final;h=93aa5ed440443a7f4dd418cc7da6debe44e75e59;hp=090c11d9ba638bda89810275de418ad54d5340a7;hb=cbc65abe11c50aed3d5e7be7d1e736d5ced4f4e8;hpb=139f54779f6395a1828261423cd8013ca940ff36 diff --git a/kernel/arch/x86/Makefile.final b/kernel/arch/x86/Makefile.final index 090c11d..93aa5ed 100644 --- a/kernel/arch/x86/Makefile.final +++ b/kernel/arch/x86/Makefile.final @@ -2,8 +2,9 @@ DIR := arch/x86/ $(BUILDDIR)/kernel: $(OBJS) $(LIBS) $(DIR)linker-script @echo $(COMP): Linking kernel: $@ - @$(MKDIR) $(dir $@) - @$(CXX) $(OBJS) $(LIBS) -lgcc -lsupc++ -nostdlib -o "$@" -Wl,-T$(DIR)linker-script + $(V)$(MKDIR) $(dir $@) + $(V)$(CXX) $(LDFLAGS) $(OBJS) $(LIBS) -lgcc -lsupc++ \ + -nostdlib -o "$@" -Wl,-T$(DIR)linker-script # GRUB refuses to use the addresses in the multiboot header if it # finds a valid ELF header, so the dd hacks a zero into the high byte @@ -14,6 +15,6 @@ $(BUILDDIR)/kernel: $(OBJS) $(LIBS) $(DIR)linker-script $(BUILDDIR)/kernel.stripped: $(BUILDDIR)/kernel @echo $(COMP): Stripping kernel: $@ - @$(STRIP) $(BUILDDIR)/kernel -o "$@" - @dd if=/dev/zero of=$(BUILDDIR)/kernel.stripped conv=notrunc \ - bs=1 count=1 seek=67 + $(V)$(STRIP) $(BUILDDIR)/kernel -o "$@" + $(V)dd if=/dev/zero of=$(BUILDDIR)/kernel.stripped conv=notrunc \ + bs=1 count=1 seek=67