1. 03 10月, 2013 1 次提交
    • R
      arm, kbuild: make "make install" not depend on vmlinux · 19514fc6
      Robert Richter 提交于
      Install targets (install, zinstall, uinstall) on arm have a dependency
      to vmlinux. This may cause parts of the kernel to be rebuilt during
      installation. We must avoid this since this may run as root. Install
      targets "ABSOLUTELY MUST NOT MODIFY THE SOURCE TREE." as Linus
      emphasized this in:
      
       http://lkml.org/lkml/2013/7/10/600
      
      So on arm and maybe other archs we need the same as for x86:
      
       1648e4f8 x86, kbuild: make "make install" not depend on vmlinux
      
      This patch fixes this for arm. Dependencies are removed and instead a
      check to install.sh is added for the files that are needed.
      
      This issue was uncovered by this build error where the -j option is
      used in conjunction with install targets:
      
       $ make <makeflags>
       $ make <makeflags> zinstall
       ...
         DEPMOD
       Usage: .../scripts/depmod.sh /sbin/depmod <kernelrelease>
      
      (INSTALL_MOD_PATH and INSTALL_PATH variables set, so no root perms
      required in this case.)
      
      The problem is that zinstall on arm due to its dependency to vmlinux
      does a prepare/prepare3 and finally does a forced rewrite of
      kernel.release even if it exists already.
      
      Rebuilding kernel.release removes it first and then recreates it. This
      might race with another parallel make job running depmod.
      
      So this patch should fix this one too.
      
      Also quoting $(KERNELRELEASE) arg for install.sh as this messes
      argument order in case it is empty (which is the case if the kernel
      was not built yet).
      Signed-off-by: NRobert Richter <robert.richter@linaro.org>
      Signed-off-by: NRobert Richter <rric@kernel.org>
      Acked-by: Michal Marek <mmarek@suse.cz>.
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      19514fc6
  2. 20 9月, 2009 1 次提交
    • S
      kbuild: use INSTALLKERNEL to select customized installkernel script · caa27b66
      Sam Ravnborg 提交于
      Replace the use of CROSS_COMPILE to select a customized
      installkernel script with the possibility to set INSTALLKERNEL
      to select a custom installkernel script when running make:
      
          make INSTALLKERNEL=arm-installkernel install
      
      With this patch we are now more consistent across
      different architectures - they did not all support use
      of CROSS_COMPILE.
      
      The use of CROSS_COMPILE was a hack as this really belongs
      to gcc/binutils and the installkernel script does not change
      just because we change toolchain.
      
      The use of CROSS_COMPILE caused troubles with an upcoming patch
      that saves CROSS_COMPILE when a kernel is built - it would no
      longer be installable.
      [Thanks to Peter Z. for this hint]
      
      This patch undos what Ian did in commit:
      
        0f8e2d62
        ("use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh")
      
      The patch has been lightly tested on x86 only - but all changes
      looks obvious.
      Acked-by: NPeter Zijlstra <peterz@infradead.org>
      Acked-by: Mike Frysinger <vapier@gentoo.org> [blackfin]
      Acked-by: Russell King <linux@arm.linux.org.uk> [arm]
      Acked-by: Paul Mundt <lethal@linux-sh.org> [sh]
      Acked-by: "H. Peter Anvin" <hpa@zytor.com> [x86]
      Cc: Ian Campbell <icampbell@arcom.com>
      Cc: Tony Luck <tony.luck@intel.com> [ia64]
      Cc: Fenghua Yu <fenghua.yu@intel.com> [ia64]
      Cc: Hirokazu Takata <takata@linux-m32r.org> [m32r]
      Cc: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
      Cc: Kyle McMartin <kyle@mcmartin.ca> [parisc]
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> [powerpc]
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> [s390]
      Cc: Thomas Gleixner <tglx@linutronix.de> [x86]
      Cc: Ingo Molnar <mingo@redhat.com> [x86]
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      caa27b66
  3. 24 6月, 2005 1 次提交
    • I
      [PATCH] use ${CROSS_COMPILE}installkernel in arch/*/boot/install.sh · 0f8e2d62
      Ian Campbell 提交于
      The attached patch causes the various arch specific install.sh scripts to
      look for ${CROSS_COMPILE}installkernel rather than just installkernel (in
      both /sbin/ and ~/bin/ where the script already did this).  This allows you
      to have e.g.  arm-linux-installkernel as a handy way to install on your
      cross target.  It also prevents the script picking up on the host
      /sbin/installkernel which causes the script to fall through and do the
      install itself (which is what I actually use myself, with $INSTALL_PATH
      set).
      
      I don't believe it causes back-compatibility problems since calling the
      host installkernel was never likely to work or be what you wanted when
      cross compiling anyway.  If $CROSS_COMPILE isn't set then nothing changes.
      
      I only use ARM and i386 myself but I figured it couldn't hurt to do the
      whole lot.  I've cc'd those who I hope are the arch maintainers for files
      that I've touched.
      Signed-off-by: NIan Campbell <icampbell@arcom.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0f8e2d62
  4. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4