From a92f73e922e259fca4b357f402dd0bffe79f0bab Mon Sep 17 00:00:00 2001
From: Chris Blake <chrisrblake93@gmail.com>
Date: Sat, 30 Sep 2017 11:13:35 -0500
Subject: [PATCH] mpc85xx: Enable initramfs for p1020 subtarget

The following patch enables building of initramfs images by default for
the P1020 subtarget in mpc85xx.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
---
 config/Config-images.in              | 1 +
 target/linux/mpc85xx/p1020/target.mk | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/Config-images.in b/config/Config-images.in
index 55aff7d0875..607659114e6 100644
--- a/config/Config-images.in
+++ b/config/Config-images.in
@@ -17,6 +17,7 @@ menu "Target Images"
 			default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
 			default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
 			default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
+			default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
 			default TARGET_INITRAMFS_COMPRESSION_NONE
 			depends on TARGET_ROOTFS_INITRAMFS
 			help
diff --git a/target/linux/mpc85xx/p1020/target.mk b/target/linux/mpc85xx/p1020/target.mk
index c111d7a4af4..5d84d832056 100644
--- a/target/linux/mpc85xx/p1020/target.mk
+++ b/target/linux/mpc85xx/p1020/target.mk
@@ -1,6 +1,6 @@
 BOARDNAME:=P1020
+FEATURES += ramdisk
 
 define Target/Description
 	Build firmware images for Freescale P1020 based boards.
 endef
-
-- 
GitLab