The config symbol TARGET_ps3 is used in the build files where
special handling for the 64 bit PowerPC processors is needed.
Introduce a new config feature powerpc64, and replace the use
of TARGET_ps3 with powerpc64.

Signed-off-by: Geoff Levand <geoffrey.lev...@am.sony.com>
---
 feeds/packages/libs/libtwin/Makefile |    2 +-
 package/kexec-tools/Makefile         |    2 +-
 package/kexec-tools/kexec-config.in  |    2 +-
 scripts/metadata.pl                  |    1 +
 target/Config.in                     |    3 +++
 target/linux/ps3/Makefile            |    1 +
 target/linux/ps3/petitboot/target.mk |    2 +-
 toolchain/Config.in                  |    6 +++---
 toolchain/gcc/Config.in              |    2 +-
 toolchain/gcc/Config.version         |    2 +-
 10 files changed, 14 insertions(+), 9 deletions(-)

--- a/feeds/packages/libs/libtwin/Makefile
+++ b/feeds/packages/libs/libtwin/Makefile
@@ -21,7 +21,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/libtwin
   SECTION:=libs
   CATEGORY:=Libraries
-  DEPENDS:=+zlib +libpng +libjpeg @TARGET_ps3
+  DEPENDS:=+zlib +libpng +libjpeg
   TITLE:=The tiny windowing system libraries
   URL:=http://www.t2-project.org/packages/libtwin.html
 endef
--- a/package/kexec-tools/Makefile
+++ b/package/kexec-tools/Makefile
@@ -20,7 +20,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/kexec-tools
   SECTION:=utils
   CATEGORY:=Utilities
-  DEPENDS:=...@armeb||@i386||@TARGET_ps3||@mipsel||@mips +zlib
+  DEPENDS:=...@armeb||@i386||@powerpc64||@mipsel||@mips +zlib
   TITLE:=Kernel boots kernel
   URL:=http://kernel.org/pub/linux/kernel/people/horms/kexec-tools/
   MENU:=1
--- a/package/kexec-tools/kexec-config.in
+++ b/package/kexec-tools/kexec-config.in
@@ -2,7 +2,7 @@
 config KEXEC_TOOLS_TARGET_NAME
        string
        prompt "Target name for kexec kernel" if PACKAGE_kexec-tools
-       default EXTRA_TARGET_ARCH_NAME  if TARGET_ps3
+       default EXTRA_TARGET_ARCH_NAME  if powerpc64
        default ARCH
        help
          Defines the target type of the kernels that kexec deals
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -165,6 +165,7 @@ sub target_config_features(@) {
                /cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
                /fpu/ and $ret .= "\tselect HAS_FPU\n";
                /ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
+               /powerpc64/ and $ret .= "\tselect powerpc64\n";
        }
        return $ret;
 }
--- a/target/Config.in
+++ b/target/Config.in
@@ -100,6 +100,9 @@ config powerpc
        select BIG_ENDIAN
        bool
 
+config powerpc64
+       bool
+
 config sh3
        bool
 
--- a/target/linux/ps3/Makefile
+++ b/target/linux/ps3/Makefile
@@ -11,6 +11,7 @@ BOARD:=ps3
 BOARDNAME:=Sony PS3 Game Console
 MAINTAINER:=Geoff Levand <geoffrey.lev...@am.sony.com>
 SUBTARGETS=petitboot
+FEATURES+=powerpc64
 
 LINUX_VERSION:=2.6.28.10
 
--- a/target/linux/ps3/petitboot/target.mk
+++ b/target/linux/ps3/petitboot/target.mk
@@ -1,5 +1,5 @@
 BOARDNAME:=Petitboot
-FEATURES:=fpu ramdisk
+FEATURES+=fpu ramdisk
 
 define Target/Description
        Build Petitboot bootloader
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -13,7 +13,7 @@ menuconfig TOOLCHAINOPTS
 menuconfig EXTRA_TARGET_ARCH
        bool
        prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
-       default y       if TARGET_ps3 || TARGET_pxcab
+       default y       if powerpc64 || TARGET_pxcab
        default n
        help
          Some builds may require a 'biarch' toolchain. This option
@@ -23,7 +23,7 @@ menuconfig EXTRA_TARGET_ARCH
 
        config EXTRA_TARGET_ARCH_NAME
                string
-               default "powerpc64"     if TARGET_ps3 || TARGET_pxcab
+               default "powerpc64"     if powerpc64 || TARGET_pxcab
                prompt "Extra architecture name" if EXTRA_TARGET_ARCH
                help
                  Specify the cpu name (eg powerpc64 or x86_64) of the
@@ -31,7 +31,7 @@ menuconfig EXTRA_TARGET_ARCH
 
        config EXTRA_TARGET_ARCH_OPTS
                string
-               default "-m64"          if TARGET_ps3 || TARGET_pxcab
+               default "-m64"          if powerpc64 || TARGET_pxcab
                prompt "Extra architecture compiler options" if 
EXTRA_TARGET_ARCH
                help
                  If you're specifying an addition target architecture,
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -6,7 +6,7 @@ choice
        default GCC_VERSION_4_2_4 if TARGET_avr32
        default GCC_VERSION_4_2_4 if TARGET_ppc40x
        default GCC_VERSION_4_2_4 if TARGET_ppc44x
-       default GCC_VERSION_4_3_3 if TARGET_ps3_petitboot
+       default GCC_VERSION_4_3_3 if powerpc64
        default GCC_VERSION_4_3_3 if TARGET_pxcab
        default GCC_VERSION_4_3_3 if TARGET_etrax
        default GCC_VERSION_4_3_3 if TARGET_coldfire
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -52,7 +52,7 @@ if !TOOLCHAINOPTS
                default y if TARGET_ppc44x
 
        config GCC_VERSION_4_3_3
-               default y if TARGET_ps3_petitboot
+               default y if powerpc64
                default y if TARGET_pxcab
                default y if TARGET_etrax
                default y if TARGET_coldfire


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to