X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/bca3f225e9645134018a951d78198b70601eb02d..6660855cb6ecba825f7bf7a6ad8951666cddf586:/target/linux/ppc40x/image/Makefile diff --git a/target/linux/ppc40x/image/Makefile b/target/linux/ppc40x/image/Makefile index 3e355a98e..415539e9c 100644 --- a/target/linux/ppc40x/image/Makefile +++ b/target/linux/ppc40x/image/Makefile @@ -16,6 +16,7 @@ endef define Image/BuildKernel cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage + $(call Image/Build/Initramfs) endef define Image/Build @@ -62,4 +63,11 @@ define Image/Build/squashfs ) > $(BIN_DIR)/$(IMG_PREFIX)-openrb-$(1).img endef +ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) +define Image/Build/Initramfs + cp $(LINUX_DIR)/arch/powerpc/boot/cuImage.magicbox $(BIN_DIR)/openwrt-$(BOARD)-magicbox-initramfs.bin + cp $(LINUX_DIR)/arch/powerpc/boot/cuImage.openrb $(BIN_DIR)/openwrt-$(BOARD)-openrb-initramfs.bin +endef +endif + $(eval $(call BuildImage))