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/target/linux/fonera2n/image/Makefile

    r1747 r2296  
    2929                -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
    3030                -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage.lzma
     31        $(call Image/Build/Initramfs)
    3132endef
     33
     34ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
     35  define Image/Build/Initramfs
     36        cp $(KDIR)/uImage.lzma $(BIN_DIR)/openwrt-$(BOARD)-initrd.uImage
     37  endef
     38endif
    3239
    3340define Image/Build/squashfs
Note: See TracChangeset for help on using the changeset viewer.