Skip to content
Commits on May 27, 2010
  1. @torvalds

    initramfs: add support for in-kernel initramfs compressed with LZO

    Albin Tonnerre committed with torvalds May 26, 2010
    Add the necessary parts to be enable the use of LZO-compressed initramfs
    build into the kernel.
    
    Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Michal Marek <mmarek@suse.cz>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Jan 11, 2010
  1. @torvalds

    Add LZO compression support for initramfs and old-style initrd

    Albin Tonnerre committed with torvalds Jan 8, 2010
    Signed-off-by: Albin Tonnerre <albin.tonnerre@free-electrons.com>
    Tested-by: Wu Zhangjin <wuzhangjin@gmail.com>
    Acked-by: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Tested-by: Russell King <rmk@arm.linux.org.uk>
    Acked-by: Russell King <rmk@arm.linux.org.uk>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Dec 12, 2009
  1. @vapier @michal42

    gen_init_cpio: fixed fwrite warning

    vapier committed with michal42 Dec 9, 2009
    On compilers with security warnings enabled by default, we get:
    
    usr/gen_init_cpio.c: In function ‘cpio_mkfile’:
    usr/gen_init_cpio.c:357: warning: ignoring return value of ‘fwrite’,
                                      declared with attribute warn_unused_result
    
    So check the return value and handle errors accordingly.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
