1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/powerpc64/linux.conf.sh
3 # Copyright (C) 2013 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 linux_arch
=GENERIC_CPU
14 for x
in "generic GENERIC_CPU" \
27 [[ "$SDECFG_POWERPC64_OPT" = $1 ]] && linux_arch
=$2
30 for x
in GENERIC_CPU POWER3_CPU POWER4_CPU CELL_CPU \
31 POWER5_CPU POWER6_CPU POWER7_CPU POWER8_CPU
33 if [ "$linux_arch" != "$x" ]
34 then echo "# CONFIG_$x is not set"
35 else echo "CONFIG_$x=y" ; fi
38 if [ "$SDECFG_POWERPC64_ENDIANESS" = "le" ]; then
39 echo "CONFIG_CPU_LITTLE_ENDIAN=y"
40 echo "CONFIG_NR_CPUS=256"
41 echo "CONFIG_PPC_PSERIES=y"
43 echo "CONFIG_CPU_BIG_ENDIAN=y"
44 echo "CONFIG_NR_CPUS=8"
45 echo "# CONFIG_PPC_PSERIES is not"
50 include(`linux.conf.m4')
52 } | m4 -I $base/architecture/$arch -I $base/architecture/powerpc -I $base/architecture/share