Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | require conf/multilib.conf |
| 2 | require conf/machine/include/tune-cortexa9.inc |
| 3 | require conf/machine/include/baremetal-tc.conf |
| 4 | |
| 5 | # Define all of the multilibs supproted by this configuration |
| 6 | MULTILIB_GLOBAL_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}" |
| 7 | |
| 8 | MULTILIBS = "multilib:libarmv5tesoftfp multilib:libarmv5tehard" |
| 9 | MULTILIBS += "multilib:libnofp" |
| 10 | MULTILIBS += "multilib:libv7nofp multilib:libv7fpsoftfp multilib:libv7fphard" |
| 11 | MULTILIBS += "multilib:libv7anofp" |
| 12 | MULTILIBS += "multilib:libv7afpsoftfp" |
| 13 | MULTILIBS += "multilib:libv7afpthf multilib:libv7asimdsoftfp" |
| 14 | MULTILIBS += "multilib:libv7asimdhard multilib:libv7vesimdsoftfp" |
| 15 | MULTILIBS += "multilib:libvtvesimdhf" |
| 16 | MULTILIBS += "multilib:libv8anofp" |
| 17 | MULTILIBS += "multilib:libv8asimdsoftfp multilib:libv8asimdhard" |
| 18 | |
| 19 | TUNE_CCARGS = "${TUNE_CCARGS_tune-${DEFAULTTUNE}}" |
| 20 | TUNE_PKGARCH = "${TUNE_PKGARCH_tune-${DEFAULTTUNE}}" |
| 21 | |
| 22 | # Base configuration |
| 23 | # CFLAGS: |
| 24 | DEFAULTTUNE = "aarch32" |
| 25 | |
| 26 | AVAILTUNES += "aarch32" |
| 27 | PACKAGE_EXTRA_ARCHS_tune-aarch32 = "${TUNE_PKGARCH_tune-aarch32}" |
| 28 | BASE_LIB_tune-aarch32 = "lib" |
| 29 | TUNE_FEATURES_tune-aarch32 = "arm" |
| 30 | TUNE_CCARGS_tune-aarch32 = "" |
| 31 | TUNE_PKGARCH_tune-aarch32 = "aarch32" |
| 32 | |
| 33 | |
| 34 | # arm/v5te/softfp |
| 35 | # CFLAGS: -marm -march=armv5te+fp -mfloat-abi=softfp |
| 36 | DEFAULTTUNE_virtclass-multilib-libarmv5tesoftfp = "armv5tesoftfp" |
| 37 | |
| 38 | AVAILTUNES += "armv5tesoftfp" |
| 39 | PACKAGE_EXTRA_ARCHS_tune-armv5tesoftfp = "${TUNE_PKGARCH_tune-armv5tesoftfp}" |
| 40 | BASE_LIB_tune-armv5tesoftfp = "lib/arm/v5te/softfp" |
| 41 | TUNE_FEATURES_tune-armv5tesoftfp = "arm" |
| 42 | TUNE_CCARGS_tune-armv5tesoftfp = "-marm -march=armv5te+fp -mfloat-abi=softfp" |
| 43 | TUNE_PKGARCH_tune-armv5tesoftfp = "armv5tefp" |
| 44 | |
| 45 | |
| 46 | # arm/v5te/hard |
| 47 | # CFLAGS: -marm -march=armv5te+fp -mfloat-abi=hard |
| 48 | DEFAULTTUNE_virtclass-multilib-libarmv5tehard = "armv5tehard" |
| 49 | |
| 50 | AVAILTUNES += "armv5tehard" |
| 51 | PACKAGE_EXTRA_ARCHS_tune-armv5tehard = "${TUNE_PKGARCH_tune-armv5tehard}" |
| 52 | BASE_LIB_tune-armv5tehard = "lib/arm/v5te/hard" |
| 53 | TUNE_FEATURES_tune-armv5tehard = "arm" |
| 54 | TUNE_CCARGS_tune-armv5tehard = "-marm -march=armv5te+fp -mfloat-abi=hard" |
| 55 | TUNE_PKGARCH_tune-armv5tehard = "armv5tefphf" |
| 56 | |
| 57 | |
| 58 | # thumb/nofp |
| 59 | # CFLAGS: -mthumb -mfloat-abi=soft |
| 60 | DEFAULTTUNE_virtclass-multilib-libnofp = "armnofp" |
| 61 | |
| 62 | AVAILTUNES += "armnofp" |
| 63 | PACKAGE_EXTRA_ARCHS_tune-armnofp = "${TUNE_PKGARCH_tune-armnofp}" |
| 64 | BASE_LIB_tune-armnofp = "lib/thumb/nofp" |
| 65 | TUNE_FEATURES_tune-armnofp = "arm" |
| 66 | TUNE_CCARGS_tune-armnofp = "-mthumb -mfloat-abi=soft" |
| 67 | TUNE_PKGARCH_tune-armnofp = "armt" |
| 68 | |
| 69 | |
| 70 | # thumb/v7/nofp |
| 71 | # CFLAGS: -mthumb -march=armv7 -mfloat-abi=soft |
| 72 | DEFAULTTUNE_virtclass-multilib-libv7nofp = "armv7nofp" |
| 73 | |
| 74 | AVAILTUNES += "armv7nofp" |
| 75 | PACKAGE_EXTRA_ARCHS_tune-armv7nofp = "${TUNE_PKGARCH_tune-armv7nofp}" |
| 76 | BASE_LIB_tune-armv7nofp = "lib/thumb/v7/nofp" |
| 77 | TUNE_FEATURES_tune-armv7nofp = "arm" |
| 78 | TUNE_CCARGS_tune-armv7nofp = "-mthumb -march=armv7 -mfloat-abi=soft" |
| 79 | TUNE_PKGARCH_tune-armv7nofp = "armv7t" |
| 80 | |
| 81 | |
| 82 | # thumb/v7+fp/softfp |
| 83 | # CFLAGS: -mthumb -march=armv7+fp -mfloat-abi=softfp |
| 84 | DEFAULTTUNE_virtclass-multilib-libv7fpsoftfp = "armv7fpsoftfp" |
| 85 | |
| 86 | AVAILTUNES += "armv7fpsoftfp" |
| 87 | PACKAGE_EXTRA_ARCHS_tune-armv7fpsoftfp = "${TUNE_PKGARCH_tune-armv7fpsoftfp}" |
| 88 | BASE_LIB_tune-armv7fpsoftfp = "lib/thumb/v7+fp/softfp" |
| 89 | TUNE_FEATURES_tune-armv7fpsoftfp = "arm" |
| 90 | TUNE_CCARGS_tune-armv7fpsoftfp = "-mthumb -march=armv7+fp -mfloat-abi=softfp" |
| 91 | TUNE_PKGARCH_tune-armv7fpsoftfp = "armv7fpt" |
| 92 | |
| 93 | |
| 94 | # thumb/v7+fp/hard |
| 95 | # CFLAGS: -mthumb -march=armv7+fp -mfloat-abi=hard |
| 96 | DEFAULTTUNE_virtclass-multilib-libv7fphard = "armv7fphard" |
| 97 | |
| 98 | AVAILTUNES += "armv7fphard" |
| 99 | PACKAGE_EXTRA_ARCHS_tune-armv7fphard = "${TUNE_PKGARCH_tune-armv7fphard}" |
| 100 | BASE_LIB_tune-armv7fphard = "lib/thumb/v7+fp/hard" |
| 101 | TUNE_FEATURES_tune-armv7fphard = "arm" |
| 102 | TUNE_CCARGS_tune-armv7fphard = "-mthumb -march=armv7+fp -mfloat-abi=hard" |
| 103 | TUNE_PKGARCH_tune-armv7fphard = "armv7fpthf" |
| 104 | |
| 105 | |
| 106 | # thumb/v7-a/nofp |
| 107 | # CFLAGS: -mthumb -march=armv7-a -mfloat-abi=soft |
| 108 | DEFAULTTUNE_virtclass-multilib-libv7anofp = "armv7anofp" |
| 109 | |
| 110 | AVAILTUNES += "armv7anofp" |
| 111 | PACKAGE_EXTRA_ARCHS_tune-armv7anofp = "${TUNE_PKGARCH_tune-armv7anofp}" |
| 112 | BASE_LIB_tune-armv7anofp = "lib/thumb/v7-a/nofp" |
| 113 | TUNE_FEATURES_tune-armv7anofp = "arm" |
| 114 | TUNE_CCARGS_tune-armv7anofp = "-mthumb -march=armv7-a -mfloat-abi=soft" |
| 115 | TUNE_PKGARCH_tune-armv7anofp = "armv7at" |
| 116 | |
| 117 | |
| 118 | # thumb/v7-a+fp/softfp |
| 119 | # CFLAGS: -mthumb -march=armv7-a+fp -mfloat-abi=softfp |
| 120 | DEFAULTTUNE_virtclass-multilib-libv7afpsoftfp = "armv7afpsoftfp" |
| 121 | |
| 122 | AVAILTUNES += "armv7afpsoftfp" |
| 123 | PACKAGE_EXTRA_ARCHS_tune-armv7afpsoftfp = "${TUNE_PKGARCH_tune-armv7afpsoftfp}" |
| 124 | BASE_LIB_tune-armv7afpsoftfp = "lib/thumb/v7-a+fp/softfp" |
| 125 | TUNE_FEATURES_tune-armv7afpsoftfp = "arm" |
| 126 | TUNE_CCARGS_tune-armv7afpsoftfp = "-mthumb -march=armv7-a+fp -mfloat-abi=softfp" |
| 127 | TUNE_PKGARCH_tune-armv7afpsoftfp = "armv7afpt" |
| 128 | |
| 129 | |
| 130 | # thumb/v7-a+fp/hard |
| 131 | # CFLAGS: -mthumb -march=armv7-a+fp -mfloat-abi=hard |
| 132 | DEFAULTTUNE_virtclass-multilib-libv7afpthf = "armv7afpthf" |
| 133 | |
| 134 | AVAILTUNES += "armv7afpthf" |
| 135 | PACKAGE_EXTRA_ARCHS_tune-armv7afpthf = "${TUNE_PKGARCH_tune-armv7afpthf}" |
| 136 | BASE_LIB_tune-armv7afpthf = "lib/thumb/v7-a+fp/hard" |
| 137 | TUNE_FEATURES_tune-armv7afpthf = "arm" |
| 138 | TUNE_CCARGS_tune-armv7afpthf = "-mthumb -march=armv7-a+fp -mfloat-abi=hard" |
| 139 | TUNE_PKGARCH_tune-armv7afpthf = "armv7afpthf" |
| 140 | |
| 141 | # thumb/v7-a+simd/softfp |
| 142 | # CFLAGS: -mthumb -march=armv7-a+simd -mfloat-abi=softfp |
| 143 | DEFAULTTUNE_virtclass-multilib-libv7asimdsoftfp = "armv7asimdsoftfp" |
| 144 | |
| 145 | AVAILTUNES += "armv7asimdsoftfp" |
| 146 | PACKAGE_EXTRA_ARCHS_tune-armv7asimdsoftfp = "${TUNE_PKGARCH_tune-armv7asimdsoftfp}" |
| 147 | BASE_LIB_tune-armv7asimdsoftfp = "lib/thumb/v7-a+simd/softfp" |
| 148 | TUNE_FEATURES_tune-armv7asimdsoftfp = "arm" |
| 149 | TUNE_CCARGS_tune-armv7asimdsoftfp = "-mthumb -march=armv7-a+simd -mfloat-abi=softfp" |
| 150 | TUNE_PKGARCH_tune-armv7asimdsoftfp = "armv7asimdt" |
| 151 | |
| 152 | |
| 153 | # thumb/v7-a+simd/hard |
| 154 | # CFLAGS: -mthumb -march=armv7-a+simd -mfloat-abi=hard |
| 155 | DEFAULTTUNE_virtclass-multilib-libv7asimdhard = "armv7asimdhard" |
| 156 | |
| 157 | AVAILTUNES += "armv7asimdhard" |
| 158 | PACKAGE_EXTRA_ARCHS_tune-armv7asimdhard = "${TUNE_PKGARCH_tune-armv7asimdhard}" |
| 159 | BASE_LIB_tune-armv7asimdhard = "lib/thumb/v7-a+simd/hard" |
| 160 | TUNE_FEATURES_tune-armv7asimdhard = "arm" |
| 161 | TUNE_CCARGS_tune-armv7asimdhard = "-mthumb -march=armv7-a+simd -mfloat-abi=hard" |
| 162 | TUNE_PKGARCH_tune-armv7asimdhard = "armv7asimdthf" |
| 163 | |
| 164 | |
| 165 | # thumb/v7ve+simd/softfp |
| 166 | # CFLAGS: -mthumb -march=armv7ve+simd -mfloat-abi=softfp |
| 167 | DEFAULTTUNE_virtclass-multilib-libv7vesimdsoftfp = "armv7vesimdsoftfp" |
| 168 | |
| 169 | AVAILTUNES += "armv7vesimdsoftfp" |
| 170 | PACKAGE_EXTRA_ARCHS_tune-armv7vesimdsoftfp = "${TUNE_PKGARCH_tune-armv7vesimdsoftfp}" |
| 171 | BASE_LIB_tune-armv7vesimdsoftfp = "lib/thumb/v7ve+simd/softfp" |
| 172 | TUNE_FEATURES_tune-armv7vesimdsoftfp = "arm" |
| 173 | TUNE_CCARGS_tune-armv7vesimdsoftfp = "-mthumb -march=armv7ve+simd -mfloat-abi=softfp" |
| 174 | TUNE_PKGARCH_tune-armv7vesimdsoftfp = "armv7vesimdt" |
| 175 | |
| 176 | # thumb/v7ve+simd/hard |
| 177 | # CFLAGS: -mthumb -march=armv7ve+simd -mfloat-abi=hard |
| 178 | DEFAULTTUNE_virtclass-multilib-libvtvesimdhf = "armvtvesimdhf" |
| 179 | |
| 180 | AVAILTUNES += "armvtvesimdhf" |
| 181 | PACKAGE_EXTRA_ARCHS_tune-armvtvesimdhf = "${TUNE_PKGARCH_tune-armvtvesimdhf}" |
| 182 | BASE_LIB_tune-armvtvesimdhf = "lib/thumb/v7ve+simd/hard" |
| 183 | TUNE_FEATURES_tune-armvtvesimdhf = "arm" |
| 184 | TUNE_CCARGS_tune-armvtvesimdhf = "-mthumb -march=armv7ve+simd -mfloat-abi=hard" |
| 185 | TUNE_PKGARCH_tune-armvtvesimdhf = "armv7vesimdthf" |
| 186 | |
| 187 | |
| 188 | # thumb/v8-a/nofp |
| 189 | # CFLAGS: -mthumb -march=armv8-a -mfloat-abi=soft |
| 190 | DEFAULTTUNE_virtclass-multilib-libv8anofp = "armv8anofp" |
| 191 | |
| 192 | AVAILTUNES += "armv8anofp" |
| 193 | PACKAGE_EXTRA_ARCHS_tune-armv8anofp = "${TUNE_PKGARCH_tune-armv8anofp}" |
| 194 | BASE_LIB_tune-armv8anofp = "lib/thumb/v8-a/nofp" |
| 195 | TUNE_FEATURES_tune-armv8anofp = "arm" |
| 196 | TUNE_CCARGS_tune-armv8anofp = "-mthumb -march=armv8-a -mfloat-abi=soft" |
| 197 | TUNE_PKGARCH_tune-armv8anofp = "armv8at" |
| 198 | |
| 199 | # thumb/v8-a+simd/softfp |
| 200 | # CFLAGS: -mthumb -march=armv8-a+simd -mfloat-abi=softfp |
| 201 | DEFAULTTUNE_virtclass-multilib-libv8asimdsoftfp = "armv8asimdsoftfp" |
| 202 | |
| 203 | AVAILTUNES += "armv8asimdsoftfp" |
| 204 | PACKAGE_EXTRA_ARCHS_tune-armv8asimdsoftfp = "${TUNE_PKGARCH_tune-armv8asimdsoftfp}" |
| 205 | BASE_LIB_tune-armv8asimdsoftfp = "lib/thumb/v8-a+simd/softfp" |
| 206 | TUNE_FEATURES_tune-armv8asimdsoftfp = "arm" |
| 207 | TUNE_CCARGS_tune-armv8asimdsoftfp = "-mthumb -march=armv8-a+simd -mfloat-abi=softfp" |
| 208 | TUNE_PKGARCH_tune-armv8asimdsoftfp = "armv8asimdt" |
| 209 | |
| 210 | |
| 211 | # thumb/v8-a+simd/hard |
| 212 | # CFLAGS: -mthumb -march=armv8-a+simd -mfloat-abi=hard |
| 213 | DEFAULTTUNE_virtclass-multilib-libv8asimdhard = "armv8asimdhard" |
| 214 | |
| 215 | AVAILTUNES += "armv8asimdhard" |
| 216 | PACKAGE_EXTRA_ARCHS_tune-armv8asimdhard = "${TUNE_PKGARCH_tune-armv8asimdhard}" |
| 217 | BASE_LIB_tune-armv8asimdhard = "lib/thumb/v8-a+simd/hard" |
| 218 | TUNE_FEATURES_tune-armv8asimdhard = "arm" |
| 219 | TUNE_CCARGS_tune-armv8asimdhard = "-mthumb -march=armv8-a+simd -mfloat-abi=hard" |
| 220 | TUNE_PKGARCH_tune-armv8asimdhard = "armv8asimdthf" |