* fix hyprutils to find pixman includes
[t2sde.git] / architecture / powerpc64 / linux.conf.sh
blob51ce64b817deb84ecf3e5433dcf8c99499b5985c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: architecture/powerpc64/linux.conf.sh
3 # Copyright (C) 2013 - 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
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" \
15 "power3 POWER3_CPU" \
16 "power4 POWER4_CPU" \
17 "cell CELL_CPU" \
18 "G5 POWER4_CPU" \
19 "power5 POWER5_CPU" \
20 "power6 POWER6_CPU" \
21 "power7 POWER7_CPU" \
22 "power8 POWER8_CPU" \
23 "power9 POWER9_CPU" \
24 "power10 POWER10_CPU"
26 set $x
27 [[ "$SDECFG_POWERPC64_OPT" = $1 ]] && linux_arch=$2
28 done
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
36 done
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"
42 else
43 echo "CONFIG_CPU_BIG_ENDIAN=y"
44 echo "CONFIG_NR_CPUS=8"
45 echo "# CONFIG_PPC_PSERIES is not"
48 echo
49 cat <<- 'EOT'
50 include(`linux.conf.m4')
51 EOT
52 } | m4 -I $base/architecture/$arch -I $base/architecture/powerpc -I $base/architecture/share