aboutsummaryrefslogtreecommitdiff
path: root/support/scripts/gen-bootlin-toolchains
diff options
context:
space:
mode:
Diffstat (limited to 'support/scripts/gen-bootlin-toolchains')
-rwxr-xr-xsupport/scripts/gen-bootlin-toolchains32
1 files changed, 28 insertions, 4 deletions
diff --git a/support/scripts/gen-bootlin-toolchains b/support/scripts/gen-bootlin-toolchains
index ac1a19b3c0..fc9d57f5a4 100755
--- a/support/scripts/gen-bootlin-toolchains
+++ b/support/scripts/gen-bootlin-toolchains
@@ -123,6 +123,16 @@ arches = {
'conditions': ['BR2_or1k'],
'prefix': 'or1k',
},
+ 'powerpc-440fp': {
+ # Not sure it could be used by other powerpc variants?
+ 'conditions': ['BR2_powerpc', 'BR2_powerpc_440fp'],
+ 'prefix': 'powerpc',
+ },
+ 'powerpc-e300c3': {
+ # Not sure it could be used by other powerpc variants?
+ 'conditions': ['BR2_powerpc', 'BR2_powerpc_e300c3'],
+ 'prefix': 'powerpc',
+ },
'powerpc-e500mc': {
# Not sure it could be used by other powerpc variants?
'conditions': ['BR2_powerpc', 'BR2_powerpc_e500mc'],
@@ -132,6 +142,10 @@ arches = {
'conditions': ['BR2_powerpc64', 'BR2_powerpc_e5500'],
'prefix': 'powerpc64',
},
+ 'powerpc64-e6500': {
+ 'conditions': ['BR2_powerpc64', 'BR2_powerpc_e6500'],
+ 'prefix': 'powerpc64',
+ },
'powerpc64-power8': {
'conditions': ['BR2_powerpc64', 'BR2_powerpc_power8'],
'prefix': 'powerpc64',
@@ -233,18 +247,25 @@ class Toolchain:
f.write("config %s\n" % self.option_name)
f.write("\tbool \"%s %s %s %s\"\n" %
(self.arch, self.libc, self.variant, self.version))
- for c in arches[self.arch]['conditions']:
- f.write("\tdepends on %s\n" % c)
+ depends = []
selects = []
+
+ for c in arches[self.arch]['conditions']:
+ depends.append(c)
+
for frag in self.fragment:
# libc type
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_UCLIBC"):
selects.append("BR2_TOOLCHAIN_EXTERNAL_UCLIBC")
elif frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC"):
+ # glibc needs mmu support
+ depends.append("BR2_USE_MMU")
+ # glibc doesn't support static only configuration
+ depends.append("!BR2_STATIC_LIBS")
selects.append("BR2_TOOLCHAIN_EXTERNAL_GLIBC")
- # all glibc toolchains have RPC support
- selects.append("BR2_TOOLCHAIN_HAS_NATIVE_RPC")
elif frag.startswith("BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL"):
+ # musl needs mmu support
+ depends.append("BR2_USE_MMU")
selects.append("BR2_TOOLCHAIN_EXTERNAL_MUSL")
# gcc version
@@ -303,6 +324,9 @@ class Toolchain:
if frag.startswith("BR2_TOOLCHAIN_EXTERNAL_OPENMP"):
selects.append("BR2_TOOLCHAIN_HAS_OPENMP")
+ for depend in depends:
+ f.write("\tdepends on %s\n" % depend)
+
for select in selects:
f.write("\tselect %s\n" % select)