Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 1 | AC_PREREQ([2.69]) |
Liam Girdwood | 6bb3783 | 2018-01-10 20:43:25 +0000 | [diff] [blame] | 2 | AC_INIT([sof],[m4_esyscmd(./version.sh)],[sound-open-firmware@alsa-project.org]) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 3 | AC_CONFIG_SRCDIR([src/init/init.c]) |
| 4 | AC_CONFIG_HEADERS([src/include/config.h]) |
| 5 | AC_CONFIG_MACRO_DIRS([m4]) |
| 6 | AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability subdir-objects silent-rules color-tests dist-xz tar-ustar]) |
| 7 | |
| 8 | # Initialize maintainer mode |
| 9 | AM_MAINTAINER_MODE([enable]) |
| 10 | |
| 11 | # get version info from git |
Pierre-Louis Bossart | 81708a5 | 2018-04-04 18:46:50 -0500 | [diff] [blame] | 12 | m4_define(sof_major, `cat .version | cut -dv -f2 | cut -d. -f1`) |
| 13 | m4_define(sof_minor, `cat .version | cut -d. -f2 | cut -d- -f1`) |
| 14 | m4_define(sof_micro, `cat .version | cut -d. -f3 | cut -d- -f1`) |
| 15 | AC_DEFINE_UNQUOTED([SOF_MAJOR], sof_major, [Sof major version]) |
| 16 | AC_DEFINE_UNQUOTED([SOF_MINOR], sof_minor, [Sof minor version]) |
| 17 | AC_DEFINE_UNQUOTED([SOF_MICRO], sof_micro, [Sof micro version]) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 18 | |
| 19 | AC_CANONICAL_HOST |
| 20 | |
| 21 | # General compiler flags |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 22 | CFLAGS="${CFLAGS:+$CFLAGS } -O2 -g -Wall -Werror -Wl,-EL -Wmissing-prototypes" |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 23 | |
Liam Girdwood | cc9fba3 | 2018-01-22 23:31:24 +0000 | [diff] [blame] | 24 | # General assembler flags |
| 25 | ASFLAGS="-DASSEMBLY" |
| 26 | AC_SUBST(ASFLAGS) |
| 27 | |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 28 | # Cross compiler tool libgcc and headers |
Liam Girdwood | 8855ce5 | 2016-10-18 17:18:16 +0100 | [diff] [blame] | 29 | AC_ARG_WITH([root-dir], |
| 30 | AS_HELP_STRING([--with-root-dir], [Specify location of cross gcc libraries and headers]), |
| 31 | [], [with_root_dir=no]) |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 32 | |
| 33 | # check if we are building FW image or library |
| 34 | AC_ARG_ENABLE(library, [AS_HELP_STRING([--enable-library],[build library])], have_library=$enableval, have_library=no) |
| 35 | if test "$have_library" = "yes"; then |
| 36 | AC_DEFINE([CONFIG_LIB], [1], [Configure for Shared Library]) |
| 37 | fi |
| 38 | AM_CONDITIONAL(BUILD_LIB, test "$have_library" = "yes") |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 39 | |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 40 | # check if we are building tools |
| 41 | AC_ARG_ENABLE(rimage, [AS_HELP_STRING([--enable-rimage],[build rimage tool])], have_rimage=$enableval, have_rimage=no) |
| 42 | if test "$have_rimage" = "yes"; then |
| 43 | AC_DEFINE([CONFIG_RIMAGE], [1], [Configure to build rimage]) |
| 44 | fi |
| 45 | AM_CONDITIONAL(BUILD_RIMAGE, test "$have_rimage" = "yes") |
| 46 | |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 47 | # Architecture support |
| 48 | AC_ARG_WITH([arch], |
| 49 | AS_HELP_STRING([--with-arch], [Specify DSP architecture]), |
| 50 | [], [with_arch=no]) |
| 51 | |
| 52 | case "$with_arch" in |
| 53 | xtensa*) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 54 | |
| 55 | ARCH_CFLAGS="-mtext-section-literals" |
| 56 | AC_SUBST(ARCH_CFLAGS) |
| 57 | |
| 58 | ARCH_LDFLAGS="-nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static" |
| 59 | AC_SUBST(XTENSA_LDFLAGS) |
| 60 | |
| 61 | # extra CFLAGS defined here otherwise configure working gcc tests fails. |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 62 | CFLAGS="${CFLAGS:+$CFLAGS }-fno-inline-functions -nostdlib -mlongcalls" |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 63 | LDFLAGS="${LDFLAGS:+$LDFLAGS }-nostdlib" |
| 64 | |
| 65 | #ARCH_ASFLAGS="" |
| 66 | AC_SUBST(ARCH_ASFLAGS) |
| 67 | |
| 68 | ARCH="xtensa" |
| 69 | AC_SUBST(ARCH) |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 70 | |
| 71 | AS_IF([test "x$with_root_dir" = xno], |
| 72 | AC_MSG_ERROR([Please specify cross compiler root header directory]), |
| 73 | [ROOT_DIR=$with_root_dir]) |
| 74 | AC_SUBST(ROOT_DIR) |
| 75 | ;; |
| 76 | host*) |
| 77 | |
| 78 | ARCH_CFLAGS="-g" |
| 79 | AC_SUBST(ARCH_CFLAGS) |
| 80 | |
| 81 | # extra CFLAGS defined here otherwise configure working gcc tests fails. |
| 82 | CFLAGS="${CFLAGS:+$CFLAGS } -O3" |
| 83 | LDFLAGS="${LDFLAGS:+$LDFLAGS }-lpthread" |
| 84 | |
| 85 | ARCH="host" |
| 86 | AC_SUBST(ARCH) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 87 | ;; |
| 88 | *) |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 89 | if test "$have_rimage" = "no"; then |
| 90 | AC_MSG_ERROR([DSP architecture not specified]) |
| 91 | fi |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 92 | ;; |
| 93 | esac |
| 94 | |
Liam Girdwood | 2eab467 | 2017-11-27 05:24:51 +0800 | [diff] [blame] | 95 | AM_CONDITIONAL(BUILD_XTENSA, test "$ARCH" = "xtensa") |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 96 | AM_CONDITIONAL(BUILD_HOST, test "$ARCH" = "host") |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 97 | |
| 98 | # Platform support |
| 99 | AC_ARG_WITH([platform], |
| 100 | AS_HELP_STRING([--with-platform], [Specify Host Platform]), |
| 101 | [], [with_platform=no]) |
| 102 | |
| 103 | case "$with_platform" in |
| 104 | baytrail*) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 105 | |
| 106 | PLATFORM_LDSCRIPT="baytrail.x" |
| 107 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 108 | |
| 109 | PLATFORM="baytrail" |
| 110 | AC_SUBST(PLATFORM) |
| 111 | |
| 112 | FW_NAME="byt" |
| 113 | AC_SUBST(FW_NAME) |
| 114 | |
Liam Girdwood | f63c789 | 2017-12-04 20:08:39 +0000 | [diff] [blame] | 115 | XTENSA_CORE="hifiep_bd5" |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 116 | AC_SUBST(XTENSA_CORE) |
| 117 | |
| 118 | AC_DEFINE([CONFIG_BAYTRAIL], [1], [Configure for Baytrail]) |
Keyon Jie | fb78421 | 2017-12-06 21:16:32 +0800 | [diff] [blame] | 119 | AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 120 | ;; |
| 121 | cherrytrail*) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 122 | |
| 123 | PLATFORM_LDSCRIPT="baytrail.x" |
| 124 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 125 | |
| 126 | PLATFORM="baytrail" |
| 127 | AC_SUBST(PLATFORM) |
| 128 | |
| 129 | FW_NAME="cht" |
| 130 | AC_SUBST(FW_NAME) |
| 131 | |
Liam Girdwood | f63c789 | 2017-12-04 20:08:39 +0000 | [diff] [blame] | 132 | XTENSA_CORE="hifiep_bd5" |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 133 | AC_SUBST(XTENSA_CORE) |
| 134 | |
| 135 | AC_DEFINE([CONFIG_CHERRYTRAIL], [1], [Configure for Cherrytrail]) |
Keyon Jie | fb78421 | 2017-12-06 21:16:32 +0800 | [diff] [blame] | 136 | AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 137 | ;; |
Liam Girdwood | 095c907 | 2018-01-23 14:53:00 +0000 | [diff] [blame] | 138 | apollolake*) |
| 139 | |
| 140 | PLATFORM_LDSCRIPT="apollolake.x" |
| 141 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 142 | |
| 143 | PLATFORM="apollolake" |
| 144 | AC_SUBST(PLATFORM) |
| 145 | |
| 146 | FW_NAME="apl" |
| 147 | AC_SUBST(FW_NAME) |
| 148 | |
| 149 | XTENSA_CORE="hifi3_std" |
| 150 | AC_SUBST(XTENSA_CORE) |
| 151 | |
| 152 | AC_DEFINE([CONFIG_APOLLOLAKE], [1], [Configure for Apololake]) |
| 153 | AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) |
Keyon Jie | c610c64 | 2018-02-08 20:48:11 +0800 | [diff] [blame] | 154 | AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) |
Liam Girdwood | 095c907 | 2018-01-23 14:53:00 +0000 | [diff] [blame] | 155 | ;; |
Liam Girdwood | f198ad9 | 2018-01-21 23:48:35 +0000 | [diff] [blame] | 156 | haswell*) |
| 157 | |
| 158 | PLATFORM_LDSCRIPT="haswell.x" |
| 159 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 160 | |
| 161 | PLATFORM="haswell" |
| 162 | AC_SUBST(PLATFORM) |
| 163 | |
| 164 | FW_NAME="hsw" |
| 165 | AC_SUBST(FW_NAME) |
| 166 | |
| 167 | XTENSA_CORE="hifiep_bd5" |
| 168 | AC_SUBST(XTENSA_CORE) |
| 169 | |
| 170 | AC_DEFINE([CONFIG_HASWELL], [1], [Configure for Haswell]) |
| 171 | AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) |
| 172 | ;; |
| 173 | broadwell*) |
| 174 | |
| 175 | PLATFORM_LDSCRIPT="broadwell.x" |
| 176 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 177 | |
| 178 | PLATFORM="haswell" |
| 179 | AC_SUBST(PLATFORM) |
| 180 | |
| 181 | FW_NAME="bdw" |
| 182 | AC_SUBST(FW_NAME) |
| 183 | |
| 184 | XTENSA_CORE="hifiep_bd5" |
| 185 | AC_SUBST(XTENSA_CORE) |
| 186 | |
| 187 | AC_DEFINE([CONFIG_BROADWELL], [1], [Configure for Broadwell]) |
| 188 | AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) |
| 189 | ;; |
Liam Girdwood | 17c6bcf | 2018-01-23 15:44:08 +0000 | [diff] [blame] | 190 | cannonlake*) |
| 191 | |
| 192 | PLATFORM_LDSCRIPT="cannonlake.x" |
| 193 | AC_SUBST(PLATFORM_LDSCRIPT) |
| 194 | |
| 195 | PLATFORM="cannonlake" |
| 196 | AC_SUBST(PLATFORM) |
| 197 | |
| 198 | FW_NAME="cnl" |
| 199 | AC_SUBST(FW_NAME) |
| 200 | |
| 201 | XTENSA_CORE="hifi4_std" |
| 202 | AC_SUBST(XTENSA_CORE) |
| 203 | |
| 204 | AC_DEFINE([CONFIG_CANNONLAKE], [1], [Configure for Cannonlake]) |
| 205 | AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) |
Keyon Jie | c610c64 | 2018-02-08 20:48:11 +0800 | [diff] [blame] | 206 | AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) |
Liam Girdwood | 17c6bcf | 2018-01-23 15:44:08 +0000 | [diff] [blame] | 207 | ;; |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 208 | *) |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 209 | if test "$have_rimage" = "no"; then |
| 210 | if test "$ARCH" = "host"; then |
| 211 | PLATFORM="host" |
| 212 | AC_SUBST(PLATFORM) |
| 213 | else |
| 214 | AC_MSG_ERROR([Host platform not specified]) |
| 215 | fi |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 216 | fi |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 217 | ;; |
| 218 | esac |
| 219 | |
Liam Girdwood | 2eab467 | 2017-11-27 05:24:51 +0800 | [diff] [blame] | 220 | AM_CONDITIONAL(BUILD_BAYTRAIL, test "$FW_NAME" = "byt") |
| 221 | AM_CONDITIONAL(BUILD_CHERRYTRAIL, test "$FW_NAME" = "cht") |
| 222 | AM_CONDITIONAL(BUILD_HASWELL, test "$FW_NAME" = "hsw") |
| 223 | AM_CONDITIONAL(BUILD_BROADWELL, test "$FW_NAME" = "bdw") |
| 224 | AM_CONDITIONAL(BUILD_APOLLOLAKE, test "$FW_NAME" = "apl") |
Liam Girdwood | 17c6bcf | 2018-01-23 15:44:08 +0000 | [diff] [blame] | 225 | AM_CONDITIONAL(BUILD_CANNONLAKE, test "$FW_NAME" = "cnl") |
| 226 | AM_CONDITIONAL(BUILD_BOOTLOADER, test "$FW_NAME" = "cnl") |
Liam Girdwood | 095c907 | 2018-01-23 14:53:00 +0000 | [diff] [blame] | 227 | AM_CONDITIONAL(BUILD_MODULE, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl") |
Rander Wang | 4502765 | 2018-02-08 16:06:33 +0800 | [diff] [blame] | 228 | AM_CONDITIONAL(BUILD_APL_SSP, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl") |
Liam Girdwood | f198ad9 | 2018-01-21 23:48:35 +0000 | [diff] [blame] | 229 | |
Sebastien Guiriec | ca23f51 | 2016-11-02 08:44:19 +0100 | [diff] [blame] | 230 | # DSP core support (Optional) |
| 231 | AC_ARG_WITH([dsp-core], |
| 232 | AS_HELP_STRING([--with-dsp-core], [Specify DSP Core]), |
| 233 | [], [with_dsp_core=no]) |
| 234 | |
| 235 | case "$with_dsp_core" in |
Tomasz Lauda | 7f35266 | 2018-04-05 17:20:09 +0200 | [diff] [blame] | 236 | *) |
| 237 | XTENSA_CORE="$with_dsp_core" |
Sebastien Guiriec | ca23f51 | 2016-11-02 08:44:19 +0100 | [diff] [blame] | 238 | AC_SUBST(XTENSA_CORE) |
| 239 | ;; |
| 240 | |
| 241 | esac |
| 242 | |
Liam Girdwood | 17c6bcf | 2018-01-23 15:44:08 +0000 | [diff] [blame] | 243 | PLATFORM_BOOT_LDR_LDSCRIPT="boot_ldr.x" |
| 244 | AC_SUBST(PLATFORM_BOOT_LDR_LDSCRIPT) |
| 245 | |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 246 | # Optimisation settings and checks |
| 247 | |
| 248 | # SSE4_2 support |
| 249 | AC_ARG_ENABLE(sse42, [AS_HELP_STRING([--enable-sse42],[enable SSE42 optimizations])], have_sse42=$enableval, have_sse42=yes) |
| 250 | AX_CHECK_COMPILE_FLAG(-msse4.2, [SSE42_CFLAGS="-DOPS_SSE42 -msse4.2 -ffast-math -ftree-vectorizer-verbose=0"], |
| 251 | [have_sse42=no]) |
| 252 | if test "$have_sse42" = "yes"; then |
| 253 | AC_DEFINE(HAVE_SSE42,1,[Define to enable SSE42 optimizations.]) |
| 254 | fi |
| 255 | AM_CONDITIONAL(HAVE_SSE42, test "$have_sse42" = "yes") |
| 256 | AC_SUBST(SSE42_CFLAGS) |
| 257 | |
| 258 | # AVX support |
| 259 | AC_ARG_ENABLE(avx, [AS_HELP_STRING([--enable-avx],[enable AVX optimizations])], have_avx=$enableval, have_avx=yes) |
| 260 | AX_CHECK_COMPILE_FLAG(-mavx, [AVX_CFLAGS="-DOPS_AVX -mavx -ffast-math -ftree-vectorizer-verbose=0"], |
| 261 | [have_avx=no]) |
| 262 | if test "$have_avx" = "yes"; then |
| 263 | AC_DEFINE(HAVE_AVX,1,[Define to enable AVX optimizations.]) |
| 264 | fi |
| 265 | AM_CONDITIONAL(HAVE_AVX, test "$have_avx" = "yes") |
| 266 | AC_SUBST(AVX_CFLAGS) |
| 267 | |
| 268 | |
| 269 | # AVX2 support |
| 270 | AC_ARG_ENABLE(avx2, [AS_HELP_STRING([--enable-avx2],[enable AVX2 optimizations])], have_avx2=$enableval, have_avx2=yes) |
| 271 | AX_CHECK_COMPILE_FLAG(-mavx2, [AVX2_CFLAGS="-DOPS_AVX2 -mavx2 -ffast-math -ftree-vectorizer-verbose=0"], |
| 272 | [have_avx2=no]) |
| 273 | if test "$have_avx2" = "yes"; then |
| 274 | AC_DEFINE(HAVE_AVX2,1,[Define to enable AVX2 optimizations.]) |
| 275 | fi |
| 276 | AM_CONDITIONAL(HAVE_AVX2, test "$have_avx2" = "yes") |
| 277 | AC_SUBST(AVX2_CFLAGS) |
| 278 | |
| 279 | |
| 280 | # FMA support |
| 281 | AC_ARG_ENABLE(fma, [AS_HELP_STRING([--enable-fma],[enable FMA optimizations])], have_fma=$enableval, have_fma=yes) |
| 282 | AX_CHECK_COMPILE_FLAG(-mfma, [FMA_CFLAGS="-DOPS_FMA -mfma -ffast-math -ftree-vectorizer-verbose=0"], |
| 283 | [have_fma=no]) |
| 284 | if test "$have_fma" = "yes"; then |
| 285 | AC_DEFINE(HAVE_FMA,1,[Define to enable FMA optimizations.]) |
| 286 | fi |
| 287 | AM_CONDITIONAL(HAVE_FMA, test "$have_fma" = "yes") |
| 288 | AC_SUBST(FMA_CFLAGS) |
| 289 | |
| 290 | # Hifi2EP |
| 291 | AC_ARG_ENABLE(hifi2ep, [AS_HELP_STRING([--enable-hifi2ep],[enable HiFi2EP optimizations])], have_hifi2ep=$enableval, have_hifi2ep=yes) |
| 292 | AX_CHECK_COMPILE_FLAG(-mhifi2ep, [FMA_CFLAGS="-DOPS_HIFI2EP -mhifi2ep -ffast-math -ftree-vectorizer-verbose=0"], |
| 293 | [have_hifi2ep=no]) |
| 294 | if test "$have_hifi2ep" = "yes"; then |
| 295 | AC_DEFINE(HAVE_HIFI2EP,1,[Define to enable Hifi2 EP optimizations.]) |
| 296 | fi |
| 297 | AM_CONDITIONAL(HAVE_HIFI2EP, test "$have_hifi2ep" = "yes") |
| 298 | AC_SUBST(HIFI2EP_CFLAGS) |
| 299 | |
| 300 | # Hifi3 |
| 301 | AC_ARG_ENABLE(hifi3, [AS_HELP_STRING([--enable-hifi3],[enable HiFi3 optimizations])], have_hifi3=$enableval, have_hifi3=yes) |
| 302 | AX_CHECK_COMPILE_FLAG(-mhihi3, [FMA_CFLAGS="-DOPS_HIFI3 -mhifi3 -ffast-math -ftree-vectorizer-verbose=0"], |
| 303 | [have_hifi3=no]) |
| 304 | if test "$have_hifi3" = "yes"; then |
| 305 | AC_DEFINE(HAVE_HIFI3,1,[Define to enable Hifi3 optimizations.]) |
| 306 | fi |
| 307 | AM_CONDITIONAL(HAVE_HIFI3, test "$have_hifi3" = "yes") |
| 308 | AC_SUBST(HIFI3_CFLAGS) |
| 309 | |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 310 | # Test after CFLAGS set othewise test of cross compiler fails. |
| 311 | AM_PROG_AS |
| 312 | AM_PROG_AR |
| 313 | AC_PROG_CC |
| 314 | LT_INIT |
| 315 | AC_CHECK_TOOL([OBJCOPY], [objcopy], []) |
| 316 | AC_CHECK_TOOL([OBJDUMP], [objdump], []) |
| 317 | |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 318 | # Check for openssl - used by rimage |
| 319 | AC_CHECK_LIB([crypto], [OPENSSL_config], , [have_openssl="no"]) |
| 320 | if test "$have_rimage" = "yes"; then |
| 321 | if test "$have_openssl" = "no"; then |
| 322 | AC_MSG_ERROR([Need OpenSSL libcrypto for rimage code signing]) |
| 323 | fi |
| 324 | fi |
| 325 | |
| 326 | PEM_KEY_PREFIX="/usr/local/share/rimage" |
| 327 | AC_DEFINE_UNQUOTED([PEM_KEY_PREFIX], ["$PEM_KEY_PREFIX"], ["Path for PEM keys"]) |
| 328 | AC_SUBST(PEM_KEY_PREFIX) |
| 329 | |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 330 | AM_EXTRA_RECURSIVE_TARGETS([bin]) |
| 331 | |
| 332 | AM_EXTRA_RECURSIVE_TARGETS([vminstall]) |
| 333 | |
| 334 | AC_CONFIG_FILES([ |
| 335 | Makefile |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 336 | rimage/Makefile |
| 337 | rimage/keys/Makefile |
Marcin Maka | 6aee21b | 2018-04-13 13:03:42 +0200 | [diff] [blame^] | 338 | doc/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 339 | src/Makefile |
| 340 | src/tasks/Makefile |
| 341 | src/init/Makefile |
| 342 | src/arch/Makefile |
| 343 | src/arch/xtensa/Makefile |
| 344 | src/arch/xtensa/include/Makefile |
Liam Girdwood | b14e852 | 2018-01-10 17:36:41 +0000 | [diff] [blame] | 345 | src/arch/xtensa/include/arch/Makefile |
| 346 | src/arch/xtensa/include/xtensa/Makefile |
| 347 | src/arch/xtensa/include/xtensa/config/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 348 | src/arch/xtensa/hal/Makefile |
| 349 | src/arch/xtensa/xtos/Makefile |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 350 | src/arch/host/Makefile |
| 351 | src/arch/host/include/Makefile |
| 352 | src/arch/host/include/arch/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 353 | src/audio/Makefile |
Seppo Ingalsuo | 6a27483 | 2017-06-07 14:17:55 +0300 | [diff] [blame] | 354 | src/math/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 355 | src/drivers/Makefile |
| 356 | src/include/Makefile |
Pierre-Louis Bossart | 81708a5 | 2018-04-04 18:46:50 -0500 | [diff] [blame] | 357 | src/include/sof/Makefile |
| 358 | src/include/sof/audio/Makefile |
| 359 | src/include/sof/audio/coefficients/Makefile |
| 360 | src/include/sof/audio/coefficients/src/Makefile |
| 361 | src/include/sof/math/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 362 | src/include/uapi/Makefile |
| 363 | src/ipc/Makefile |
Ranjani Sridharan | 0505823 | 2018-01-24 22:42:38 -0800 | [diff] [blame] | 364 | src/library/Makefile |
| 365 | src/library/include/Makefile |
| 366 | src/library/include/platform/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 367 | src/lib/Makefile |
| 368 | src/platform/Makefile |
| 369 | src/platform/baytrail/Makefile |
| 370 | src/platform/baytrail/include/Makefile |
| 371 | src/platform/baytrail/include/platform/Makefile |
| 372 | src/platform/baytrail/include/xtensa/Makefile |
| 373 | src/platform/baytrail/include/xtensa/config/Makefile |
Liam Girdwood | 095c907 | 2018-01-23 14:53:00 +0000 | [diff] [blame] | 374 | src/platform/apollolake/Makefile |
| 375 | src/platform/apollolake/include/Makefile |
| 376 | src/platform/apollolake/include/platform/Makefile |
| 377 | src/platform/apollolake/include/xtensa/Makefile |
| 378 | src/platform/apollolake/include/xtensa/config/Makefile |
Liam Girdwood | f198ad9 | 2018-01-21 23:48:35 +0000 | [diff] [blame] | 379 | src/platform/haswell/Makefile |
| 380 | src/platform/haswell/include/Makefile |
| 381 | src/platform/haswell/include/platform/Makefile |
| 382 | src/platform/haswell/include/xtensa/Makefile |
| 383 | src/platform/haswell/include/xtensa/config/Makefile |
Liam Girdwood | 17c6bcf | 2018-01-23 15:44:08 +0000 | [diff] [blame] | 384 | src/platform/cannonlake/Makefile |
| 385 | src/platform/cannonlake/include/Makefile |
| 386 | src/platform/cannonlake/include/platform/Makefile |
| 387 | src/platform/cannonlake/include/xtensa/Makefile |
| 388 | src/platform/cannonlake/include/xtensa/config/Makefile |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 389 | ]) |
| 390 | AC_OUTPUT |
| 391 | |
| 392 | echo " |
| 393 | ---{ $PACKAGE_NAME $VERSION }--- |
| 394 | |
| 395 | Target Architecture: ${ARCH} |
| 396 | Target Platform: ${PLATFORM} |
Sebastien Guiriec | ca23f51 | 2016-11-02 08:44:19 +0100 | [diff] [blame] | 397 | Target Core: ${XTENSA_CORE} |
Liam Girdwood | 05ef434 | 2018-02-13 20:29:40 +0000 | [diff] [blame] | 398 | PEM: ${PEM_KEY_PREFIX} |
Liam Girdwood | c0dfb4e | 2016-09-21 15:57:22 +0100 | [diff] [blame] | 399 | |
| 400 | Compiler: ${CC} |
| 401 | CFLAGS: ${CFLAGS} |
| 402 | LDFLAGS: ${LDFLAGS} |
| 403 | ARCH_CFLAGS: ${ARCH_CFLAGS} |
| 404 | ARCH_LDFLAGS: ${ARCH_LDFLAGS} |
| 405 | " |
| 406 | |