From d16f07aa10f2477ca2ad8e224286bd809323f073 Mon Sep 17 00:00:00 2001
From: Imre Kaloz <kaloz@openwrt.org>
Date: Tue, 10 Mar 2015 10:00:41 +0000
Subject: [PATCH] ppc44x: upgrade and switch to 3.18

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 44637
---
 target/linux/ppc44x/Makefile                              | 8 +++-----
 target/linux/ppc44x/{config-3.10 => config-3.18}          | 2 ++
 .../100-openwrt_flashmap.patch                            | 0
 .../110-openwrt_dts_cmdline.patch                         | 0
 4 files changed, 5 insertions(+), 5 deletions(-)
 rename target/linux/ppc44x/{config-3.10 => config-3.18} (99%)
 rename target/linux/ppc44x/{patches-3.10 => patches-3.18}/100-openwrt_flashmap.patch (100%)
 rename target/linux/ppc44x/{patches-3.10 => patches-3.18}/110-openwrt_dts_cmdline.patch (100%)

diff --git a/target/linux/ppc44x/Makefile b/target/linux/ppc44x/Makefile
index c36675cc05..17a3f5893a 100644
--- a/target/linux/ppc44x/Makefile
+++ b/target/linux/ppc44x/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007-2012 OpenWrt.org
+# Copyright (C) 2007-2015 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,16 +9,14 @@ include $(TOPDIR)/rules.mk
 ARCH:=powerpc
 BOARD:=ppc44x
 BOARDNAME:=AMCC/IBM PPC44x
-FEATURES:=squashfs broken
+FEATURES:=squashfs
 CPU_TYPE:=440
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 
-KERNEL_PATCHVER:=3.10
+KERNEL_PATCHVER:=3.18
 
 include $(INCLUDE_DIR)/target.mk
 
-DEFAULT_PACKAGES := $(filter-out ppp%,$(DEFAULT_PACKAGES))
-
 define Target/Description
 	Build firmware images for AMCC/IBM PPC44x based boards.
 endef
diff --git a/target/linux/ppc44x/config-3.10 b/target/linux/ppc44x/config-3.18
similarity index 99%
rename from target/linux/ppc44x/config-3.10
rename to target/linux/ppc44x/config-3.18
index 16f8fdef70..41ea21d97f 100644
--- a/target/linux/ppc44x/config-3.10
+++ b/target/linux/ppc44x/config-3.18
@@ -34,6 +34,8 @@ CONFIG_CLONE_BACKWARDS=y
 CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/mtdblock1 rootfstype=squashfs,jffs2 noinitrd"
 CONFIG_CMDLINE_BOOL=y
 CONFIG_CONSISTENT_SIZE=0x00200000
+CONFIG_CPU_BIG_ENDIAN=y
+# CONFIG_CPU_LITTLE_ENDIAN is not set
 # CONFIG_CRYPTO_SHA1_PPC is not set
 # CONFIG_DEFAULT_UIMAGE is not set
 CONFIG_DTC=y
diff --git a/target/linux/ppc44x/patches-3.10/100-openwrt_flashmap.patch b/target/linux/ppc44x/patches-3.18/100-openwrt_flashmap.patch
similarity index 100%
rename from target/linux/ppc44x/patches-3.10/100-openwrt_flashmap.patch
rename to target/linux/ppc44x/patches-3.18/100-openwrt_flashmap.patch
diff --git a/target/linux/ppc44x/patches-3.10/110-openwrt_dts_cmdline.patch b/target/linux/ppc44x/patches-3.18/110-openwrt_dts_cmdline.patch
similarity index 100%
rename from target/linux/ppc44x/patches-3.10/110-openwrt_dts_cmdline.patch
rename to target/linux/ppc44x/patches-3.18/110-openwrt_dts_cmdline.patch