Ignore:
Timestamp:
Jun 25, 2013, 3:49:28 PM (6 years ago)
Author:
matthijs
Message:

build-system: Fix building with TARGET_ROOTFS_INITRAMFS=y.

This allows a booting the image through TFTP instead of having to flash
the image onto the Fonera. This needs serial access to tell the
bootloader to boot from TFTP instead of internal flash, though.

This patch was tested only on 2.0n.

File:
1 edited

Legend:

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

    r1 r2296  
    5454    define Kernel/SetInitramfs
    5555                mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old
    56                 grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config
     56                grep -v -e INITRAMFS -e CONFIG_BLK_DEV_INITRD $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config
     57                echo 'CONFIG_BLK_DEV_INITRD=y' >> $(LINUX_DIR)/.config
    5758                echo 'CONFIG_INITRAMFS_SOURCE="$(strip $(TARGET_DIR) $(INITRAMFS_EXTRA_FILES))"' >> $(LINUX_DIR)/.config
    5859                echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config
    5960                echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config
     61                $(call Kernel/SetInitramfs/Extra)
    6062    endef
    6163  else
     
    6466                grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config
    6567                echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config
     68                $(call Kernel/SetInitramfs/Extra)
    6669    endef
    6770  endif
Note: See TracChangeset for help on using the changeset viewer.