Changeset 9410


Ignore:
Timestamp:
2007-10-23T08:23:29+02:00 (10 years ago)
Author:
nbd
Message:

Allow targets to specify extra initramfs source files

The CONFIG_INITRAMFS_SOURCE Kconfig variable can be a space-separated
list of source files (or directories). This allows a platform to
add extra components to the initramfs image, by defining the
INITRAMFS_EXTRA_FILES make var.

By default, we add a simple initramfs extra file for the generic-2.6
platform, which specifies a few device nodes.

Signed-off-by: Jeremy Kerr <jk@…>

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-defaults.mk

    r9409 r9410  
    4141        CONFIG_SHELL="$(BASH)" 
    4242 
     43INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt 
     44 
    4345ifneq (,$(KERNEL_CC)) 
    4446  KERNEL_MAKEOPTS += CC="$(KERNEL_CC)" 
     
    7981                mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old 
    8082                grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config 
    81                 echo 'CONFIG_INITRAMFS_SOURCE="$(TARGET_DIR)"' >> $(LINUX_DIR)/.config 
     83                echo 'CONFIG_INITRAMFS_SOURCE="$(strip $(TARGET_DIR) $(INITRAMFS_EXTRA_FILES))"' >> $(LINUX_DIR)/.config 
    8284                echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config 
    8385                echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config 
Note: See TracChangeset for help on using the changeset viewer.