Commits on Sep 23, 2009
  1. @torvalds

    Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next

    torvalds committed Sep 23, 2009
    * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (30 commits)
      Use macros for .data.page_aligned section.
      Use macros for .bss.page_aligned section.
      Use new __init_task_data macro in arch init_task.c files.
      kbuild: Don't define ALIGN and ENTRY when preprocessing linker scripts.
      arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0
      kbuild: add static to prototypes
      kbuild: fail build if recordmcount.pl fails
      kbuild: set -fconserve-stack option for gcc 4.5
      kbuild: echo the record_mcount command
      gconfig: disable "typeahead find" search in treeviews
      kbuild: fix cc1 options check to ensure we do not use -fPIC when compiling
      checkincludes.pl: add option to remove duplicates in place
      markup_oops: use modinfo to avoid confusion with underscored module names
      checkincludes.pl: provide usage helper
      checkincludes.pl: close file as soon as we're done with it
      ctags: usability fix
      kernel hacking: move STRIP_ASM_SYMS from General
      gitignore usr/initramfs_data.cpio.bz2 and usr/initramfs_data.cpio.lzma
      kbuild: Check if linker supports the -X option
      kbuild: introduce ld-option
      ...
    
    Fix trivial conflict in scripts/basic/fixdep.c
  2. @torvalds

    Fix all -Wmissing-prototypes warnings in x86 defconfig

    Trevor Keith committed with torvalds Sep 22, 2009
    Signed-off-by: Trevor Keith <tsrk@tsrk.net>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Sep 20, 2009
  1. gitignore usr/initramfs_data.cpio.bz2 and usr/initramfs_data.cpio.lzma

    Jaswinder Singh Rajput committed with Sam Ravnborg Sep 18, 2009
    usr/initramfs_data.cpio.bz2 and usr/initramfs_data.cpio.lzma are binary
    files should be ignored
    
    Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  2. @rpjday

    kbuild: correct initramfs compression comment

    rpjday committed with Sam Ravnborg Jul 5, 2009
    Fix the Makefile comment since bzip2 is now supported.
    
    Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Apr 1, 2009
  1. bzip2/lzma: quiet Kconfig warning for INITRAMFS_COMPRESSION_NONE

    H. Peter Anvin committed Mar 31, 2009
    Impact: quiet Kconfig warning
    
    It appears that Kconfig simply has no way to provide defaults for
    entries that exist inside a conditionalized choice block.
    Fortunately, it turns out we don't actually ever use
    CONFIG_INITRAMFS_COMPRESSION_NONE, so we can just drop it for
    everything outside the choice block.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Commits on Mar 29, 2009
  1. bzip2/lzma: don't ask for compression mode for the default initramfs

    H. Peter Anvin committed Mar 28, 2009
    Impact: Kconfig noise reduction, documentation
    
    The default initramfs is so small that it makes no sense to worry
    about the additional memory taken by not double-compressing it.
    Therefore, don't bug the user with it.
    
    Also, improve the description of the option, which was downright
    incorrect.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Commits on Mar 28, 2009
  1. bzip2/lzma: consistently capitalize LZMA in Kconfig

    H. Peter Anvin committed Mar 28, 2009
    Impact: message formatting
    
    Consistently spell LZMA in all capitals, since it (unlike gzip or
    bzip2) is an acronym.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  2. bzip2/lzma: clarify the meaning of the CONFIG_RD_ options

    H. Peter Anvin committed Mar 28, 2009
    Impact: Kconfig clarification
    
    Make it clear that the CONFIG_RD_* options are about what formats are
    supported, not about what formats are actually being used.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  3. bzip2/lzma: move CONFIG_RD_* options under CONFIG_EMBEDDED

    H. Peter Anvin committed Mar 28, 2009
    Impact: reduce Kconfig noise
    
    Move the options that control possible initramfs/initrd compressions
    underneath CONFIG_EMBEDDED.  The only impact of leaving these options
    set to y is additional code in the init section of the kernel; there
    is no reason to burden non-embedded users with these options.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Commits on Feb 19, 2009
  1. bzip2/lzma: make internal initramfs compression configurable

    Alain Knaff committed with H. Peter Anvin Feb 19, 2009
    Impact: Avoids silent environment dependency
    
    Make builtin initramfs compression an explicit configurable.  The
    previous version would pick a compression based on the binaries which
    were installed on the system, which could lead to unexpected results.
    It is now explicitly configured, and not having the appropriate
    binaries installed on the build host is simply an error.
    
    Signed-off-by: Alain Knaff <alain@knaff.lu>
    Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Commits on Jan 7, 2009
  1. bzip2/lzma: fix built-in initramfs vs CONFIG_RD_GZIP

    Alain Knaff committed with H. Peter Anvin Jan 7, 2009
    Impact: Resolves build failures in some configurations
    
    Makes it possible to disable CONFIG_RD_GZIP . In that case, the
    built-in initramfs will be compressed by whatever compressor is
    available (bzip2 or lzma) or left uncompressed if none is available.
    
    It also removes a couple of warnings which occur when no ramdisk
    compression at all is chosen.
    
    It also restores the select ZLIB_INFLATE in drivers/block/Kconfig
    which somehow came missing. This is needed to activate compilation of
    the stuff in zlib_deflate.
    
    Signed-off-by: Alain Knaff <alain@knaff.lu>
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  2. bzip2/lzma: move initrd/ramfs options out of BLK_DEV

    H. Peter Anvin committed Jan 7, 2009
    Impact: Partial resolution of build failure
    
    Move the initrd/initramfs configuration options from
    drivers/block/Kconfig to usr/Kconfig, since they do not and should not
    depend on CONFIG_BLK_DEV.  This fixes builds when CONFIG_BLK_DEV=n.
    
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Commits on Dec 3, 2008
  1. kbuild: gen_init_cpio expands shell variables in file names

    Sally, Gene committed with Sam Ravnborg Oct 29, 2008
    Modify gen_init_cpio so that lines that specify files can contain
    what looks like a shell variable that's expanded during processing.
    
    For example:
    
       file /sbin/kinit ${RFS_BASE}/usr/src/klibc/kinit/kinit 0755 0 0
    
    given RFS_BASE is "/some/directory" in the environment
    
    would be expanded to
    
       file /sbin/kinit /some/directory/usr/src/klibc/kinit/kinit 0755 0 0
    
    If several environment variables appear in a line, they are all expanded
    with processing happening from left to right.
    Undefined variables expand to a null string.
    Syntax errors stop processing, letting the existing error handling
    show the user offending line.
    
    This patch helps embedded folks who frequently create several
    RFS directories and then switch between them as they're tuning
    an initramfs.
    
    Signed-off-by: gene.sally@timesys.com
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Jul 16, 2007
  1. @vapier

    kbuild: add support for reading stdin with gen_init_cpio

    vapier committed with Sam Ravnborg May 10, 2007
    Treat an argument of "-" as meaning "read stdin for cpio files" so
    gen_init_cpio can be piped into.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  2. .gitignore update

    Alexey Dobriyan committed with Linus Torvalds Jul 15, 2007
    headers_install by default puts headers into usr/include/ .
    They're auto-generated, so should be ignored.
    
    Same for *.orig, *.rej .
    
    Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on May 2, 2007
  1. usr/Kconfig: fix typo

    Alexander E. Patrakov committed with Sam Ravnborg Mar 16, 2007
    Signed-off-by: Alexander E. Patrakov
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Feb 11, 2007
  1. [PATCH] usr/gen_init_cpio.c: support for hard links

    Luciano Rocha committed with Linus Torvalds Feb 10, 2007
    Extend usr/gen_init_cpio.c "file" entry, adding support for hard links.
    
    Previous format:
    file <name> <location> <mode> <uid> <gid>
    
    New format:
    file <name> <location> <mode> <uid> <gid> [<hard links>]
    
    The hard links specification is optional, keeping the previous
    behaviour.
    
    All hard links are defined sequentially in the resulting cpio and the
    file data is present only in the last link. This is the behaviour of
    GNU's cpio and is supported by the kernel initramfs extractor.
    
    Signed-off-by: Luciano Rocha <strange@nsk.no-ip.org>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  2. [PATCH] disable init/initramfs.c

    Jean-Paul Saman committed with Linus Torvalds Feb 10, 2007
    The file init/initramfs.c is always compiled and linked in the kernel
    vmlinux even when BLK_DEV_RAM and BLK_DEV_INITRD are disabled and the
    system isn't using any form of an initramfs or initrd.  In this situation
    the code is only used to unpack a (static) default initial rootfilesystem.
    The current init/initramfs.c code.  usr/initramfs_data.o compiles to a size
    of ~15 kbytes.  Disabling BLK_DEV_RAM and BLK_DEV_INTRD shrinks the kernel
    code size with ~60 Kbytes.
    
    This patch avoids compiling in the code and data for initramfs support if
    CONFIG_BLK_DEV_INITRD is not defined.  Instead of the initramfs code and
    data it uses a small routine in init/noinitramfs.c to setup an initial
    static default environment for mounting a rootfilesystem later on in the
    kernel initialisation process.  The new code is: 164 bytes of size.
    
    The patch is separated in two parts:
    1) doesn't compile initramfs code when CONFIG_BLK_DEV_INITRD is not set
    2) changing all plaforms vmlinux.lds.S files to not reserve an area of
    PAGE_SIZE when CONFIG_BLK_DEV_INITRD is not set.
    
    [deweerdt@free.fr: warning fix]
    Signed-off-by: Jean-Paul Saman <jean-paul.saman@nxp.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: <linux-arch@vger.kernel.org>
    Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Commits on Nov 25, 2006
  1. @hippo5329

    [PATCH] initramfs: handle more than one source dir or file list

    hippo5329 committed with Linus Torvalds Nov 25, 2006
    Fix bug 7401.
    
    Handle more than one source dir or file list to the initramfs gen scripts.
    
    The Kconfig help for INITRAMFS_SOURCE claims that you can specify multiple
    space-separated sources in order to allow unprivileged users to build an
    image.  There are two bugs in the current implementation that prevent this
    from working.
    
    First, we pass "file1 dir2" to the gen_initramfs_list.sh script, which it
    obviously can't open.
    
    Second, gen_initramfs_list.sh -l outputs multiple definitions for
    deps_initramfs -- one for each argument.
    
    Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Acked-by: Matthew Wilcox <matthew@wil.cx>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Sep 25, 2006
  1. kbuild: consistently decide when to rebuild a target

    Sam Ravnborg committed with Sam Ravnborg Jul 23, 2006
    Consistently decide when to rebuild a target across all of
    if_changed, if_changed_dep, if_changed_rule.
    PHONY targets are now treated alike (ignored) for all targets
    
    While add it make Kbuild.include almost readable by factoring out a few
    bits to some common variables and reuse this in Makefile.build.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Aug 7, 2006
  1. kbuild: do not try to build content of initramfs

    Sam Ravnborg committed Aug 7, 2006
    When a file supplied via CONFIG_INITRAMFS pointed to a file
    for which kbuild had a rule to compile it (foo.c => foo.o)
    then kbuild would compile the file before adding the
    file to the initramfs.
    
    Teach make that files included in initramfs shall not be updated by adding
    an 'empty command'. (See "Using Empty Commands" in info make).
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Jun 10, 2006
  1. kbuild: bugfix with initramfs

    Nickolay committed with Sam Ravnborg Jun 9, 2006
    This patch fix double inclusion of ramfs-input.
    
    Signed-off-by: Nickolay Vinogradov <nickolay@protei.ru>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Apr 19, 2006
  1. [PATCH] Fix potential NULL pointer deref in gen_init_cpio

    Jesper Juhl committed with Linus Torvalds Apr 18, 2006
    Fix potential NULL pointer deref in gen_init_cpio.c spotted by coverity
    checker.  This fixes coverity bug #86
    
    Without this patch we risk dereferencing a NULL `type' in the
    "if ('\n' == *type) {" line.
    
    Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Apr 11, 2006
  1. kbuild: rebuild initramfs if content of initramfs changes

    Sam Ravnborg committed Apr 11, 2006
    initramfs.cpio.gz being build in usr/ and included in the
    kernel was not rebuild when the included files changed.
    
    To fix this the following was done:
    - let gen_initramfs.sh generate a list of files and directories included
      in the initramfs
    - gen_initramfs generate the gzipped cpio archive so we could simplify
      the kbuild file (Makefile)
    - utilising the kbuild infrastructure so when uid/gid root mapping changes
      the initramfs will be rebuild
    
    With this change we have a much more robust initramfs generation.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Oct 18, 2005
  1. Add some basic .gitignore files

    Linus Torvalds committed Oct 18, 2005
    This still leaves driver and architecture-specific subdirectories alone,
    but gets rid of the bulk of the "generic" generated files that we should
    ignore.
    
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Commits on Aug 10, 2005
  1. kconfig: move initramfs options to General Setup

    Sam Ravnborg committed Aug 10, 2005
    Move initramfs options from Device Drivers | Block Drivers to General Setup
    This is a more natural place for this option.
    
    Furthermore separate out intramfs options to usr/Kconfig
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Commits on Jul 25, 2005
  1. kbuild: introduce Kbuild.include

    Sam Ravnborg committed Jul 25, 2005
    Kbuild.include is a placeholder for definitions originally present in
    both the top-level Makefile and scripts/Makefile.build.
    There were a slight difference in the filechk definition, so the most videly
    used version was kept and usr/Makefile was adopted for this syntax.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    ---
Commits on Apr 16, 2005
  1. Linux-2.6.12-rc2

    Linus Torvalds committed Apr 16, 2005
    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!
Something went wrong with that request. Please try again.