Skip to content

Commit bfc236c

Browse files
committed
arch/powerpc: Enable powerpc64le only on CPUs that support it
Invalid configurations lead to build failures, such as trying to enable ppc64le for the ppc970: http://autobuild.buildroot.net/results/fda886768fce25ccd9b52b635ff5b13da7ba2d0c/ In order to run a ppc64le userspace a kernel that runs in this mode is required. The only CPU supported in buildroot that can boot a ppc64le kernel is Power8, so mark all of the other 64-bit capable CPUs as not supporting ppc64le. This drops the comment about libc, which is true but doesn't tell the whole story. Signed-off-by: Joel Stanley <[email protected]>
1 parent 766ef3b commit bfc236c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Diff for: arch/Config.in.powerpc

+7-4
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,9 @@ config BR2_powerpc_604e
7171
depends on !BR2_ARCH_IS_64
7272
config BR2_powerpc_620
7373
bool "620"
74-
# No C library supports this variant on ppc64le
7574
depends on !BR2_powerpc64le
7675
config BR2_powerpc_630
7776
bool "630"
78-
# No C library supports this variant on ppc64le
7977
depends on !BR2_powerpc64le
8078
config BR2_powerpc_740
8179
bool "740"
@@ -102,6 +100,7 @@ config BR2_powerpc_860
102100
depends on !BR2_ARCH_IS_64
103101
config BR2_powerpc_970
104102
bool "970"
103+
depends on !BR2_powerpc64le
105104
select BR2_POWERPC_CPU_HAS_ALTIVEC
106105
config BR2_powerpc_8540
107106
bool "8540 / e500v1"
@@ -129,21 +128,25 @@ config BR2_powerpc_e6500
129128
select BR2_POWERPC_CPU_HAS_ALTIVEC
130129
config BR2_powerpc_power4
131130
bool "power4"
132-
# No C library supports this variant on ppc64le
133131
depends on !BR2_powerpc64le
134132
config BR2_powerpc_power5
135133
bool "power5"
136-
# No C library supports this variant on ppc64le
137134
depends on !BR2_powerpc64le
135+
depends on BR2_ARCH_IS_64
138136
config BR2_powerpc_power6
139137
bool "power6"
138+
depends on !BR2_powerpc64le
139+
depends on BR2_ARCH_IS_64
140140
select BR2_POWERPC_CPU_HAS_ALTIVEC
141141
config BR2_powerpc_power7
142142
bool "power7"
143+
depends on !BR2_powerpc64le
144+
depends on BR2_ARCH_IS_64
143145
select BR2_POWERPC_CPU_HAS_ALTIVEC
144146
select BR2_POWERPC_CPU_HAS_VSX
145147
config BR2_powerpc_power8
146148
bool "power8"
149+
depends on BR2_ARCH_IS_64
147150
select BR2_POWERPC_CPU_HAS_ALTIVEC
148151
select BR2_POWERPC_CPU_HAS_VSX
149152
endchoice

0 commit comments

Comments
 (0)