1. 09 Jun, 2002 4 commits
    • Kai Germaschewski's avatar
      kbuild: Rearrange Rules.make · 7a3b08a2
      Kai Germaschewski authored
      This patch doesn't change anything but the order (and some comments) in
      Rules.make. The reason for that is that we use Rules.make for three
      different purposes, fastdep, modules_install and the actual building.
      
      As an example, we don't need all the dependencies and saved command lines
      when installing modules, so it'll speed up this pass to only include the
      rules which will actually get used.
      7a3b08a2
    • Kai Germaschewski's avatar
      kbuild: Generate dependencies for all targets · e5f9911d
      Kai Germaschewski authored
      So far, we had been lazy and not generated dependencies for 
      debugging-only targets, like some/dir/foo.[is]. It actually
      cleans up Rules.make to handle them by the same mechanism, though.
      
      Additionally, make use of $(call if_changed) and $(call if_changed_dep)
      more consistent, the only difference now is post-processing of
      gcc -MD output, which is done for if_changed_dep but not for if_changed.
      e5f9911d
    • Kai Germaschewski's avatar
      kbuild: Pass <target> to fixdep · 33ec0479
      Kai Germaschewski authored
      cpp -MD guesses the target name from the source file name, but not
      always correctly, e.g. when compiling fixdep, it generates prequisites
      for fixdep.o instead of fixdep.
       
      fixdep now fixes up the -MD generated output to contain the right target,
      which is the one we pass on the command line.
      33ec0479
    • Kai Germaschewski's avatar
      kbuild: Small fixes · ea253a53
      Kai Germaschewski authored
      o When using "make -j<n>", the order in modversions.h could change,
        thus causing unnecessary rebuilds.
      o Move a comment in Rules.make which I forgot when I moved the
        associated code.
      o When descending into init/ during the final vmlinux link,
        add a '+' do tell make to use its normal "-j" jobserver handling.
      o It'd be nice to get the logic between make clean and make mrproper
        clearer. I think make clean should remove all targets used in the
        actual build,
        make mrproper should remove the rest, build-specific files, like
        e.g. the .*.cmd files used to save dependencies and command lines
        and other temporary files.
        A real small step in the direction: Remove .tmpversion/.tmp-export-objs
        at mrproper time.
      ea253a53
  2. 08 Jun, 2002 30 commits
  3. 07 Jun, 2002 6 commits