diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 892cc2c08d98..000000000000 --- a/Makefile.am +++ /dev/null @@ -1,71 +0,0 @@ -if BUILD_RIMAGE -SUBDIRS = rimage -else -SUBDIRS = doc src test -endif - -ACLOCAL_AMFLAGS = -I m4 - -EXTRA_DIST = version.sh - -SRC_DIR = $(abs_top_builddir)/src - -if BUILD_HOST -export ARCH_INCDIR = \ - -I $(SRC_DIR)/arch/$(ARCH)/include - -export SOF_INCDIR = \ - -I $(SRC_DIR)/include - -if BUILD_LIB -export PLATFORM_INCDIR = \ - -I $(SRC_DIR)/library/include -endif - -else -export SOF_INCDIR = \ - -I $(SRC_DIR)/include \ - -I $(ROOT_DIR)/include - -ARCH_INCDIR = -I $(SRC_DIR)/arch/$(ARCH)/include - -if BUILD_XTENSA_SMP -ARCH_INCDIR += \ - -I $(SRC_DIR)/arch/$(ARCH)/smp/include \ - -I $(SRC_DIR)/arch/$(ARCH)/smp/xtos -else -ARCH_INCDIR += \ - -I $(SRC_DIR)/arch/$(ARCH)/up/include \ - -I $(SRC_DIR)/arch/$(ARCH)/up/xtos -endif - -export ARCH_INCDIR - -PLATFORM_INCDIR = -I $(SRC_DIR)/platform/$(PLATFORM)/include - -if XCC -PLATFORM_INCDIR += \ - -I $(ROOT_DIR)/arch/include -else -PLATFORM_INCDIR += \ - -I $(SRC_DIR)/platform/$(PLATFORM)/include/arch -endif - -export PLATFORM_INCDIR - -endif - -dist-hook: - ./version.sh $(top_srcdir) - cat .version > $(distdir)/.tarball-version - cat .version > $(distdir)/.version - -doc-dummy: - -doc: doc-dummy - $(MAKE) -C doc doc - -if !BUILD_RIMAGE -all-local: - rm -f $(top_srcdir)/src/include/version.h -endif diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 62683b0b3db0..000000000000 --- a/autogen.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -rm -f .build -if [ ! -f .git/hooks/pre-commit ]; then - ln -s -f ../../scripts/sof-pre-commit-hook.sh .git/hooks/pre-commit -fi -if [ ! -f .git/hooks/post-commit ]; then - ln -s -f ../../scripts/sof-post-commit-hook.sh .git/hooks/post-commit -fi -libtoolize -c --force -aclocal -I m4 --install -autoconf -Wall -autoheader -automake -a --copy --foreign --add-missing diff --git a/configure.ac b/configure.ac deleted file mode 100644 index c656f778ccb6..000000000000 --- a/configure.ac +++ /dev/null @@ -1,686 +0,0 @@ -AC_PREREQ([2.69]) -AC_INIT([sof],[m4_esyscmd(./version.sh)],[sound-open-firmware@alsa-project.org]) -AC_CONFIG_SRCDIR([src/init/init.c]) -AC_CONFIG_HEADERS([src/include/config.h]) -AC_CONFIG_MACRO_DIRS([m4]) -AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability subdir-objects silent-rules color-tests dist-xz tar-ustar]) - -# Initialize maintainer mode -AM_MAINTAINER_MODE([enable]) - -# get version info from git -m4_define(sof_major, `cat .version | cut -dv -f2 | cut -d. -f1`) -m4_define(sof_minor, `cat .version | cut -d. -f2 | cut -d- -f1`) -m4_define(sof_micro, `cat .version | cut -d. -f3 | cut -d- -f1`) -AC_DEFINE_UNQUOTED([SOF_MAJOR], sof_major, [Sof major version]) -AC_DEFINE_UNQUOTED([SOF_MINOR], sof_minor, [Sof minor version]) - -# micr version can sometimes be NULL, so make it 0 -if test sof_micro != ""; then - AC_DEFINE_UNQUOTED([SOF_MICRO], sof_micro, [Sof micro version]) -else - AC_DEFINE_UNQUOTED([SOF_MICRO], 0, [Sof micro version]) -fi - -AC_CANONICAL_HOST - -# Macro to set flag if supported -AC_DEFUN([ADD_OPTIONAL_AM_CFLAGS], - [SAVED_CFLAGS="$CFLAGS" - CFLAGS="-Werror $1" - AC_MSG_CHECKING([whether $CC supports $1]) - AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main(void) { return 0; }])], - [AC_MSG_RESULT([yes])] - [AM_CFLAGS="$AM_CFLAGS $1"], - [AC_MSG_RESULT([no])]) - CFLAGS="$SAVED_CFLAGS"]) - -# General assembler flags -ASFLAGS="-DASSEMBLY" -AC_SUBST(ASFLAGS) - -# Cross compiler tool libgcc and headers -AC_ARG_WITH([root-dir], - AS_HELP_STRING([--with-root-dir], [Specify location of cross gcc libraries and headers]), - [], [with_root_dir=no]) - -# MEU location -AC_ARG_WITH([meu], - AS_HELP_STRING([--with-meu], [Specify location of MEU tool]), - [], [with_meu=no]) -if test "x$with_meu" != "xno"; then - MEU_PATH="$with_meu" - AC_SUBST(MEU_PATH) - - MEU_VERSION=$($with_meu/meu -ver | grep "Version:" | cut -d" " -f6) - AX_COMPARE_VERSION([$MEU_VERSION], [ge], [12.0.0.1035], [MEU_OFFSET=1088], [MEU_OFFSET=1152]) - AC_SUBST(MEU_OFFSET) -fi -AM_CONDITIONAL(USE_MEU, test "x$with_meu" != "xno") - -# Private key location -AC_ARG_WITH([key], - AS_HELP_STRING([--with-key], [Specify location of private key]), - [], [with_key=no]) -if test "x$with_meu" != "xno"; then - if test "x$with_key" != "xno"; then - PRIVATE_KEY="$with_key" - AC_SUBST(PRIVATE_KEY) - else - AC_MSG_ERROR([Private key location not specified]) - fi -fi - -#check if we should enable debug build -AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug, default: no])], enable_debug=$enableval, enable_debug=no) -if test "$enable_debug" = "yes"; then - AC_DEFINE([DEBUG_BUILD], [1], [Configure to build debug version]) -fi - -# check if we are building ROMs -AC_ARG_ENABLE(roms, [AS_HELP_STRING([--enable-roms],[build roms])], have_roms=$enableval, have_roms=no) -if test "$have_roms" = "yes"; then - AC_DEFINE([CONFIG_ENABLE_ROMS], [1], [Enable building ROMs for QEMU]) -fi - -# check if we should enable GDB debugging -AC_ARG_ENABLE(gdb_debug, [AS_HELP_STRING([--enable-gdb-debug],[gdb debug supported])], enable_gdb_debug=$enableval, enable_gdb_debug=no) -if test "$enable_gdb_debug" = "yes"; then - AC_DEFINE([CONFIG_GDB_DEBUG], [1], [Enable debugging with GDB]) -fi - -# check if we should enable heap alloc debugging -AC_ARG_ENABLE(heap_debug, [AS_HELP_STRING([--enable-heap-debug],[heap debug supported])], enable_heap_debug=$enableval, enable_heap_debug=no) -if test "$enable_heap_debug" = "yes"; then - AC_DEFINE([CONFIG_DEBUG_HEAP], [1], [Enable debugging of heap allocations]) -fi - -# check if we are building FW image or library -AC_ARG_ENABLE(library, [AS_HELP_STRING([--enable-library],[build library])], have_library=$enableval, have_library=no) -if test "$have_library" = "yes"; then - AC_DEFINE([CONFIG_LIB], [1], [Configure for Shared Library]) -fi -AM_CONDITIONAL(BUILD_LIB, test "$have_library" = "yes") - -# check if we are building tools -AC_ARG_ENABLE(rimage, [AS_HELP_STRING([--enable-rimage],[build rimage tool])], have_rimage=$enableval, have_rimage=no) -IMPLICIT_FALLTHROUGH_FLAG="" -if test "$have_rimage" = "yes"; then - AC_DEFINE([CONFIG_RIMAGE], [1], [Configure to build rimage]) - AM_CFLAGS="-O2 -g -Wall -Werror -Wl,-EL -Wmissing-prototypes" - IMPLICIT_FALLTHROUGH_FLAG="-Wimplicit-fallthrough=3" -fi -AM_CONDITIONAL(BUILD_RIMAGE, test "$have_rimage" = "yes") - -# check if we are building docs -AC_ARG_ENABLE(doc, [AS_HELP_STRING([--enable-doc],[build doc])], have_doc=$enableval, have_doc=no) -if test "$have_doc" = "yes"; then - AC_DEFINE([CONFIG_DOC], [1], [Configure to build doc]) -fi -AM_CONDITIONAL(BUILD_DOC, test "$have_doc" = "yes") - -# Disable DMIC driver if requested, by default build for supported platforms -AC_ARG_ENABLE([dmic], AS_HELP_STRING([--disable-dmic], [Disable DMIC driver])) -AS_IF([test "x$enable_dmic" != "xno"], [ - AC_DEFINE([CONFIG_DMIC], [1], [Configure to build DMIC driver]) -]) - -# Architecture support -AC_ARG_WITH([arch], - AS_HELP_STRING([--with-arch], [Specify DSP architecture]), - [], [with_arch=no]) - -case "$with_arch" in - xtensa*) - - ARCH_CFLAGS="-mtext-section-literals" - - ARCH_LDFLAGS="-nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static" - - # automake FLAGS defined here - AM_CFLAGS="-fno-inline-functions -nostdlib -mlongcalls" - AM_LDFLAGS="" - AM_CCASFLAGS="" - - # GCC needs these additional flags on top of any user flags. - CFLAGS="${CFLAGS:+$CFLAGS } -O2 -g -Wall -Werror -Wl,-EL -Wmissing-prototypes" - LDFLAGS="${LDFLAGS:+$LDFLAGS } -nostdlib" - CCASFLAGS="${CCASFLAGS:+$CCASFLAGS } -fno-inline-functions -nostdlib -mlongcalls" - - ARCH="xtensa" - AC_SUBST(ARCH) - - AS_IF([test "x$with_root_dir" = xno], - AC_MSG_ERROR([Please specify cross compiler root header directory]), - [ROOT_DIR=$with_root_dir]) - AC_SUBST(ROOT_DIR) - ;; - host*) - - ARCH_CFLAGS="-g" - - # automake FLAGS defined here - AM_CFLAGS="-O3 -Wall -Werror -Wl,-EL -Wmissing-prototypes" - IMPLICIT_FALLTHROUGH_FLAG="-Wimplicit-fallthrough=3" - AM_LDFLAGS="-lpthread" - AM_CCASFLAGS="-O3 -Wall -Werror -Wl,-EL -Wmissing-prototypes" - - ARCH="host" - AC_SUBST(ARCH) - AC_DEFINE([CONFIG_HOST], [1], [Configure for Host]) - ;; - *) - if test "$have_rimage" = "no" && test "$have_doc" = "no" ; then - AC_MSG_ERROR([DSP architecture not specified]) - fi - ;; -esac - -ADD_OPTIONAL_AM_CFLAGS([-Wimplicit-fallthrough=3]) - -AC_SUBST(ARCH_CFLAGS) -AC_SUBST(ARCH_LDFLAGS) - -AC_SUBST(AM_CFLAGS) -AC_SUBST(AM_LDFLAGS) -AC_SUBST(AM_CCASFLAGS) - -AM_CONDITIONAL(BUILD_XTENSA, test "$ARCH" = "xtensa") -AM_CONDITIONAL(BUILD_HOST, test "$ARCH" = "host") - -# check for xtensa extension -AM_CONDITIONAL(BUILD_XTENSA_SMP, test "$with_arch" = "xtensa-smp") - -# Cmocka tests -AC_ARG_WITH([cmocka-prefix], - AS_HELP_STRING([--with-cmocka-prefix], [Path to cmocka]), - [], [with_cmocka_prefix="no"]) - -# in case of native build, cmocka may be installed -HAVE_CMOCKA_PKG=no -AC_CHECK_LIB(cmocka, _cmocka_run_group_tests, [HAVE_CMOCKA_PKG=yes]) - -if test "x$with_arch" != "xno"; then - if test "x$with_cmocka_prefix" = "xno"; then - if test "$ARCH" = "xtensa"; then - AC_MSG_WARN([Need cmocka to run unit tests. Path to cmocka not specified. Please use --with-cmocka-prefix option.]) - elif test "x$HAVE_CMOCKA_PKG" = "xno"; then - AC_MSG_WARN([Need cmocka to run unit tests. No cmocka library found. Please install cmocka or use --with-cmocka-prefix option.]) - fi - else - CMOCKA_PREFIX="$with_cmocka_prefix" - AC_SUBST(CMOCKA_PREFIX) - fi -fi - -AM_CONDITIONAL(HAVE_CMOCKA_PREFIX, test "x$with_cmocka_prefix" != "xno") - -# Platform support -AC_ARG_WITH([platform], - AS_HELP_STRING([--with-platform], [Specify Host Platform]), - [], [with_platform=no]) - -case "$with_platform" in - baytrail*) - - PLATFORM_LDSCRIPT="baytrail.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="baytrail" - AC_SUBST(PLATFORM) - - FW_NAME="byt" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifiep_bd5" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_BAYTRAIL], [1], [Configure for Baytrail]) - AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - cherrytrail*) - - PLATFORM_LDSCRIPT="baytrail.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="baytrail" - AC_SUBST(PLATFORM) - - FW_NAME="cht" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifiep_bd5" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_CHERRYTRAIL], [1], [Configure for Cherrytrail]) - AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - apollolake*) - - PLATFORM_LDSCRIPT="apollolake.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="apollolake" - AC_SUBST(PLATFORM) - - FW_NAME="apl" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi3_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_APOLLOLAKE], [1], [Configure for Apollolake]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) - AC_DEFINE([CONFIG_MEM_WND], [1], [Configure Memory Windows]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - kabylake*) - - PLATFORM_LDSCRIPT="apollolake.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="apollolake" - AC_SUBST(PLATFORM) - - FW_NAME="kbl" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi3_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_APOLLOLAKE], [1], [Configure for Apollolake]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) - AC_DEFINE([CONFIG_MEM_WND], [1], [Configure Memory Windows]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - skylake*) - - PLATFORM_LDSCRIPT="apollolake.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="apollolake" - AC_SUBST(PLATFORM) - - FW_NAME="skl" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi3_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_APOLLOLAKE], [1], [Configure for Apollolake]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) - AC_DEFINE([CONFIG_MEM_WND], [1], [Configure Memory Windows]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - haswell*) - - PLATFORM_LDSCRIPT="haswell.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="haswell" - AC_SUBST(PLATFORM) - - FW_NAME="hsw" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifiep_bd5" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_HASWELL], [1], [Configure for Haswell]) - AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) - ;; - broadwell*) - - PLATFORM_LDSCRIPT="haswell.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="haswell" - AC_SUBST(PLATFORM) - - FW_NAME="bdw" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifiep_bd5" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_BROADWELL], [1], [Configure for Broadwell]) - AC_DEFINE([CONFIG_HOST_PTABLE], [1], [Configure handling host page table]) - ;; - cannonlake*) - - PLATFORM_LDSCRIPT="cannonlake.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="cannonlake" - AC_SUBST(PLATFORM) - - FW_NAME="cnl" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi4_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_CANNONLAKE], [1], [Configure for Cannonlake]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) - AC_DEFINE([CONFIG_MEM_WND], [1], [Configure Memory Windows]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - suecreek*) - - PLATFORM_LDSCRIPT="suecreek.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="suecreek" - AC_SUBST(PLATFORM) - - FW_NAME="sue" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi4_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_SUECREEK], [1], [Configure for Suecreek]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - icelake*) - - PLATFORM_LDSCRIPT="icelake.x" - AC_SUBST(PLATFORM_LDSCRIPT) - - PLATFORM="icelake" - AC_SUBST(PLATFORM) - - FW_NAME="icl" - AC_SUBST(FW_NAME) - - XTENSA_CORE="hifi4_std" - AC_SUBST(XTENSA_CORE) - - AC_DEFINE([CONFIG_ICELAKE], [1], [Configure for Icelake]) - AC_DEFINE([CONFIG_BOOT_LOADER], [1], [Configure Boot Loader]) - AC_DEFINE([CONFIG_IRQ_MAP], [1], [Configure IRQ maps]) - AC_DEFINE([CONFIG_DMA_GW], [1], [Configure DMA Gateway]) - AC_DEFINE([CONFIG_MEM_WND], [1], [Configure Memory Windows]) - AC_DEFINE([CONFIG_TASK_HAVE_PRIORITY_MEDIUM], [1], [Configure handling medium priority task]) - ;; - *) - if test "$have_rimage" = "no" && test "$have_doc" = "no"; then - if test "$ARCH" = "host"; then - PLATFORM="host" - AC_SUBST(PLATFORM) - else - AC_MSG_ERROR([Host platform not specified]) - fi - fi - ;; -esac - -AM_CONDITIONAL(BUILD_BAYTRAIL, test "$FW_NAME" = "byt") -AM_CONDITIONAL(BUILD_CHERRYTRAIL, test "$FW_NAME" = "cht") -AM_CONDITIONAL(BUILD_HASWELL, test "$FW_NAME" = "hsw") -AM_CONDITIONAL(BUILD_BROADWELL, test "$FW_NAME" = "bdw") -AM_CONDITIONAL(BUILD_APOLLOLAKE, test "$FW_NAME" = "apl" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl") -AM_CONDITIONAL(BUILD_CANNONLAKE, test "$FW_NAME" = "cnl") -AM_CONDITIONAL(BUILD_SUECREEK, test "$FW_NAME" = "sue") -AM_CONDITIONAL(BUILD_ICELAKE, test "$FW_NAME" = "icl") -AM_CONDITIONAL(BUILD_BOOTLOADER, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl" -o "$FW_NAME" = "icl" -o "$FW_NAME" = "sue" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl") -AM_CONDITIONAL(BUILD_CAVS, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl" -o "$FW_NAME" = "icl" -o "$FW_NAME" = "sue" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl") -AM_CONDITIONAL(BUILD_MODULE, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl" -o "$FW_NAME" = "icl" -o "$FW_NAME" = "sue" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl") -AM_CONDITIONAL(BUILD_APL_SSP, test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl" -o "$FW_NAME" = "icl" -o "$FW_NAME" = "sue" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl") -AM_CONDITIONAL(BUILD_VM_ROM, (test "$have_roms" = "yes") && (test "$FW_NAME" = "apl" -o "$FW_NAME" = "cnl" -o "$FW_NAME" = "icl" -o "$FW_NAME" = "sue" -o "$FW_NAME" = "skl" -o "$FW_NAME" = "kbl")) - - -# DSP core support (Optional) -AC_ARG_WITH([dsp-core], - AS_HELP_STRING([--with-dsp-core], [Specify DSP Core]), - [], [with_dsp_core=no]) - -case "$with_dsp_core" in - *) - XTENSA_CORE="$with_dsp_core" - AC_SUBST(XTENSA_CORE) - ;; - -esac - -PLATFORM_ROM_LDSCRIPT="rom.x" -AC_SUBST(PLATFORM_ROM_LDSCRIPT) - -PLATFORM_BOOT_LDR_LDSCRIPT="boot_ldr.x" -AC_SUBST(PLATFORM_BOOT_LDR_LDSCRIPT) - -# Optimisation settings and checks - -# SSE4_2 support -AC_ARG_ENABLE(sse42, [AS_HELP_STRING([--enable-sse42],[enable SSE42 optimizations])], have_sse42=$enableval, have_sse42=yes) -AX_CHECK_COMPILE_FLAG(-msse4.2, [SSE42_CFLAGS="-DOPS_SSE42 -msse4.2 -ffast-math -ftree-vectorizer-verbose=0"], - [have_sse42=no]) -if test "$have_sse42" = "yes"; then - AC_DEFINE(HAVE_SSE42,1,[Define to enable SSE42 optimizations.]) -fi -AM_CONDITIONAL(HAVE_SSE42, test "$have_sse42" = "yes") -AC_SUBST(SSE42_CFLAGS) - -# AVX support -AC_ARG_ENABLE(avx, [AS_HELP_STRING([--enable-avx],[enable AVX optimizations])], have_avx=$enableval, have_avx=yes) -AX_CHECK_COMPILE_FLAG(-mavx, [AVX_CFLAGS="-DOPS_AVX -mavx -ffast-math -ftree-vectorizer-verbose=0"], - [have_avx=no]) -if test "$have_avx" = "yes"; then - AC_DEFINE(HAVE_AVX,1,[Define to enable AVX optimizations.]) -fi -AM_CONDITIONAL(HAVE_AVX, test "$have_avx" = "yes") -AC_SUBST(AVX_CFLAGS) - - -# AVX2 support -AC_ARG_ENABLE(avx2, [AS_HELP_STRING([--enable-avx2],[enable AVX2 optimizations])], have_avx2=$enableval, have_avx2=yes) -AX_CHECK_COMPILE_FLAG(-mavx2, [AVX2_CFLAGS="-DOPS_AVX2 -mavx2 -ffast-math -ftree-vectorizer-verbose=0"], - [have_avx2=no]) -if test "$have_avx2" = "yes"; then - AC_DEFINE(HAVE_AVX2,1,[Define to enable AVX2 optimizations.]) -fi -AM_CONDITIONAL(HAVE_AVX2, test "$have_avx2" = "yes") -AC_SUBST(AVX2_CFLAGS) - - -# FMA support -AC_ARG_ENABLE(fma, [AS_HELP_STRING([--enable-fma],[enable FMA optimizations])], have_fma=$enableval, have_fma=yes) -AX_CHECK_COMPILE_FLAG(-mfma, [FMA_CFLAGS="-DOPS_FMA -mfma -ffast-math -ftree-vectorizer-verbose=0"], - [have_fma=no]) -if test "$have_fma" = "yes"; then - AC_DEFINE(HAVE_FMA,1,[Define to enable FMA optimizations.]) -fi -AM_CONDITIONAL(HAVE_FMA, test "$have_fma" = "yes") -AC_SUBST(FMA_CFLAGS) - -# Hifi2EP -AC_ARG_ENABLE(hifi2ep, [AS_HELP_STRING([--enable-hifi2ep],[enable HiFi2EP optimizations])], have_hifi2ep=$enableval, have_hifi2ep=yes) -AX_CHECK_COMPILE_FLAG(-mhifi2ep, [FMA_CFLAGS="-DOPS_HIFI2EP -mhifi2ep -ffast-math -ftree-vectorizer-verbose=0"], - [have_hifi2ep=no]) -if test "$have_hifi2ep" = "yes"; then - AC_DEFINE(HAVE_HIFI2EP,1,[Define to enable Hifi2 EP optimizations.]) -fi -AM_CONDITIONAL(HAVE_HIFI2EP, test "$have_hifi2ep" = "yes") -AC_SUBST(HIFI2EP_CFLAGS) - -# Hifi3 -AC_ARG_ENABLE(hifi3, [AS_HELP_STRING([--enable-hifi3],[enable HiFi3 optimizations])], have_hifi3=$enableval, have_hifi3=yes) -AX_CHECK_COMPILE_FLAG(-mhihi3, [FMA_CFLAGS="-DOPS_HIFI3 -mhifi3 -ffast-math -ftree-vectorizer-verbose=0"], - [have_hifi3=no]) -if test "$have_hifi3" = "yes"; then - AC_DEFINE(HAVE_HIFI3,1,[Define to enable Hifi3 optimizations.]) -fi -AM_CONDITIONAL(HAVE_HIFI3, test "$have_hifi3" = "yes") -AC_SUBST(HIFI3_CFLAGS) - -# Test after CFLAGS set othewise test of cross compiler fails. -AM_PROG_AS -AM_PROG_AR -AC_PROG_CC -LT_INIT -AC_CHECK_TOOL([OBJCOPY], [objcopy], []) -AC_CHECK_TOOL([OBJDUMP], [objdump], []) - -# Check for openssl - used by rimage -AC_CHECK_LIB([crypto], [OPENSSL_config], , [have_openssl="no"]) -if test "$have_rimage" = "yes"; then - if test "$have_openssl" = "no"; then - AC_MSG_ERROR([Need OpenSSL libcrypto for rimage code signing]) - fi -fi - -if test "x$prefix" == "xNONE"; then -PEM_KEY_PREFIX="/usr/local/share/rimage" -else -PEM_KEY_PREFIX=$prefix"/share/rimage" -fi -AC_DEFINE_UNQUOTED([PEM_KEY_PREFIX], ["$PEM_KEY_PREFIX"], ["Path for PEM keys"]) -AC_SUBST(PEM_KEY_PREFIX) - -# Check for doxygen and graphviz - used by make doc -AC_CHECK_PROG(have_doxygen, doxygen, true, false) -if test "$have_doxygen" = "false"; then - AC_MSG_WARN([Need doxygen to build documentation]) -fi -AC_CHECK_PROG(have_graphviz, dot, true, false) -if test "$have_graphviz" = "false"; then - AC_MSG_WARN([Need graphviz to build documentation]) -fi - -# Check for compiler type -AM_CONDITIONAL(XCC, test "$CC" = "xt-xcc") - -AM_EXTRA_RECURSIVE_TARGETS([bin]) - -AM_EXTRA_RECURSIVE_TARGETS([vminstall]) - -AC_CONFIG_FILES([ - Makefile - rimage/Makefile - rimage/keys/Makefile - doc/Makefile - src/Makefile - src/tasks/Makefile - src/init/Makefile - src/arch/Makefile - src/arch/xtensa/Makefile - src/arch/xtensa/include/Makefile - src/arch/xtensa/include/arch/Makefile - src/arch/xtensa/include/xtensa/Makefile - src/arch/xtensa/include/xtensa/config/Makefile - src/arch/xtensa/smp/Makefile - src/arch/xtensa/smp/hal/Makefile - src/arch/xtensa/smp/include/Makefile - src/arch/xtensa/smp/include/arch/Makefile - src/arch/xtensa/smp/xtos/Makefile - src/arch/xtensa/up/Makefile - src/arch/xtensa/up/hal/Makefile - src/arch/xtensa/up/include/Makefile - src/arch/xtensa/up/include/arch/Makefile - src/arch/xtensa/up/xtos/Makefile - src/arch/host/Makefile - src/arch/host/include/Makefile - src/arch/host/include/arch/Makefile - src/audio/Makefile - src/math/Makefile - src/drivers/Makefile - src/drivers/intel/Makefile - src/drivers/intel/baytrail/Makefile - src/drivers/intel/haswell/Makefile - src/drivers/intel/cavs/Makefile - src/include/Makefile - src/include/sof/Makefile - src/include/sof/audio/Makefile - src/include/sof/audio/coefficients/Makefile - src/include/sof/audio/coefficients/src/Makefile - src/include/sof/drivers/Makefile - src/include/sof/math/Makefile - src/include/uapi/Makefile - src/include/uapi/ipc/Makefile - src/include/uapi/user/Makefile - src/ipc/Makefile - src/library/Makefile - src/library/include/Makefile - src/library/include/platform/Makefile - src/lib/Makefile - src/host/Makefile - src/platform/Makefile - src/platform/baytrail/Makefile - src/platform/baytrail/include/Makefile - src/platform/baytrail/include/arch/Makefile - src/platform/baytrail/include/arch/xtensa/Makefile - src/platform/baytrail/include/arch/xtensa/config/Makefile - src/platform/baytrail/include/platform/Makefile - src/platform/apollolake/Makefile - src/platform/apollolake/include/Makefile - src/platform/apollolake/include/arch/Makefile - src/platform/apollolake/include/arch/xtensa/Makefile - src/platform/apollolake/include/arch/xtensa/config/Makefile - src/platform/apollolake/include/platform/Makefile - src/platform/haswell/Makefile - src/platform/haswell/include/Makefile - src/platform/haswell/include/arch/Makefile - src/platform/haswell/include/arch/xtensa/Makefile - src/platform/haswell/include/arch/xtensa/config/Makefile - src/platform/haswell/include/platform/Makefile - src/platform/cannonlake/Makefile - src/platform/cannonlake/include/Makefile - src/platform/cannonlake/include/arch/Makefile - src/platform/cannonlake/include/arch/xtensa/Makefile - src/platform/cannonlake/include/arch/xtensa/config/Makefile - src/platform/cannonlake/include/platform/Makefile - src/platform/suecreek/Makefile - src/platform/suecreek/include/Makefile - src/platform/suecreek/include/arch/Makefile - src/platform/suecreek/include/arch/xtensa/Makefile - src/platform/suecreek/include/arch/xtensa/config/Makefile - src/platform/suecreek/include/platform/Makefile - src/platform/icelake/Makefile - src/platform/icelake/include/Makefile - src/platform/icelake/include/arch/Makefile - src/platform/icelake/include/arch/xtensa/Makefile - src/platform/icelake/include/arch/xtensa/config/Makefile - src/platform/icelake/include/platform/Makefile - src/platform/intel/Makefile - src/platform/intel/cavs/Makefile - test/Makefile - test/cmocka/Makefile - src/arch/xtensa/include/arch/gdb/Makefile - src/arch/xtensa/gdb/Makefile -]) -AC_REQUIRE_AUX_FILE([tap-driver.sh]) -AC_OUTPUT - -echo " ----{ $PACKAGE_NAME $VERSION }--- - -Target Architecture: ${ARCH} -Target Platform: ${PLATFORM} -Target Core: ${XTENSA_CORE} -Install Prefix: ${prefix} -PEM: ${PEM_KEY_PREFIX} - -Compiler: ${CC} -OBJCOPY: ${OBJCOPY} -OBJDUMP: ${OBJDUMP} -CFLAGS: ${CFLAGS} -LDFLAGS: ${LDFLAGS} -ARCH_CFLAGS: ${ARCH_CFLAGS} -ARCH_LDFLAGS: ${ARCH_LDFLAGS} -A@&t@M_CFLAGS: ${AM_CFLAGS} -A@&t@M_LDFLAGS: ${AM_LDFLAGS} -A@&t@M_CCASFLAGS: ${AM_CCASFLAGS} -" - diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index f3db6588db4a..000000000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -EXTRA_DIST=sof.doxygen.in - -AM_CPPFLAGS=-I$(top_srcdir)/include - -doc: - test -e sof.doxygen || sed s:[@]top_srcdir[@]:..:g sof.doxygen.in > sof.doxygen - doxygen sof.doxygen - -doc-clean: - rm -rf $(top_srcdir)/doc/doxygen/* diff --git a/m4/ax_check_compile_flag.m4 b/m4/ax_check_compile_flag.m4 deleted file mode 100644 index dcabb92a1413..000000000000 --- a/m4/ax_check_compile_flag.m4 +++ /dev/null @@ -1,74 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) -# -# DESCRIPTION -# -# Check whether the given FLAG works with the current language's compiler -# or gives an error. (Warnings, however, are ignored) -# -# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on -# success/failure. -# -# If EXTRA-FLAGS is defined, it is added to the current language's default -# flags (e.g. CFLAGS) when the check is done. The check is thus made with -# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to -# force the compiler to issue an error when a bad flag is given. -# -# INPUT gives an alternative input source to AC_COMPILE_IFELSE. -# -# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this -# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2011 Maarten Bosmans -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by the -# Free Software Foundation, either version 3 of the License, or (at your -# option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General -# Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 5 - -AC_DEFUN([AX_CHECK_COMPILE_FLAG], -[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF -AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl -AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ - ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS - _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" - AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], - [AS_VAR_SET(CACHEVAR,[yes])], - [AS_VAR_SET(CACHEVAR,[no])]) - _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) -AS_VAR_IF(CACHEVAR,yes, - [m4_default([$2], :)], - [m4_default([$3], :)]) -AS_VAR_POPDEF([CACHEVAR])dnl -])dnl AX_CHECK_COMPILE_FLAGS diff --git a/m4/ax_compare_version.m4 b/m4/ax_compare_version.m4 deleted file mode 100644 index 6df1c5301aab..000000000000 --- a/m4/ax_compare_version.m4 +++ /dev/null @@ -1,178 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_compare_version.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) -# -# DESCRIPTION -# -# This macro compares two version strings. Due to the various number of -# minor-version numbers that can exist, and the fact that string -# comparisons are not compatible with numeric comparisons, this is not -# necessarily trivial to do in a autoconf script. This macro makes doing -# these comparisons easy. -# -# The six basic comparisons are available, as well as checking equality -# limited to a certain number of minor-version levels. -# -# The operator OP determines what type of comparison to do, and can be one -# of: -# -# eq - equal (test A == B) -# ne - not equal (test A != B) -# le - less than or equal (test A <= B) -# ge - greater than or equal (test A >= B) -# lt - less than (test A < B) -# gt - greater than (test A > B) -# -# Additionally, the eq and ne operator can have a number after it to limit -# the test to that number of minor versions. -# -# eq0 - equal up to the length of the shorter version -# ne0 - not equal up to the length of the shorter version -# eqN - equal up to N sub-version levels -# neN - not equal up to N sub-version levels -# -# When the condition is true, shell commands ACTION-IF-TRUE are run, -# otherwise shell commands ACTION-IF-FALSE are run. The environment -# variable 'ax_compare_version' is always set to either 'true' or 'false' -# as well. -# -# Examples: -# -# AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8]) -# AX_COMPARE_VERSION([3.15],[lt],[3.15.8]) -# -# would both be true. -# -# AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8]) -# AX_COMPARE_VERSION([3.15],[gt],[3.15.8]) -# -# would both be false. -# -# AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8]) -# -# would be true because it is only comparing two minor versions. -# -# AX_COMPARE_VERSION([3.15.7],[eq0],[3.15]) -# -# would be true because it is only comparing the lesser number of minor -# versions of the two values. -# -# Note: The characters that separate the version numbers do not matter. An -# empty string is the same as version 0. OP is evaluated by autoconf, not -# configure, so must be a string, not a variable. -# -# The author would like to acknowledge Guido Draheim whose advice about -# the m4_case and m4_ifvaln functions make this macro only include the -# portions necessary to perform the specific comparison specified by the -# OP argument in the final configure script. -# -# LICENSE -# -# Copyright (c) 2008 Tim Toolan -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 13 - -dnl ######################################################################### -AC_DEFUN([AX_COMPARE_VERSION], [ - AC_REQUIRE([AC_PROG_AWK]) - - # Used to indicate true or false condition - ax_compare_version=false - - # Convert the two version strings to be compared into a format that - # allows a simple string comparison. The end result is that a version - # string of the form 1.12.5-r617 will be converted to the form - # 0001001200050617. In other words, each number is zero padded to four - # digits, and non digits are removed. - AS_VAR_PUSHDEF([A],[ax_compare_version_A]) - A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ - -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/[[^0-9]]//g'` - - AS_VAR_PUSHDEF([B],[ax_compare_version_B]) - B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \ - -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \ - -e 's/[[^0-9]]//g'` - - dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary - dnl # then the first line is used to determine if the condition is true. - dnl # The sed right after the echo is to remove any indented white space. - m4_case(m4_tolower($2), - [lt],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"` - ], - [gt],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"` - ], - [le],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"` - ], - [ge],[ - ax_compare_version=`echo "x$A -x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"` - ],[ - dnl Split the operator from the subversion count if present. - m4_bmatch(m4_substr($2,2), - [0],[ - # A count of zero means use the length of the shorter version. - # Determine the number of characters in A and B. - ax_compare_version_len_A=`echo "$A" | $AWK '{print(length)}'` - ax_compare_version_len_B=`echo "$B" | $AWK '{print(length)}'` - - # Set A to no more than B's length and B to no more than A's length. - A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"` - B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"` - ], - [[0-9]+],[ - # A count greater than zero means use only that many subversions - A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` - B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"` - ], - [.+],[ - AC_WARNING( - [invalid OP numeric parameter: $2]) - ],[]) - - # Pad zeros at end of numbers to make same length. - ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`" - B="$B`echo $A | sed 's/./0/g'`" - A="$ax_compare_version_tmp_A" - - # Check for equality or inequality as necessary. - m4_case(m4_tolower(m4_substr($2,0,2)), - [eq],[ - test "x$A" = "x$B" && ax_compare_version=true - ], - [ne],[ - test "x$A" != "x$B" && ax_compare_version=true - ],[ - AC_WARNING([invalid OP parameter: $2]) - ]) - ]) - - AS_VAR_POPDEF([A])dnl - AS_VAR_POPDEF([B])dnl - - dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE. - if test "$ax_compare_version" = "true" ; then - m4_ifvaln([$4],[$4],[:])dnl - m4_ifvaln([$5],[else $5])dnl - fi -]) dnl AX_COMPARE_VERSION - diff --git a/rimage/Makefile.am b/rimage/Makefile.am deleted file mode 100644 index 5af59059b7f3..000000000000 --- a/rimage/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -SUBDIRS=keys - -bin_PROGRAMS = rimage - -noinst_HEADERS = \ - rimage.h \ - css.h \ - cse.h \ - plat_auth.h \ - manifest.h \ - file_format.h - -rimage_SOURCES = \ - file_simple.c \ - man_apl.c \ - man_cnl.c \ - man_kbl.c \ - man_sue.c \ - cse.c \ - css.c \ - plat_auth.c \ - hash.c \ - pkcs1_5.c \ - manifest.c \ - elf.c \ - rimage.c - diff --git a/rimage/keys/Makefile.am b/rimage/keys/Makefile.am deleted file mode 100644 index 06fe3071317a..000000000000 --- a/rimage/keys/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -install-data-local: - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(PEM_KEY_PREFIX); - $(INSTALL_DATA) otc_private_key.pem $(PEM_KEY_PREFIX) - $(INSTALL_DATA) otc_public_key.pem $(PEM_KEY_PREFIX) - -EXTRA_DIST = \ - otc_private_key.pem \ - otc_public_key.pem \ No newline at end of file diff --git a/src/Makefile.am b/src/Makefile.am deleted file mode 100644 index d864b3694956..000000000000 --- a/src/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -export COMMON_INCDIR = \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) - -if BUILD_LIB -SUBDIRS = ipc math audio arch include library host -endif - -if BUILD_XTENSA -SUBDIRS = include init math audio platform tasks drivers ipc lib arch -endif diff --git a/src/arch/Makefile.am b/src/arch/Makefile.am deleted file mode 100644 index 0662ebf17242..000000000000 --- a/src/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = $(ARCH) diff --git a/src/arch/host/Makefile.am b/src/arch/host/Makefile.am deleted file mode 100644 index 7b92e00e596a..000000000000 --- a/src/arch/host/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = include diff --git a/src/arch/host/include/Makefile.am b/src/arch/host/include/Makefile.am deleted file mode 100644 index f0ac9b70e5f8..000000000000 --- a/src/arch/host/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch diff --git a/src/arch/host/include/arch/Makefile.am b/src/arch/host/include/arch/Makefile.am deleted file mode 100644 index 08d859bbe894..000000000000 --- a/src/arch/host/include/arch/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -includedir = $(prefix)/include/sof/arch - -include_HEADERS = \ - cache.h \ - interrupt.h \ - sof.h \ - spinlock.h \ - timer.h \ - string.h \ - wait.h diff --git a/src/arch/xtensa/Makefile.am b/src/arch/xtensa/Makefile.am deleted file mode 100644 index 023457d715ce..000000000000 --- a/src/arch/xtensa/Makefile.am +++ /dev/null @@ -1,298 +0,0 @@ -if BUILD_XTENSA_SMP -SUBDIRS = smp include -else -SUBDIRS = up include -endif - -noinst_PROGRAMS = \ - sof - -# generate linker script from platform headers -LINK_SCRIPT = ../../platform/$(PLATFORM)/$(PLATFORM_LDSCRIPT) - -LINK_DEPS = ../../platform/$(PLATFORM)/include/platform/memory.h - -if XCC -LINK_DEPS += \ - $(ROOT_DIR)/arch/include/xtensa/config/core-isa* -else -LINK_DEPS += \ - ../../platform/$(PLATFORM)/include/arch/xtensa/config/core-isa* -endif - -nodist_sof_SOURCES = $(LINK_SCRIPT).in -BUILT_SOURCES = $(LINK_SCRIPT) -CLEANFILES = $(LINK_SCRIPT) -$(LINK_SCRIPT): Makefile $(LINK_SCRIPT).in $(LINK_DEPS) - cat $(LINK_SCRIPT).in | $(CPP) -P $(PLATFORM_INCDIR) $(SOF_INCDIR) $(ARCH_INCDIR) - >$@ - -noinst_LIBRARIES = \ - libreset.a - -if BUILD_XTENSA_SMP -libreset_a_SOURCES = \ - smp/xtos/memctl_default.S \ - smp/xtos/reset-vector.S -else -libreset_a_SOURCES = \ - up/xtos/reset-vector.S -endif - -libreset_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - -mtext-section-literals - -sof_SOURCES = \ - timer.c - -if BUILD_XTENSA_SMP -sof_SOURCES += \ - smp/xtos/crt1-boards.S \ - smp/xtos/_vectors.S \ - smp/cpu.c \ - smp/init.c \ - smp/notifier.c \ - smp/schedule.c \ - smp/task.c \ - smp/work.c -else -sof_SOURCES += \ - up/xtos/crt1-boards.S \ - up/xtos/_vectors.S \ - up/cpu.c \ - up/init.c \ - up/notifier.c \ - up/schedule.c \ - up/task.c \ - up/work.c -endif - -if BUILD_BOOTLOADER -sof_SOURCES += \ - main-entry.S -endif - -sof_CFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -sof_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) - -sof_LDADD = \ - ../../init/libinit.a \ - ../../tasks/libtasks.a \ - ../../lib/libcore.a \ - ../../platform/$(PLATFORM)/libplatform.la \ - ../../ipc/libsof_ipc.a \ - ../../lib/libdma.a \ - ../../lib/libdai.a \ - ../../audio/libaudio.a \ - ../../drivers/libdrivers.la \ - ../../math/libsof_math.a \ - -lgcc - -if BUILD_XTENSA_SMP -sof_LDADD += \ - smp/xtos/libxtos.a \ - smp/xtos/libxlevel2.a \ - smp/xtos/libxlevel3.a \ - smp/xtos/libxlevel4.a \ - smp/xtos/libxlevel5.a \ - smp/hal/libhal.a -else -sof_LDADD += \ - up/xtos/libxtos.a \ - up/xtos/libxlevel2.a \ - up/xtos/libxlevel3.a \ - up/xtos/libxlevel4.a \ - up/xtos/libxlevel5.a \ - up/hal/libhal.a -endif - -if !BUILD_BOOTLOADER -sof_LDADD += \ - libreset.a -endif - -sof_LDFLAGS = \ - $(AM_LDFLAGS) \ - $(ARCH_LDFLAGS) -Wl,-Map=sof-$(FW_NAME).map \ - -T ../../platform/$(PLATFORM)/$(PLATFORM_LDSCRIPT) - -RIMAGE_FLAGS = sof-$(FW_NAME) -RIMAGE_BOOT_FLAGS = -BIN_FLAGS = sof - -if BUILD_BOOTLOADER - -noinst_PROGRAMS += \ - boot_ldr - -LINK_BOOT_LDR_SCRIPT = ../../platform/$(PLATFORM)/$(PLATFORM_BOOT_LDR_LDSCRIPT) -BUILT_SOURCES += $(LINK_BOOT_LDR_SCRIPT) -CLEANFILES += $(LINK_BOOT_LDR_SCRIPT) - -nodist_boot_ldr_SOURCES = $(LINK_BOOT_LDR_SCRIPT).in -$(LINK_BOOT_LDR_SCRIPT): Makefile $(LINK_BOOT_LDR_SCRIPT).in $(LINK_DEPS) - cat $(LINK_BOOT_LDR_SCRIPT).in | $(CPP) -P $(PLATFORM_INCDIR) $(SOF_INCDIR) $(ARCH_INCDIR) - >$@ - -boot_ldr_SOURCES = \ - boot_entry.S \ - boot_loader.c - -if BUILD_XTENSA_SMP -boot_ldr_SOURCES += \ - smp/xtos/_vectors.S -else -boot_ldr_SOURCES += \ - up/xtos/_vectors.S -endif - -boot_ldr_CFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -boot_ldr_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) - -boot_ldr_LDADD = \ - libreset.a \ - -lgcc - -if BUILD_XTENSA_SMP -boot_ldr_LDADD += \ - smp/hal/libhal.a -else -boot_ldr_LDADD += \ - up/hal/libhal.a -endif - -boot_ldr_LDFLAGS = \ - $(AM_LDFLAGS) \ - $(ARCH_LDFLAGS) \ - -T ../../platform/$(PLATFORM)/$(PLATFORM_BOOT_LDR_LDSCRIPT) - -boot_ldr-local: - cp boot_ldr boot_ldr-$(FW_NAME) - $(OBJCOPY) -O binary ../../platform/$(PLATFORM)/boot_module mod-boot-$(FW_NAME).bin - $(OBJCOPY) --add-section .module=mod-boot-$(FW_NAME).bin \ - --set-section-flags .module=load,readonly boot_ldr-$(FW_NAME) - $(OBJCOPY) -O binary boot_ldr boot_ldr-$(FW_NAME).bin - $(OBJDUMP) -h -D boot_ldr > boot_ldr-$(FW_NAME).map - $(OBJDUMP) -S boot_ldr > boot_ldr-$(FW_NAME).lst - $(OBJDUMP) -D boot_ldr > boot_ldr-$(FW_NAME).dis - -RIMAGE_BOOT_FLAGS += boot_ldr-$(FW_NAME) -BIN_FLAGS +=boot_ldr-local -endif - -if BUILD_VM_ROM - -# ROM -noinst_PROGRAMS += \ - rom - -LINK_ROM_SCRIPT = ../../platform/$(PLATFORM)/$(PLATFORM_ROM_LDSCRIPT) -BUILT_SOURCES += $(LINK_ROM_SCRIPT) -CLEANFILES += $(LINK_ROM_SCRIPT) - -nodist_rom_SOURCES = $(LINK_ROM_SCRIPT).in -$(LINK_ROM_SCRIPT): Makefile $(LINK_ROM_SCRIPT).in $(LINK_DEPS) - cat $(LINK_ROM_SCRIPT).in | $(CPP) -P $(PLATFORM_INCDIR) $(SOF_INCDIR) $(ARCH_INCDIR) - >$@ - -rom_LDADD = \ - -lgcc - -# SMP ROM uses UP CRT1 -if BUILD_XTENSA_SMP -rom_SOURCES = \ - smp/xtos/memctl_default.S \ - smp/xtos/reset-vector.S \ - up/xtos/crt1-boards.S -else -rom_SOURCES = \ - up/xtos/reset-vector.S \ - up/xtos/crt1-boards.S -endif - -rom_CFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - -DCONFIG_VM_ROM - -rom_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - -DCONFIG_VM_ROM - -rom_LDFLAGS = \ - $(AM_LDFLAGS) \ - $(ARCH_LDFLAGS) \ - -T ../../platform/$(PLATFORM)/$(PLATFORM_ROM_LDSCRIPT) - -rom-local: - cp rom rom-$(FW_NAME) - $(OBJCOPY) -O binary rom rom-$(FW_NAME).bin - $(OBJDUMP) -h -D rom > rom-$(FW_NAME).map - $(OBJDUMP) -S rom > rom-$(FW_NAME).lst - $(OBJDUMP) -D rom > rom-$(FW_NAME).dis - -BIN_FLAGS += rom-local - -endif - -if BUILD_MODULE -MODULE_COPY=$(OBJCOPY) -O binary ../../platform/$(PLATFORM)/module mod-$(FW_NAME).bin -MODULE_INSERT=$(OBJCOPY) --add-section .module=mod-$(FW_NAME).bin \ - --set-section-flags .module=load,readonly sof-$(FW_NAME) -else -MODULE_COPY= -MODULE_INSERT= -endif - -if USE_MEU -RIMAGE=rimage -o sof-$(FW_NAME).ri -p sof-$(FW_NAME).ldc -m $(FW_NAME) $(RIMAGE_BOOT_FLAGS) $(RIMAGE_FLAGS) -s $(MEU_OFFSET) -MEU=$(MEU_PATH)/meu -w ./ -s sof-$(FW_NAME) -key $(PRIVATE_KEY) -stp /usr/bin/openssl -f $(MEU_PATH)/generic_meu_conf.xml \ - -mnver 0.0.0.0 -o sof-$(FW_NAME).ri -else -RIMAGE=rimage -o sof-$(FW_NAME).ri -p sof-$(FW_NAME).ldc -m $(FW_NAME) $(RIMAGE_BOOT_FLAGS) $(RIMAGE_FLAGS) -MEU= -endif - -bin-local: $(BIN_FLAGS) - cp sof sof-$(FW_NAME) - $(MODULE_COPY) - $(MODULE_INSERT) - $(OBJDUMP) -S sof-$(FW_NAME) > sof-$(FW_NAME).lst - $(OBJDUMP) -D sof-$(FW_NAME) > sof-$(FW_NAME).dis - $(RIMAGE) - $(MEU) - -vminstall-local: - scp -P 5555 sof-*.ri root@localhost:/lib/firmware/intel/ - -clean-local: - rm -fr mod-* - rm -fr *.map - rm -fr *.dis diff --git a/src/arch/xtensa/gdb/Makefile.am b/src/arch/xtensa/gdb/Makefile.am deleted file mode 100644 index 5a189abb1c11..000000000000 --- a/src/arch/xtensa/gdb/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -noinst_LIBRARIES = libgdb.a - -libgdb_a_SOURCES = \ - init.S - debugexception.S - -libgdb_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -libgdb_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(ARCH_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/arch/xtensa/include/Makefile.am b/src/arch/xtensa/include/Makefile.am deleted file mode 100644 index b2e07bffb96f..000000000000 --- a/src/arch/xtensa/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch xtensa diff --git a/src/arch/xtensa/include/arch/Makefile.am b/src/arch/xtensa/include/arch/Makefile.am deleted file mode 100644 index 0d969cc86f62..000000000000 --- a/src/arch/xtensa/include/arch/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -noinst_HEADERS = \ - atomic.h \ - cache.h \ - init.h \ - interrupt.h \ - sof.h \ - spinlock.h \ - task.h \ - timer.h \ - string.h \ - wait.h diff --git a/src/arch/xtensa/include/arch/gdb/Makefile.am b/src/arch/xtensa/include/arch/gdb/Makefile.am deleted file mode 100644 index 59fff6fafbcf..000000000000 --- a/src/arch/xtensa/include/arch/gdb/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -noinst_HEADERS = \ - xtensa-defs.h diff --git a/src/arch/xtensa/include/xtensa/Makefile.am b/src/arch/xtensa/include/xtensa/Makefile.am deleted file mode 100644 index c4c0f20322c9..000000000000 --- a/src/arch/xtensa/include/xtensa/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -noinst_HEADERS = \ - board.h \ - config \ - hal.h \ - overlay.h \ - trax-api.h \ - trax-proto.h \ - xdm-regs.h \ - xtensa-versions.h \ - xtruntime.h \ - c6x-compat.h \ - coreasm.h \ - overlay_os_asm.h \ - trax-core-config.h \ - traxreg.h \ - xmon.h \ - xtensa-xer.h \ - cacheasm.h \ - corebits.h \ - simboard.h \ - traxfile.h \ - trax-util.h \ - xtbsp.h \ - xtruntime-core-state.h \ - cacheattrasm.h \ - core-macros.h \ - specreg.h \ - trax.h \ - uart-16550.h \ - xtensa-libdb-macros.h \ - xtruntime-frames.h \ - mpuasm.h \ - idmaasm.h - -SUBDIRS = config diff --git a/src/arch/xtensa/include/xtensa/config/Makefile.am b/src/arch/xtensa/include/xtensa/config/Makefile.am deleted file mode 100644 index 69f1b8ad056e..000000000000 --- a/src/arch/xtensa/include/xtensa/config/Makefile.am +++ /dev/null @@ -1,2 +0,0 @@ -noinst_HEADERS = \ - core.h diff --git a/src/arch/xtensa/smp/Makefile.am b/src/arch/xtensa/smp/Makefile.am deleted file mode 100644 index a937680339ab..000000000000 --- a/src/arch/xtensa/smp/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = hal include xtos diff --git a/src/arch/xtensa/smp/hal/Makefile.am b/src/arch/xtensa/smp/hal/Makefile.am deleted file mode 100644 index e95d8da60222..000000000000 --- a/src/arch/xtensa/smp/hal/Makefile.am +++ /dev/null @@ -1,253 +0,0 @@ -STATE_DEFS = \ - -D__SPLIT__extra_size \ - -D__SPLIT__extra_align \ - -D__SPLIT__cpregs_size \ - -D__SPLIT__cpregs_align \ - -D__SPLIT__cp_names \ - -D__SPLIT__all_extra_size \ - -D__SPLIT__all_extra_align \ - -D__SPLIT__num_coprocessors \ - -D__SPLIT__cp_num \ - -D__SPLIT__cp_max \ - -D__SPLIT__cp_mask \ - -D__SPLIT__cp_id_mappings \ - -D__SPLIT__cp_mask_mappings \ - -D__SPLIT__init_mem_extra \ - -D__SPLIT__init_mem_cp \ - -D__SPLIT__save_extra \ - -D__SPLIT__restore_extra \ - -D__SPLIT__save_cpregs \ - -D__SPLIT__save_cp0 \ - -D__SPLIT__save_cp1 \ - -D__SPLIT__save_cp2 \ - -D__SPLIT__save_cp3 \ - -D__SPLIT__save_cp4 \ - -D__SPLIT__save_cp5 \ - -D__SPLIT__save_cp6 \ - -D__SPLIT__save_cp7 \ - -D__SPLIT__restore_cpregs \ - -D__SPLIT__restore_cp0 \ - -D__SPLIT__restore_cp1 \ - -D__SPLIT__restore_cp2 \ - -D__SPLIT__restore_cp3 \ - -D__SPLIT__restore_cp4 \ - -D__SPLIT__restore_cp5 \ - -D__SPLIT__restore_cp6 \ - -D__SPLIT__restore_cp7 \ - -D__SPLIT__cpregs_save_fn \ - -D__SPLIT__cpregs_restore_fn \ - -D__SPLIT__validate_cp \ - -D__SPLIT__invalidate_cp \ - -D__SPLIT__get_cpenable \ - -D__SPLIT__set_cpenable - -STATE_DEFS_CNL = \ - -D__SPLIT__extra_size \ - -D__SPLIT__extra_align \ - -D__SPLIT__cpregs_size \ - -D__SPLIT__cpregs_align \ - -D__SPLIT__cp_names \ - -D__SPLIT__all_extra_size \ - -D__SPLIT__all_extra_align \ - -D__SPLIT__num_coprocessors \ - -D__SPLIT__cp_num \ - -D__SPLIT__cp_max \ - -D__SPLIT__cp_mask \ - -D__SPLIT__cp_id_mappings \ - -D__SPLIT__cp_mask_mappings \ - -D__SPLIT__init_mem_extra \ - -D__SPLIT__init_mem_cp \ - -D__SPLIT__save_extra \ - -D__SPLIT__restore_extra \ - -D__SPLIT__cpregs_save_fn \ - -D__SPLIT__cpregs_restore_fn \ - -D__SPLIT__validate_cp \ - -D__SPLIT__invalidate_cp \ - -D__SPLIT__get_cpenable \ - -D__SPLIT__set_cpenable - -DISASS_DEFS = \ - -D__SPLIT__op0_format_lengths \ - -D__SPLIT__byte0_format_lengths \ - -D__SPLIT__disassemble_size \ - -D__SPLIT__disassemble - -MISC_DEFS = \ - -D__SPLIT__clear_regcached_code - -# Call0 ABI means the xthal... and xthal..._nw functions are -# identical. If we're building for Call0 ABI, omit the ..._nw -# functions (except for xthal_get_intpending_nw, an interrupt handler -# helper function for which there is no duplicate and which does not -# obey _any_ calling conventions). -INTERRUPTS_DEFS = \ - -D__SPLIT__num_intlevels \ - -D__SPLIT__num_interrupts \ - -D__SPLIT__excm_level \ - -D__SPLIT__intlevel \ - -D__SPLIT__get_intenable \ - -D__SPLIT__set_intenable \ - -D__SPLIT__get_interrupt \ - -D__SPLIT__set_intset \ - -D__SPLIT__set_intclear - -CACHE_DEFS = \ - -D__SPLIT__get_cacheattr \ - -D__SPLIT__get_icacheattr \ - -D__SPLIT__set_cacheattr \ - -D__SPLIT__set_icacheattr \ - -D__SPLIT__set_dcacheattr \ - -D__SPLIT__set_idcacheattr \ - -D__SPLIT__idcache_is_enabled \ - -D__SPLIT__icache_is_enabled \ - -D__SPLIT__dcache_is_enabled \ - -D__SPLIT__idcache_is_enabled \ - -D__SPLIT__icache_all_invalidate \ - -D__SPLIT__dcache_all_invalidate \ - -D__SPLIT__dcache_all_writeback \ - -D__SPLIT__dcache_all_writeback_inv \ - -D__SPLIT__icache_all_unlock \ - -D__SPLIT__dcache_all_unlock \ - -D__SPLIT__icache_region_invalidate \ - -D__SPLIT__dcache_region_invalidate \ - -D__SPLIT__dcache_region_writeback \ - -D__SPLIT__dcache_region_writeback_inv \ - -D__SPLIT__icache_region_lock \ - -D__SPLIT__dcache_region_lock \ - -D__SPLIT__icache_region_unlock \ - -D__SPLIT__dcache_region_unlock \ - -D__SPLIT__icache_line_invalidate \ - -D__SPLIT__dcache_line_invalidate \ - -D__SPLIT__dcache_line_writeback \ - -D__SPLIT__dcache_line_writeback_inv \ - -D__SPLIT__icache_line_lock \ - -D__SPLIT__dcache_line_lock \ - -D__SPLIT__icache_line_unlock \ - -D__SPLIT__dcache_line_unlock \ - -D__SPLIT__icache_sync \ - -D__SPLIT__dcache_sync \ - -D__SPLIT__icache_get_ways \ - -D__SPLIT__icache_set_ways \ - -D__SPLIT__dcache_get_ways \ - -D__SPLIT__dcache_set_ways \ - -D__SPLIT__cache_coherence_on \ - -D__SPLIT__cache_coherence_off \ - -D__SPLIT__set_cache_prefetch_long \ - -D__SPLIT__set_cache_prefetch \ - -D__SPLIT__get_cache_prefetch \ - -D__SPLIT__hw_configid0 \ - -D__SPLIT__hw_configid1 \ - -D__SPLIT__release_major \ - -D__SPLIT__release_minor - - -if BUILD_BAYTRAIL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_CHERRYTRAIL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_BROADWELL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_HASWELL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_APOLLOLAKE -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_CANNONLAKE -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_ICELAKE -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_SUECREEK -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -noinst_LIBRARIES = libhal.a - -libhal_a_SOURCES = \ - attribute.c \ - cache.c \ - cache_asm.S \ - clock.S \ - coherence.c \ - debug.c \ - debug_hndlr.S \ - disass.c \ - int_asm.S \ - interrupts.c \ - memcopy.S \ - mem_ecc_parity.S \ - misc.c \ - miscellaneous.S \ - mmu.c \ - mp_asm.S \ - mpu_asm.S \ - mpu.c \ - set_region_translate.c \ - state_asm.S \ - state.c \ - syscache_asm.S \ - windowspill_asm.S - -libhal_a_CFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) - -libhal_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) diff --git a/src/arch/xtensa/smp/include/Makefile.am b/src/arch/xtensa/smp/include/Makefile.am deleted file mode 100644 index f0ac9b70e5f8..000000000000 --- a/src/arch/xtensa/smp/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch diff --git a/src/arch/xtensa/smp/include/arch/Makefile.am b/src/arch/xtensa/smp/include/arch/Makefile.am deleted file mode 100644 index cab6de2945d2..000000000000 --- a/src/arch/xtensa/smp/include/arch/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -noinst_HEADERS = \ - alloc.h \ - idc.h \ - memory.h diff --git a/src/arch/xtensa/smp/xtos/Makefile.am b/src/arch/xtensa/smp/xtos/Makefile.am deleted file mode 100644 index f7ba73d373d8..000000000000 --- a/src/arch/xtensa/smp/xtos/Makefile.am +++ /dev/null @@ -1,171 +0,0 @@ -noinst_HEADERS = \ - xtos-internal.h \ - xtos-params.h \ - xtos-structs.h \ - interrupt-pri.h \ - int-highpri-dispatcher.S \ - int-medpri-dispatcher.S - -noinst_LIBRARIES = \ - libxtos.a \ - libxlevel2.a \ - libxlevel3.a \ - libxlevel4.a \ - libxlevel5.a - -VECTOR_DEFS = \ - -D__SPLIT__vector \ - -D__SPLIT__handler \ - -D__SPLIT__user \ - -D__SPLIT__level1int \ - -D__SPLIT__level2 \ - -D__SPLIT__level3 \ - -D__SPLIT__level4 \ - -D__SPLIT__level5 - - -if BUILD_BAYTRAIL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_CHERRYTRAIL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_APOLLOLAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -if BUILD_BROADWELL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_HASWELL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_CANNONLAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -if BUILD_ICELAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -if BUILD_SUECREEK -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -LEVEL_SRC = \ - int-handler.S \ - int-vector.S \ - int-initlevel.S - -libxlevel2_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel2_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=2 - -libxlevel3_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel3_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=3 - -libxlevel4_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel4_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=4 - -libxlevel5_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel5_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=5 - -if BUILD_APOLLOLAKE -libxlevel6_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel6_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=6 -endif - -libxtos_a_SOURCES = \ - core-restore.S \ - core-save.S \ - core-shutoff.S \ - double-vector.S \ - debug-vector.S \ - xea1/exc-alloca-handler.S \ - xea1/exc-c-wrapper-handler.S \ - xea2/exc-c-wrapper-handler.S \ - xea1/exc-return.S \ - xea2/exc-return.S \ - exc-sethandler.c \ - exc-syscall-handler.S \ - exc-table.S \ - exc-unhandled.S \ - interrupt-table.S \ - int-sethandler.c \ - xea1/intlevel-restore.S \ - xea2/intlevel-restore.S \ - xea1/intlevel-setmin.S \ - xea2/intlevel-setmin.S \ - xea1/intlevel-set.S \ - xea2/intlevel-set.S \ - xea1/int-lowpri-dispatcher.S \ - xea2/int-lowpri-dispatcher.S \ - ints-off.S \ - ints-on.S \ - kernel-vector.S \ - memep-enable.S \ - memep-initrams.S \ - memerror-vector.S \ - nmi-vector.S \ - xea2/reloc-vectors.S \ - user-vector.S \ - xea1/window-vectors.S \ - xea2/window-vectors.S - -libxtos_a_CFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) - -libxtos_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) diff --git a/src/arch/xtensa/up/Makefile.am b/src/arch/xtensa/up/Makefile.am deleted file mode 100644 index a937680339ab..000000000000 --- a/src/arch/xtensa/up/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = hal include xtos diff --git a/src/arch/xtensa/up/hal/Makefile.am b/src/arch/xtensa/up/hal/Makefile.am deleted file mode 100644 index 364073d6f847..000000000000 --- a/src/arch/xtensa/up/hal/Makefile.am +++ /dev/null @@ -1,253 +0,0 @@ -STATE_DEFS = \ - -D__SPLIT__extra_size \ - -D__SPLIT__extra_align \ - -D__SPLIT__cpregs_size \ - -D__SPLIT__cpregs_align \ - -D__SPLIT__cp_names \ - -D__SPLIT__all_extra_size \ - -D__SPLIT__all_extra_align \ - -D__SPLIT__num_coprocessors \ - -D__SPLIT__cp_num \ - -D__SPLIT__cp_max \ - -D__SPLIT__cp_mask \ - -D__SPLIT__cp_id_mappings \ - -D__SPLIT__cp_mask_mappings \ - -D__SPLIT__init_mem_extra \ - -D__SPLIT__init_mem_cp \ - -D__SPLIT__save_extra \ - -D__SPLIT__restore_extra \ - -D__SPLIT__save_cpregs \ - -D__SPLIT__save_cp0 \ - -D__SPLIT__save_cp1 \ - -D__SPLIT__save_cp2 \ - -D__SPLIT__save_cp3 \ - -D__SPLIT__save_cp4 \ - -D__SPLIT__save_cp5 \ - -D__SPLIT__save_cp6 \ - -D__SPLIT__save_cp7 \ - -D__SPLIT__restore_cpregs \ - -D__SPLIT__restore_cp0 \ - -D__SPLIT__restore_cp1 \ - -D__SPLIT__restore_cp2 \ - -D__SPLIT__restore_cp3 \ - -D__SPLIT__restore_cp4 \ - -D__SPLIT__restore_cp5 \ - -D__SPLIT__restore_cp6 \ - -D__SPLIT__restore_cp7 \ - -D__SPLIT__cpregs_save_fn \ - -D__SPLIT__cpregs_restore_fn \ - -D__SPLIT__validate_cp \ - -D__SPLIT__invalidate_cp \ - -D__SPLIT__get_cpenable \ - -D__SPLIT__set_cpenable - -STATE_DEFS_CNL = \ - -D__SPLIT__extra_size \ - -D__SPLIT__extra_align \ - -D__SPLIT__cpregs_size \ - -D__SPLIT__cpregs_align \ - -D__SPLIT__cp_names \ - -D__SPLIT__all_extra_size \ - -D__SPLIT__all_extra_align \ - -D__SPLIT__num_coprocessors \ - -D__SPLIT__cp_num \ - -D__SPLIT__cp_max \ - -D__SPLIT__cp_mask \ - -D__SPLIT__cp_id_mappings \ - -D__SPLIT__cp_mask_mappings \ - -D__SPLIT__init_mem_extra \ - -D__SPLIT__init_mem_cp \ - -D__SPLIT__save_extra \ - -D__SPLIT__restore_extra \ - -D__SPLIT__cpregs_save_fn \ - -D__SPLIT__cpregs_restore_fn \ - -D__SPLIT__validate_cp \ - -D__SPLIT__invalidate_cp \ - -D__SPLIT__get_cpenable \ - -D__SPLIT__set_cpenable - -DISASS_DEFS = \ - -D__SPLIT__op0_format_lengths \ - -D__SPLIT__byte0_format_lengths \ - -D__SPLIT__disassemble_size \ - -D__SPLIT__disassemble - -MISC_DEFS = \ - -D__SPLIT__clear_regcached_code - -# Call0 ABI means the xthal... and xthal..._nw functions are -# identical. If we're building for Call0 ABI, omit the ..._nw -# functions (except for xthal_get_intpending_nw, an interrupt handler -# helper function for which there is no duplicate and which does not -# obey _any_ calling conventions). -INTERRUPTS_DEFS = \ - -D__SPLIT__num_intlevels \ - -D__SPLIT__num_interrupts \ - -D__SPLIT__excm_level \ - -D__SPLIT__intlevel \ - -D__SPLIT__get_intenable \ - -D__SPLIT__set_intenable \ - -D__SPLIT__get_interrupt \ - -D__SPLIT__set_intset \ - -D__SPLIT__set_intclear - -CACHE_DEFS = \ - -D__SPLIT__get_cacheattr \ - -D__SPLIT__get_icacheattr \ - -D__SPLIT__set_cacheattr \ - -D__SPLIT__set_icacheattr \ - -D__SPLIT__set_dcacheattr \ - -D__SPLIT__set_idcacheattr \ - -D__SPLIT__idcache_is_enabled \ - -D__SPLIT__icache_is_enabled \ - -D__SPLIT__dcache_is_enabled \ - -D__SPLIT__idcache_is_enabled \ - -D__SPLIT__icache_all_invalidate \ - -D__SPLIT__dcache_all_invalidate \ - -D__SPLIT__dcache_all_writeback \ - -D__SPLIT__dcache_all_writeback_inv \ - -D__SPLIT__icache_all_unlock \ - -D__SPLIT__dcache_all_unlock \ - -D__SPLIT__icache_region_invalidate \ - -D__SPLIT__dcache_region_invalidate \ - -D__SPLIT__dcache_region_writeback \ - -D__SPLIT__dcache_region_writeback_inv \ - -D__SPLIT__icache_region_lock \ - -D__SPLIT__dcache_region_lock \ - -D__SPLIT__icache_region_unlock \ - -D__SPLIT__dcache_region_unlock \ - -D__SPLIT__icache_line_invalidate \ - -D__SPLIT__dcache_line_invalidate \ - -D__SPLIT__dcache_line_writeback \ - -D__SPLIT__dcache_line_writeback_inv \ - -D__SPLIT__icache_line_lock \ - -D__SPLIT__dcache_line_lock \ - -D__SPLIT__icache_line_unlock \ - -D__SPLIT__dcache_line_unlock \ - -D__SPLIT__icache_sync \ - -D__SPLIT__dcache_sync \ - -D__SPLIT__icache_get_ways \ - -D__SPLIT__icache_set_ways \ - -D__SPLIT__dcache_get_ways \ - -D__SPLIT__dcache_set_ways \ - -D__SPLIT__cache_coherence_on \ - -D__SPLIT__cache_coherence_off \ - -D__SPLIT__set_cache_prefetch_long \ - -D__SPLIT__set_cache_prefetch \ - -D__SPLIT__get_cache_prefetch \ - -D__SPLIT__hw_configid0 \ - -D__SPLIT__hw_configid1 \ - -D__SPLIT__release_major \ - -D__SPLIT__release_minor - - -if BUILD_BAYTRAIL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_CHERRYTRAIL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_BROADWELL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_HASWELL -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_APOLLOLAKE -PLATFORM_DEFS = \ - $(STATE_DEFS) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_CANNONLAKE -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_ICELAKE -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - -if BUILD_SUECREEK -PLATFORM_DEFS = \ - $(STATE_DEFS_CNL) \ - $(DISASS_DEFS) \ - $(MISC_DEFS) \ - $(INTERRUPTS_DEFS) \ - $(CACHE_DEFS) -endif - - -noinst_LIBRARIES = libhal.a - -libhal_a_SOURCES = \ - attribute.c \ - cache.c \ - cache_asm.S \ - clock.S \ - coherence.c \ - debug.c \ - debug_hndlr.S \ - disass.c \ - int_asm.S \ - interrupts.c \ - memcopy.S \ - mem_ecc_parity.S \ - misc.c \ - miscellaneous.S \ - mmu.c \ - mp_asm.S \ - set_region_translate.c \ - state_asm.S \ - state.c \ - syscache_asm.S \ - windowspill_asm.S - -libhal_a_CFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) - -libhal_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) diff --git a/src/arch/xtensa/up/include/Makefile.am b/src/arch/xtensa/up/include/Makefile.am deleted file mode 100644 index f0ac9b70e5f8..000000000000 --- a/src/arch/xtensa/up/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch diff --git a/src/arch/xtensa/up/include/arch/Makefile.am b/src/arch/xtensa/up/include/arch/Makefile.am deleted file mode 100644 index bd5bf16bf6db..000000000000 --- a/src/arch/xtensa/up/include/arch/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -noinst_HEADERS = \ - idc.h \ - memory.h diff --git a/src/arch/xtensa/up/xtos/Makefile.am b/src/arch/xtensa/up/xtos/Makefile.am deleted file mode 100644 index 595ad9c4ae5e..000000000000 --- a/src/arch/xtensa/up/xtos/Makefile.am +++ /dev/null @@ -1,161 +0,0 @@ -noinst_HEADERS = \ - xtos-internal.h \ - xtos-params.h \ - interrupt-pri.h \ - window-vectors-new.S \ - int-highpri-dispatcher.S \ - int-medpri-dispatcher.S - -noinst_LIBRARIES = \ - libxtos.a \ - libxlevel2.a \ - libxlevel3.a \ - libxlevel4.a \ - libxlevel5.a - -VECTOR_DEFS = \ - -D__SPLIT__vector \ - -D__SPLIT__handler \ - -D__SPLIT__user \ - -D__SPLIT__level1int \ - -D__SPLIT__level2 \ - -D__SPLIT__level3 \ - -D__SPLIT__level4 \ - -D__SPLIT__level5 - - -if BUILD_BAYTRAIL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_CHERRYTRAIL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_APOLLOLAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -if BUILD_BROADWELL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_HASWELL -PLATFORM_DEFS = $(VECTOR_DEFS) -endif - -if BUILD_CANNONLAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -if BUILD_ICELAKE -PLATFORM_DEFS = $(VECTOR_DEFS) -noinst_LIBRARIES += libxlevel6.a -VECTOR_DEFS += -D__SPLIT__level6 -endif - -LEVEL_SRC = \ - int-handler.S \ - int-vector.S \ - int-initlevel.S - -libxlevel2_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel2_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=2 - -libxlevel3_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel3_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=3 - -libxlevel4_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel4_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=4 - -libxlevel5_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel5_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=5 - -if BUILD_APOLLOLAKE -libxlevel6_a_SOURCES = \ - $(LEVEL_SRC) - -libxlevel6_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) \ - -D_INTERRUPT_LEVEL=6 -endif - -libxtos_a_SOURCES = \ - core-restore.S \ - core-save.S \ - core-shutoff.S \ - double-vector.S \ - debug-vector.S \ - exc-alloca-handler.S \ - exc-c-wrapper-handler.S \ - exc-return.S \ - exc-sethandler.c \ - exc-syscall-c-handler.c \ - exc-syscall-handler.S \ - exc-table.S \ - exc-unhandled.S \ - init.c \ - interrupt-table.S \ - int-sethandler.c \ - intlevel-restore.S \ - intlevel-setmin.S \ - intlevel-set.S \ - int-lowpri-dispatcher.S \ - ints-off.S \ - ints-on.S \ - kernel-vector.S \ - memep-enable.S \ - memep-initrams.S \ - memerror-vector.S \ - nmi-vector.S \ - reloc-vectors.S \ - user-vector.S \ - window-vectors.S - -libxtos_a_CFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) - -libxtos_a_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(AM_CCASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(PLATFORM_DEFS) diff --git a/src/audio/Makefile.am b/src/audio/Makefile.am deleted file mode 100644 index 85bc270a8385..000000000000 --- a/src/audio/Makefile.am +++ /dev/null @@ -1,918 +0,0 @@ -includedir = $(prefix)/include/sof/audio - -include_HEADERS = \ - eq_iir.h \ - iir.h \ - fir.h \ - fir_config.h \ - src_config.h \ - src.h \ - volume.h - -COMP_SRC = \ - eq_iir.c \ - iir.c \ - eq_fir.c \ - fir.c \ - tone.c \ - src.c \ - src_generic.c \ - mixer.c \ - mux.c \ - volume.c \ - volume_generic.c \ - switch.c \ - dai.c \ - host.c \ - pipeline.c \ - component.c \ - buffer.c - -SOF_SRC = \ - dai.c \ - host.c \ - pipeline.c \ - component.c \ - buffer.c - -SRC_SRC = \ - src.c \ - src_generic.c - -EQ_FIR_SRC = \ - eq_fir.c \ - fir.c - -EQ_IIR_SRC = \ - eq_iir.c \ - iir.c - -VOLUME_SRC = \ - volume.c \ - volume_generic.c - -# common compiler flags for libs -lib_cflags = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) - -if BUILD_LIB - -# only host builds shared libraries, the rest are static -if BUILD_HOST - -# common linker flags for host libs -host_lib_ldflags = \ - $(AM_LDFLAGS) \ - -version-info `echo $(VERSION) | cut -d '.' -f 1 | cut -d '0' -f 2` \ - -no-undefined \ - -export-dynamic - -# libsof -lib_LTLIBRARIES = libsof.la - -libsof_la_SOURCES = $(SOF_SRC) - -libsof_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_src -lib_LTLIBRARIES += libsof_src.la - -libsof_src_la_SOURCES = $(SRC_SRC) - -libsof_src_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_src_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_fir -lib_LTLIBRARIES += libsof_eq_fir.la - -libsof_eq_fir_la_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_eq_fir_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_iir -lib_LTLIBRARIES += libsof_eq_iir.la - -libsof_eq_iir_la_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_eq_iir_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_volume -lib_LTLIBRARIES += libsof_volume.la - -libsof_volume_la_SOURCES = $(VOLUME_SRC) - -libsof_volume_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_volume_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mux -lib_LTLIBRARIES += libsof_mux.la - -libsof_mux_la_SOURCES = mux.c - -libsof_mux_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_mux_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_switch -lib_LTLIBRARIES += libsof_switch.la - -libsof_switch_la_SOURCES = switch.c - -libsof_switch_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_switch_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mixer -lib_LTLIBRARIES += libsof_mixer.la - -libsof_mixer_la_SOURCES = mixer.c - -libsof_mixer_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_mixer_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_tone -lib_LTLIBRARIES += libsof_tone.la - -libsof_tone_la_SOURCES = tone.c - -libsof_tone_la_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -libsof_tone_la_LDFLAGS = $(host_lib_ldflags) - -if HAVE_SSE42 -# libsof -lib_LTLIBRARIES += libsof_sse42.la - -libsof_sse42_la_SOURCES = $(SOF_SRC) - -libsof_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_src -lib_LTLIBRARIES += libsof_src_sse42.la - -libsof_src_sse42_la_SOURCES = $(SRC_SRC) - -libsof_src_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_src_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_fir -lib_LTLIBRARIES += libsof_eq_fir_sse42.la - -libsof_eq_fir_sse42_la_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_fir_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_iir -lib_LTLIBRARIES += libsof_eq_iir_sse42.la - -libsof_eq_iir_sse42_la_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_iir_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_volume -lib_LTLIBRARIES += libsof_volume_sse42.la - -libsof_volume_sse42_la_SOURCES = $(VOLUME_SRC) - -libsof_volume_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_volume_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mux -lib_LTLIBRARIES += libsof_mux_sse42.la - -libsof_mux_sse42_la_SOURCES = mux.c - -libsof_mux_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mux_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_switch -lib_LTLIBRARIES += libsof_switch_sse42.la - -libsof_switch_sse42_la_SOURCES = switch.c - -libsof_switch_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_switch_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mixer -lib_LTLIBRARIES += libsof_mixer_sse42.la - -libsof_mixer_sse42_la_SOURCES = mixer.c - -libsof_mixer_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mixer_sse42_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_tone -lib_LTLIBRARIES += libsof_tone_sse42.la - -libsof_tone_sse42_la_SOURCES = tone.c - -libsof_tone_sse42_la_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_tone_sse42_la_LDFLAGS = $(host_lib_ldflags) -endif - -if HAVE_AVX -# libsof -lib_LTLIBRARIES += libsof_avx.la - -libsof_avx_la_SOURCES = $(SOF_SRC) - -libsof_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_src -lib_LTLIBRARIES += libsof_src_avx.la - -libsof_src_avx_la_SOURCES = $(SRC_SRC) - -libsof_src_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_src_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_fir -lib_LTLIBRARIES += libsof_eq_fir_avx.la - -libsof_eq_fir_avx_la_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_fir_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_iir -lib_LTLIBRARIES += libsof_eq_iir_avx.la - -libsof_eq_iir_avx_la_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_iir_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_volume -lib_LTLIBRARIES += libsof_volume_avx.la - -libsof_volume_avx_la_SOURCES = $(VOLUME_SRC) - -libsof_volume_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_volume_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mux -lib_LTLIBRARIES += libsof_mux_avx.la - -libsof_mux_avx_la_SOURCES = mux.c - -libsof_mux_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mux_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_switch -lib_LTLIBRARIES += libsof_switch_avx.la - -libsof_switch_avx_la_SOURCES = switch.c - -libsof_switch_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_switch_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mixer -lib_LTLIBRARIES += libsof_mixer_avx.la - -libsof_mixer_avx_la_SOURCES = mixer.c - -libsof_mixer_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mixer_avx_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_tone -lib_LTLIBRARIES += libsof_tone_avx.la - -libsof_tone_avx_la_SOURCES = tone.c - -libsof_tone_avx_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_tone_avx_la_LDFLAGS = $(host_lib_ldflags) -endif - -if HAVE_AVX2 -# libsof -lib_LTLIBRARIES += libsof_avx2.la - -libsof_avx2_la_SOURCES = $(SOF_SRC) - -libsof_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_src -lib_LTLIBRARIES += libsof_src_avx2.la - -libsof_src_avx2_la_SOURCES = $(SRC_SRC) - -libsof_src_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_src_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_fir -lib_LTLIBRARIES += libsof_eq_fir_avx2.la - -libsof_eq_fir_avx2_la_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_fir_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_iir -lib_LTLIBRARIES += libsof_eq_iir_avx2.la - -libsof_eq_iir_avx2_la_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_iir_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_volume -lib_LTLIBRARIES += libsof_volume_avx2.la - -libsof_volume_avx2_la_SOURCES = $(VOLUME_SRC) - -libsof_volume_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_volume_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mux -lib_LTLIBRARIES += libsof_mux_avx2.la - -libsof_mux_avx2_la_SOURCES = mux.c - -libsof_mux_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mux_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_switch -lib_LTLIBRARIES += libsof_switch_avx2.la - -libsof_switch_avx2_la_SOURCES = switch.c - -libsof_switch_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_switch_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mixer -lib_LTLIBRARIES += libsof_mixer_avx2.la - -libsof_mixer_avx2_la_SOURCES = mixer.c - -libsof_mixer_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mixer_avx2_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_tone -lib_LTLIBRARIES += libsof_tone_avx2.la - -libsof_tone_avx2_la_SOURCES = tone.c - -libsof_tone_avx2_la_CFLAGS = \ - $(lib_cflags) \ - $(AVX2_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_tone_avx2_la_LDFLAGS = $(host_lib_ldflags) - -endif - -if HAVE_FMA -# libsof -lib_LTLIBRARIES += libsof_fma.la - -libsof_fma_la_SOURCES = $(SOF_SRC) - -libsof_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_src -lib_LTLIBRARIES += libsof_src_fma.la - -libsof_src_fma_la_SOURCES = $(SRC_SRC) - -libsof_src_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_src_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_fir -lib_LTLIBRARIES += libsof_eq_fir_fma.la - -libsof_eq_fir_fma_la_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_fir_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_eq_iir -lib_LTLIBRARIES += libsof_eq_iir_fma.la - -libsof_eq_iir_fma_la_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_eq_iir_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_volume -lib_LTLIBRARIES += libsof_volume_fma.la - -libsof_volume_fma_la_SOURCES = $(VOLUME_SRC) - -libsof_volume_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_volume_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mux -lib_LTLIBRARIES += libsof_mux_fma.la - -libsof_mux_fma_la_SOURCES = mux.c - -libsof_mux_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mux_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_switch -lib_LTLIBRARIES += libsof_switch_fma.la - -libsof_switch_fma_la_SOURCES = switch.c - -libsof_switch_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_switch_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_mixer -lib_LTLIBRARIES += libsof_mixer_fma.la - -libsof_mixer_fma_la_SOURCES = mixer.c - -libsof_mixer_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_mixer_fma_la_LDFLAGS = $(host_lib_ldflags) - -# libsof_tone -lib_LTLIBRARIES += libsof_tone_fma.la - -libsof_tone_fma_la_SOURCES = tone.c - -libsof_tone_fma_la_CFLAGS = \ - $(lib_cflags) \ - $(FMA_CFLAGS) \ - $(COMMON_INCDIR) - -libsof_tone_fma_la_LDFLAGS = $(host_lib_ldflags) -endif - -else - -# Build for non host targets - -# libsof -lib_LIBRARIES = libsof.a - -libsof_a_SOURCES = $(SOF_SRC) - -libsof_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_src -lib_LIBRARIES += libsof_src.a - -libsof_src_a_SOURCES = $(SRC_SRC) - -libsof_src_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_eq_fir -lib_LIBRARIES += libsof_eq_fir.a - -libsof_eq_fir_a_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_eq_iir -lib_LIBRARIES += libsof_eq_iir.a - -libsof_eq_iir_a_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_volume -lib_LIBRARIES += libsof_volume.a - -libsof_volume_a_SOURCES = $(VOLUME_SRC) - -libsof_volume_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_mux -lib_LIBRARIES += libsof_mux.a - -libsof_mux_a_SOURCES = mux.c - -libsof_mux_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_switch -lib_LIBRARIES += libsof_switch.a - -libsof_switch_a_SOURCES = switch.c - -libsof_switch_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_mixer -lib_LIBRARIES += libsof_mixer.a - -libsof_mixer_a_SOURCES = mixer.c - -libsof_mixer_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -# libsof_tone -lib_LIBRARIES += libsof_tone.a - -libsof_tone_a_SOURCES = tone.c - -libsof_tone_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - - -if HAVE_HIFI2EP -# libsof -lib_LIBRARIES += libsof_hifi2ep.a - -libsof_hifi2ep_a_SOURCES = $(SOF_SRC) - -libsof_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_src -lib_LIBRARIES += libsof_src_hifi2ep.a - -libsof_src_hifi2ep_a_SOURCES = $(SRC_SRC) - -libsof_src_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_eq_fir -lib_LIBRARIES += libsof_eq_fir_hifi2ep.a - -libsof_eq_fir_hifi2ep_a_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_eq_iir -lib_LIBRARIES += libsof_eq_iir_hifi2ep.a - -libsof_eq_iir_hifi2ep_a_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_volume -lib_LIBRARIES += libsof_volume_hifi2ep.a - -libsof_volume_hifi2ep_a_SOURCES = $(VOLUME_SRC) - -libsof_volume_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_mux -lib_LIBRARIES += libsof_mux_hifi2ep.a - -libsof_mux_hifi2ep_a_SOURCES = mux.c - -libsof_mux_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_switch -lib_LIBRARIES += libsof_switch_hifi2ep.a - -libsof_switch_hifi2ep_a_SOURCES = switch.c - -libsof_switch_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_mixer -lib_LIBRARIES += libsof_mixer_hifi2ep.a - -libsof_mixer_hifi2ep_a_SOURCES = mixer.c - -libsof_mixer_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_tone -lib_LIBRARIES += libsof_tone_hifi2ep.a - -libsof_tone_hifi2ep_a_SOURCES = tone.c - -libsof_tone_hifi2ep_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) -endif - -if HAVE_HIFI3 -# libsof -lib_LIBRARIES += libsof_hifi3.a - -libsof_hifi3_a_SOURCES = $(COMP_SRC) - -libsof_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_src -lib_LIBRARIES += libsof_src_hifi3.a - -libsof_src_hifi3_a_SOURCES = $(SRC_SRC) - -libsof_src_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_eq_fir -lib_LIBRARIES += libsof_eq_fir_hifi3.a - -libsof_eq_fir_hifi3_a_SOURCES = $(EQ_FIR_SRC) - -libsof_eq_fir_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_eq_iir -lib_LIBRARIES += libsof_eq_iir_hifi3.a - -libsof_eq_iir_hifi3_a_SOURCES = $(EQ_IIR_SRC) - -libsof_eq_iir_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_volume -lib_LIBRARIES += libsof_volume_hifi3.a - -libsof_volume_hifi3_a_SOURCES = $(VOLUME_SRC) - -libsof_volume_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_mux -lib_LIBRARIES += libsof_mux_hifi3.a - -libsof_mux_hifi3_a_SOURCES = mux.c - -libsof_mux_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_switch -lib_LIBRARIES += libsof_switch_hifi3.a - -libsof_switch_hifi3_a_SOURCES = switch.c - -libsof_switch_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_mixer -lib_LIBRARIES += libsof_mixer_hifi3.a - -libsof_mixer_hifi3_a_SOURCES = mixer.c - -libsof_mixer_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) - -# libsof_tone -lib_LIBRARIES += libsof_tone_hifi3.a - -libsof_tone_hifi3_a_SOURCES = tone.c - -libsof_tone_hifi3_a_CFLAGS = \ - $(lib_cflags) \ - $(SSE42_CFLAGS) \ - $(COMMON_INCDIR) -endif - -endif - -else - -# build for firmware image - -noinst_LIBRARIES = libaudio.a - -libaudio_a_SOURCES = \ - eq_iir.c \ - iir.c \ - eq_fir.c \ - fir.c \ - fir_hifi2ep.c \ - fir_hifi3.c \ - tone.c \ - src.c \ - src_generic.c \ - src_hifi2ep.c \ - src_hifi3.c \ - mixer.c \ - mux.c \ - volume.c \ - volume_generic.c \ - volume_hifi3.c \ - switch.c \ - dai.c \ - host.c \ - pipeline.c \ - pipeline_static.c \ - component.c \ - buffer.c - -libaudio_a_CFLAGS = \ - $(lib_cflags) \ - $(COMMON_INCDIR) - -endif diff --git a/src/drivers/Makefile.am b/src/drivers/Makefile.am deleted file mode 100644 index cb03c2934da9..000000000000 --- a/src/drivers/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -SUBDIRS = intel - -noinst_LTLIBRARIES = libdrivers.la - -libdrivers_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) - -# This lib is just composition of convenience libraries -libdrivers_la_SOURCES = dw-dma.c - -libdrivers_la_LIBADD = intel/libdrivers.la diff --git a/src/drivers/intel/Makefile.am b/src/drivers/intel/Makefile.am deleted file mode 100644 index cfb5fba67b52..000000000000 --- a/src/drivers/intel/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -noinst_LTLIBRARIES = libdrivers.la - -libdrivers_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) - -if BUILD_CAVS - -SUBDIRS = cavs -libdrivers_la_LIBADD = cavs/libdrivers.la - -else - -if BUILD_BAYTRAIL -SUBDIRS = baytrail -libdrivers_la_SOURCES = \ - pmc-ipc.c -libdrivers_la_LIBADD = baytrail/libdrivers.la -endif - -if BUILD_CHERRYTRAIL -SUBDIRS = baytrail -libdrivers_la_SOURCES = \ - pmc-ipc.c -libdrivers_la_LIBADD = baytrail/libdrivers.la -endif - -if BUILD_HASWELL -SUBDIRS = haswell -libdrivers_la_LIBADD = haswell/libdrivers.la -endif - -if BUILD_BROADWELL -SUBDIRS = haswell -libdrivers_la_LIBADD = haswell/libdrivers.la -endif - -endif diff --git a/src/drivers/intel/baytrail/Makefile.am b/src/drivers/intel/baytrail/Makefile.am deleted file mode 100644 index 73dd44a1b510..000000000000 --- a/src/drivers/intel/baytrail/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -noinst_LTLIBRARIES = libdrivers.la - -libdrivers_la_SOURCES = \ - interrupt.c \ - ssp.c \ - ipc.c \ - timer.c - -libdrivers_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) \ No newline at end of file diff --git a/src/drivers/intel/cavs/Makefile.am b/src/drivers/intel/cavs/Makefile.am deleted file mode 100644 index ffdc45b031c6..000000000000 --- a/src/drivers/intel/cavs/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -noinst_LTLIBRARIES = libdrivers.la - -libdrivers_la_SOURCES = \ - dmic.c \ - hda-dma.c \ - hda.c \ - interrupt.c \ - ssp.c \ - timer.c - -if BUILD_APOLLOLAKE -libdrivers_la_SOURCES += \ - ipc.c -endif - -if BUILD_CANNONLAKE -libdrivers_la_SOURCES += \ - ipc.c -endif - -if BUILD_ICELAKE -libdrivers_la_SOURCES += \ - ipc.c -endif - -if BUILD_SUECREEK -libdrivers_la_SOURCES += \ - sue-ipc.c -endif - -libdrivers_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) diff --git a/src/drivers/intel/haswell/Makefile.am b/src/drivers/intel/haswell/Makefile.am deleted file mode 100644 index 73dd44a1b510..000000000000 --- a/src/drivers/intel/haswell/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -noinst_LTLIBRARIES = libdrivers.la - -libdrivers_la_SOURCES = \ - interrupt.c \ - ssp.c \ - ipc.c \ - timer.c - -libdrivers_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) \ - $(ARCH_INCDIR) \ No newline at end of file diff --git a/src/host/Makefile.am b/src/host/Makefile.am deleted file mode 100644 index cfd89f680ae0..000000000000 --- a/src/host/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -AUTOMAKE_OPTIONS = subdir-objects - -SOF_INC = $(prefix)/include/sof -DEFINE = -DSOF_INC=\"$(SOF_INC)\" - -AM_CPPFLAGS = -I $(SOF_INC) $(COMMON_INCDIR) $(DEFINE) -AM_CFLAGS += -g -Wall -AM_LDFLAGS += -L../ipc -L../audio/.libs - -bin_PROGRAMS = testbench - -testbench_SOURCES = \ - testbench.c - -testbench_LDADD = \ - -ldl -lm -lsof_ipc \ - libtb_common.a \ - -lsof - -noinst_LIBRARIES = libtb_common.a - -libtb_common_a_SOURCES = \ - common_test.c \ - topology.c \ - file.c \ - trace.c \ - ipc.c \ - schedule.c \ - alloc.c diff --git a/src/include/Makefile.am b/src/include/Makefile.am deleted file mode 100644 index e7ba93b2a096..000000000000 --- a/src/include/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -SUBDIRS = sof uapi - -version.h: - $(top_srcdir)/version.sh $(top_srcdir) - -noinst_HEADERS = \ - config.h \ - version.h diff --git a/src/include/sof/Makefile.am b/src/include/sof/Makefile.am deleted file mode 100644 index e053ca029a6e..000000000000 --- a/src/include/sof/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -SUBDIRS = audio math - -noinst_HEADERS = \ - agent.h - -includedir = $(prefix)/include/sof/sof - -include_HEADERS = \ - alloc.h \ - atomic.h \ - clk.h \ - cpu.h \ - dai.h \ - debug.h \ - dma.h \ - dma-trace.h \ - dw-dma.h \ - idc.h \ - init.h \ - interrupt.h \ - interrupt-map.h \ - io.h \ - ipc.h \ - list.h \ - lock.h \ - mailbox.h \ - notifier.h \ - panic.h \ - sof.h \ - schedule.h \ - ssp.h \ - stream.h \ - task.h \ - timer.h \ - trace.h \ - wait.h \ - string.h \ - hda-dma.h \ - work.h \ - pm_runtime.h diff --git a/src/include/sof/audio/Makefile.am b/src/include/sof/audio/Makefile.am deleted file mode 100644 index 0717617beed3..000000000000 --- a/src/include/sof/audio/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -SUBDIRS = coefficients - -includedir = $(prefix)/include/sof/sof/audio - -include_HEADERS = \ - component.h \ - pipeline.h \ - format.h \ - buffer.h diff --git a/src/include/sof/audio/coefficients/Makefile.am b/src/include/sof/audio/coefficients/Makefile.am deleted file mode 100644 index af437a64d6d8..000000000000 --- a/src/include/sof/audio/coefficients/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = src diff --git a/src/include/sof/audio/coefficients/src/Makefile.am b/src/include/sof/audio/coefficients/src/Makefile.am deleted file mode 100644 index 8548445ffd8a..000000000000 --- a/src/include/sof/audio/coefficients/src/Makefile.am +++ /dev/null @@ -1,46 +0,0 @@ -noinst_HEADERS = \ -src_std_int32_10_21_4535_5000.h \ -src_std_int32_1_2_2268_5000.h \ -src_std_int32_1_2_4535_5000.h \ -src_std_int32_1_3_2268_5000.h \ -src_std_int32_1_3_4535_5000.h \ -src_std_int32_20_21_4167_5000.h \ -src_std_int32_20_7_2976_5000.h \ -src_std_int32_21_20_4167_5000.h \ -src_std_int32_2_1_2268_5000.h \ -src_std_int32_21_40_3968_5000.h \ -src_std_int32_2_1_4535_5000.h \ -src_std_int32_21_80_3968_5000.h \ -src_std_int32_2_3_4535_5000.h \ -src_std_int32_3_1_2268_5000.h \ -src_std_int32_3_1_4535_5000.h \ -src_std_int32_32_21_4535_5000.h \ -src_std_int32_3_2_4535_5000.h \ -src_std_int32_3_4_4535_5000.h \ -src_std_int32_40_21_3968_5000.h \ -src_std_int32_4_3_4535_5000.h \ -src_std_int32_4_5_4535_5000.h \ -src_std_int32_5_4_4535_5000.h \ -src_std_int32_5_6_4354_5000.h \ -src_std_int32_5_7_4535_5000.h \ -src_std_int32_6_5_4354_5000.h \ -src_std_int32_7_8_4535_5000.h \ -src_std_int32_8_21_3239_5000.h \ -src_std_int32_8_7_2468_5000.h \ -src_std_int32_8_7_4535_5000.h \ -src_std_int32_define.h \ -src_std_int32_table.h \ -src_tiny_int16_1_3_1814_5000.h \ -src_tiny_int16_1_6_1814_5000.h \ -src_tiny_int16_20_21_1667_5000.h \ -src_tiny_int16_21_20_1667_5000.h \ -src_tiny_int16_2_3_1814_5000.h \ -src_tiny_int16_24_25_1814_5000.h \ -src_tiny_int16_25_24_1814_5000.h \ -src_tiny_int16_3_1_1814_5000.h \ -src_tiny_int16_3_2_1814_5000.h \ -src_tiny_int16_6_1_1814_5000.h \ -src_tiny_int16_7_8_1814_5000.h \ -src_tiny_int16_8_7_1814_5000.h \ -src_tiny_int16_define.h \ -src_tiny_int16_table.h diff --git a/src/include/sof/drivers/Makefile.am b/src/include/sof/drivers/Makefile.am deleted file mode 100644 index 9e2e252d56a8..000000000000 --- a/src/include/sof/drivers/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -noinst_HEADERS = \ - interrupt.h \ - timer.h diff --git a/src/include/sof/math/Makefile.am b/src/include/sof/math/Makefile.am deleted file mode 100644 index fcd1d2f3ca87..000000000000 --- a/src/include/sof/math/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -noinst_HEADERS = \ - numbers.h \ - trig.h diff --git a/src/include/uapi/Makefile.am b/src/include/uapi/Makefile.am deleted file mode 100644 index 36072a091346..000000000000 --- a/src/include/uapi/Makefile.am +++ /dev/null @@ -1,6 +0,0 @@ -SUBDIRS= ipc user - -includedir = $(prefix)/include/sof/uapi - -include_HEADERS = \ - abi.h diff --git a/src/include/uapi/ipc/Makefile.am b/src/include/uapi/ipc/Makefile.am deleted file mode 100644 index e4aa8f8dcd9a..000000000000 --- a/src/include/uapi/ipc/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -includedir = $(prefix)/include/sof/uapi - -include_HEADERS = \ - control.h \ - dai.h \ - dai-intel.h \ - header.h \ - info.h \ - pm.h \ - stream.h \ - topology.h \ - trace.h \ - xtensa.h diff --git a/src/include/uapi/user/Makefile.am b/src/include/uapi/user/Makefile.am deleted file mode 100644 index 18bf4cd64bd0..000000000000 --- a/src/include/uapi/user/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -includedir = $(prefix)/include/sof/uapi - -include_HEADERS = \ - eq.h \ - fw.h \ - header.h \ - manifest.h \ - tokens.h \ - tone.h \ - trace.h \ No newline at end of file diff --git a/src/init/Makefile.am b/src/init/Makefile.am deleted file mode 100644 index f2fed48c7b22..000000000000 --- a/src/init/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -noinst_LIBRARIES = libinit.a - -libinit_a_SOURCES = \ - init.c - -libinit_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/ipc/Makefile.am b/src/ipc/Makefile.am deleted file mode 100644 index cdc29810934c..000000000000 --- a/src/ipc/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -if BUILD_LIB -lib_LTLIBRARIES = libsof_ipc.la - -libsof_ipc_la_SOURCES = \ - ipc.c - -libsof_ipc_la_LDFLAGS = \ - $(AM_LDFLAGS) \ - -version-info `echo $(VERSION) | cut -d '.' -f 1 | cut -d '0' -f 2` \ - -no-undefined \ - -export-dynamic - -libsof_ipc_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(COMMON_INCDIR) -else -noinst_LIBRARIES = libsof_ipc.a - -libsof_ipc_a_SOURCES = \ - ipc.c \ - handler.c \ - dma-copy.c - -libsof_ipc_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(COMMON_INCDIR) -endif - diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am deleted file mode 100644 index 7bb459447efe..000000000000 --- a/src/lib/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -noinst_LIBRARIES = libcore.a libdma.a libdai.a - -libcore_a_SOURCES = \ - lib.c \ - alloc.c \ - work.c \ - notifier.c \ - trace.c \ - schedule.c \ - agent.c \ - interrupt.c \ - dma-trace.c \ - pm_runtime.c \ - clk.c - -libcore_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -libdma_a_SOURCES = \ - dma.c - -libdma_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -libdai_a_SOURCES = \ - dai.c - -libdai_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/library/Makefile.am b/src/library/Makefile.am deleted file mode 100644 index 7b92e00e596a..000000000000 --- a/src/library/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = include diff --git a/src/library/include/Makefile.am b/src/library/include/Makefile.am deleted file mode 100644 index 912728c3a5d0..000000000000 --- a/src/library/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = platform diff --git a/src/library/include/platform/Makefile.am b/src/library/include/platform/Makefile.am deleted file mode 100644 index 5a735ae2554b..000000000000 --- a/src/library/include/platform/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -includedir = $(prefix)/include/sof/platform - -include_HEADERS = \ - clk.h \ - dma.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platform.h \ - pmc.h \ - shim.h \ - timer.h diff --git a/src/math/Makefile.am b/src/math/Makefile.am deleted file mode 100644 index 7497c955e518..000000000000 --- a/src/math/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -if BUILD_LIB -lib_LTLIBRARIES = libsof_math.la - -libsof_math_la_SOURCES = \ - trig.c \ - numbers.c - -libsof_math_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(COMMON_INCDIR) -else -noinst_LIBRARIES = libsof_math.a - -libsof_math_a_SOURCES = \ - trig.c \ - numbers.c - -libsof_math_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(COMMON_INCDIR) -endif diff --git a/src/platform/Makefile.am b/src/platform/Makefile.am deleted file mode 100644 index c62e95ec0a07..000000000000 --- a/src/platform/Makefile.am +++ /dev/null @@ -1,33 +0,0 @@ -SUBDIRS = intel - -if BUILD_BAYTRAIL -SUBDIRS += baytrail -endif - -if BUILD_CHERRYTRAIL -SUBDIRS += baytrail -endif - -if BUILD_APOLLOLAKE -SUBDIRS += apollolake -endif - -if BUILD_HASWELL -SUBDIRS += haswell -endif - -if BUILD_BROADWELL -SUBDIRS += haswell -endif - -if BUILD_CANNONLAKE -SUBDIRS += cannonlake -endif - -if BUILD_SUECREEK -SUBDIRS += suecreek -endif - -if BUILD_ICELAKE -SUBDIRS += icelake -endif diff --git a/src/platform/apollolake/Makefile.am b/src/platform/apollolake/Makefile.am deleted file mode 100644 index cab3db7aa3da..000000000000 --- a/src/platform/apollolake/Makefile.am +++ /dev/null @@ -1,43 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = \ - apollolake.x.in \ - boot_ldr.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_LIBADD = ../intel/cavs/libcavsplatform.la - -libplatform_la_SOURCES = power_down.S - -libplatform_la_CFLAGS = \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -libplatform_la_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) - -noinst_PROGRAMS = module boot_module - -module_SOURCES = \ - base_module.c - -module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -boot_module_SOURCES = \ - boot_module.c - -boot_module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/apollolake/include/Makefile.am b/src/platform/apollolake/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/apollolake/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/apollolake/include/arch/Makefile.am b/src/platform/apollolake/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/apollolake/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/apollolake/include/arch/xtensa/Makefile.am b/src/platform/apollolake/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/apollolake/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/apollolake/include/arch/xtensa/config/Makefile.am b/src/platform/apollolake/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index 99c21a5f09f0..000000000000 --- a/src/platform/apollolake/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - tie-asm.h diff --git a/src/platform/apollolake/include/platform/Makefile.am b/src/platform/apollolake/include/platform/Makefile.am deleted file mode 100644 index 0a7c3eab92d0..000000000000 --- a/src/platform/apollolake/include/platform/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - shim.h \ - timer.h \ - asm_memory_management.h \ - asm_ldo_management.h \ - power_down.h diff --git a/src/platform/baytrail/Makefile.am b/src/platform/baytrail/Makefile.am deleted file mode 100644 index 7102391ec7fb..000000000000 --- a/src/platform/baytrail/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = baytrail.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_SOURCES = \ - platform.c \ - dai.c \ - dma.c \ - memory.c - -libplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/baytrail/include/Makefile.am b/src/platform/baytrail/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/baytrail/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/baytrail/include/arch/Makefile.am b/src/platform/baytrail/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/baytrail/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/baytrail/include/arch/xtensa/Makefile.am b/src/platform/baytrail/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/baytrail/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/baytrail/include/arch/xtensa/config/Makefile.am b/src/platform/baytrail/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index c68949bfd61b..000000000000 --- a/src/platform/baytrail/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-isa-byt.h \ - core-isa-cht.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - tie-asm.h diff --git a/src/platform/baytrail/include/platform/Makefile.am b/src/platform/baytrail/include/platform/Makefile.am deleted file mode 100644 index 5713e8147e4c..000000000000 --- a/src/platform/baytrail/include/platform/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - pmc.h \ - shim.h \ - timer.h diff --git a/src/platform/cannonlake/Makefile.am b/src/platform/cannonlake/Makefile.am deleted file mode 100644 index b98b1b0c923d..000000000000 --- a/src/platform/cannonlake/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = \ - cannonlake.x.in \ - boot_ldr.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_LIBADD = ../intel/cavs/libcavsplatform.la - -libplatform_la_SOURCES = power_down.S - -libplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -libplatform_la_CCASFLAGS = \ - $(ARCH_INCDIR) \ - $(ASFLAGS) \ - $(ARCH_ASFLAGS) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -noinst_PROGRAMS = module boot_module - -module_SOURCES = \ - base_module.c - -module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -boot_module_SOURCES = \ - boot_module.c - -boot_module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/cannonlake/include/Makefile.am b/src/platform/cannonlake/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/cannonlake/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/cannonlake/include/arch/Makefile.am b/src/platform/cannonlake/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/cannonlake/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/cannonlake/include/arch/xtensa/Makefile.am b/src/platform/cannonlake/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/cannonlake/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/cannonlake/include/arch/xtensa/config/Makefile.am b/src/platform/cannonlake/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index 99c21a5f09f0..000000000000 --- a/src/platform/cannonlake/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - tie-asm.h diff --git a/src/platform/cannonlake/include/platform/Makefile.am b/src/platform/cannonlake/include/platform/Makefile.am deleted file mode 100644 index 0a7c3eab92d0..000000000000 --- a/src/platform/cannonlake/include/platform/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - shim.h \ - timer.h \ - asm_memory_management.h \ - asm_ldo_management.h \ - power_down.h diff --git a/src/platform/haswell/Makefile.am b/src/platform/haswell/Makefile.am deleted file mode 100644 index fed578c44af4..000000000000 --- a/src/platform/haswell/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = haswell.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_SOURCES = \ - platform.c \ - dai.c \ - dma.c \ - memory.c - -libplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/haswell/include/Makefile.am b/src/platform/haswell/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/haswell/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/haswell/include/arch/Makefile.am b/src/platform/haswell/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/haswell/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/haswell/include/arch/xtensa/Makefile.am b/src/platform/haswell/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/haswell/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/haswell/include/arch/xtensa/config/Makefile.am b/src/platform/haswell/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index 2404f998a173..000000000000 --- a/src/platform/haswell/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - core-isa-hsw.h \ - tie-asm.h diff --git a/src/platform/haswell/include/platform/Makefile.am b/src/platform/haswell/include/platform/Makefile.am deleted file mode 100644 index 501ed4071593..000000000000 --- a/src/platform/haswell/include/platform/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - shim.h \ - timer.h diff --git a/src/platform/icelake/Makefile.am b/src/platform/icelake/Makefile.am deleted file mode 100644 index 5bef9fc700b3..000000000000 --- a/src/platform/icelake/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = \ - icelake.x.in \ - boot_ldr.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_LIBADD = ../intel/cavs/libcavsplatform.la - -libplatform_la_SOURCES = - -libplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -noinst_PROGRAMS = module boot_module - -module_SOURCES = \ - base_module.c - -module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -boot_module_SOURCES = \ - boot_module.c - -boot_module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/icelake/include/Makefile.am b/src/platform/icelake/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/icelake/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/icelake/include/arch/Makefile.am b/src/platform/icelake/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/icelake/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/icelake/include/arch/xtensa/Makefile.am b/src/platform/icelake/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/icelake/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/icelake/include/arch/xtensa/config/Makefile.am b/src/platform/icelake/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index 99c21a5f09f0..000000000000 --- a/src/platform/icelake/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - tie-asm.h diff --git a/src/platform/icelake/include/platform/Makefile.am b/src/platform/icelake/include/platform/Makefile.am deleted file mode 100644 index 501ed4071593..000000000000 --- a/src/platform/icelake/include/platform/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - shim.h \ - timer.h diff --git a/src/platform/intel/Makefile.am b/src/platform/intel/Makefile.am deleted file mode 100644 index c2c6328c8a98..000000000000 --- a/src/platform/intel/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -SUBDIRS = -if BUILD_CAVS -SUBDIRS += cavs -endif diff --git a/src/platform/intel/cavs/Makefile.am b/src/platform/intel/cavs/Makefile.am deleted file mode 100644 index f2eaa62716f0..000000000000 --- a/src/platform/intel/cavs/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -noinst_LTLIBRARIES = libcavsplatform.la - -libcavsplatform_la_SOURCES = \ - platform.c \ - dai.c \ - dma.c \ - memory.c \ - pm_runtime.c - -libcavsplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/suecreek/Makefile.am b/src/platform/suecreek/Makefile.am deleted file mode 100644 index f6f8f2bf70c8..000000000000 --- a/src/platform/suecreek/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ -SUBDIRS = include - -EXTRA_DIST = \ - suecreek.x.in \ - boot_ldr.x.in - -noinst_LTLIBRARIES = libplatform.la - -libplatform_la_LIBADD = ../intel/cavs/libcavsplatform.la - -libplatform_la_SOURCES = - -libplatform_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -noinst_PROGRAMS = module boot_module - -module_SOURCES = \ - base_module.c - -module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) - -boot_module_SOURCES = \ - boot_module.c - -boot_module_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/src/platform/suecreek/include/Makefile.am b/src/platform/suecreek/include/Makefile.am deleted file mode 100644 index c5113a413355..000000000000 --- a/src/platform/suecreek/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = arch platform diff --git a/src/platform/suecreek/include/arch/Makefile.am b/src/platform/suecreek/include/arch/Makefile.am deleted file mode 100644 index 63616bfa4617..000000000000 --- a/src/platform/suecreek/include/arch/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = xtensa diff --git a/src/platform/suecreek/include/arch/xtensa/Makefile.am b/src/platform/suecreek/include/arch/xtensa/Makefile.am deleted file mode 100644 index a85a5bb53ea0..000000000000 --- a/src/platform/suecreek/include/arch/xtensa/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = config diff --git a/src/platform/suecreek/include/arch/xtensa/config/Makefile.am b/src/platform/suecreek/include/arch/xtensa/config/Makefile.am deleted file mode 100644 index 99c21a5f09f0..000000000000 --- a/src/platform/suecreek/include/arch/xtensa/config/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -noinst_HEADERS = \ - core-isa.h \ - core-matmap.h \ - defs.h \ - specreg.h \ - system.h \ - tie.h \ - tie-asm.h diff --git a/src/platform/suecreek/include/platform/Makefile.am b/src/platform/suecreek/include/platform/Makefile.am deleted file mode 100644 index 501ed4071593..000000000000 --- a/src/platform/suecreek/include/platform/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -noinst_HEADERS = \ - clk.h \ - clk-map.h \ - dma.h \ - idc.h \ - interrupt.h \ - mailbox.h \ - memory.h \ - platcfg.h \ - platform.h \ - pm_runtime.h \ - shim.h \ - timer.h diff --git a/src/tasks/Makefile.am b/src/tasks/Makefile.am deleted file mode 100644 index 0bb53b9b310f..000000000000 --- a/src/tasks/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -noinst_LIBRARIES = libtasks.a - -libtasks_a_SOURCES = \ - audio.c - -libtasks_a_CFLAGS = \ - $(AM_CFLAGS) \ - $(ARCH_CFLAGS) \ - $(ARCH_INCDIR) \ - $(PLATFORM_INCDIR) \ - $(SOF_INCDIR) diff --git a/test/Makefile.am b/test/Makefile.am deleted file mode 100644 index 9c9bda07aa76..000000000000 --- a/test/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = cmocka diff --git a/test/cmocka/Makefile.am b/test/cmocka/Makefile.am deleted file mode 100644 index e227be27d11d..000000000000 --- a/test/cmocka/Makefile.am +++ /dev/null @@ -1,334 +0,0 @@ -check_PROGRAMS = - -LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh - -if BUILD_XTENSA -LOG_COMPILER = xt-run -endif - -# cmocka needs stdlib -override LDFLAGS := $(filter-out -nostdlib,$(LDFLAGS)) - -# turn off optimization if You need to debug UT using Xplorer -#override CFLAGS := $(filter-out -O2,$(CFLAGS)) - -override AM_CFLAGS := \ - $(filter-out -nostdlib,$(AM_CFLAGS)) \ - $(SOF_INCDIR) \ - $(PLATFORM_INCDIR) \ - -DCHECK - -override AM_LDFLAGS := \ - $(filter-out -nostdlib,$(AM_LDFLAGS)) - -AM_CFLAGS += -I./include - -if HAVE_CMOCKA_PREFIX -AM_CFLAGS += -I$(CMOCKA_PREFIX)/include -AM_LDFLAGS += -L$(CMOCKA_PREFIX)/lib -endif - -if BUILD_XTENSA -AM_CFLAGS += -I../../src/arch/xtensa/include -AM_CFLAGS += $(ARCH_INCDIR) -AM_CFLAGS += $(PLATFORM_INCDIR) -AM_CFLAGS += -I../../src/audio -endif - -if BUILD_HOST -AM_CFLAGS += -I../../src/arch/host/include -endif - -LDADD = -lcmocka - -# generate linker script -LINK_SCRIPT = memory_mock.x - -BUILT_SOURCES = $(LINK_SCRIPT) -CLEANFILES = $(LINK_SCRIPT) -$(LINK_SCRIPT): Makefile $(LINK_SCRIPT).in - cat $(LINK_SCRIPT).in | $(CPP) -P $(PLATFORM_INCDIR) $(SOF_INCDIR) - >$@ - -if BUILD_XTENSA -AM_LDFLAGS += -T $(LINK_SCRIPT) -endif - -# mixer tests -check_PROGRAMS += mixer -mixer_SOURCES = src/audio/mixer/mixer_test.c \ - src/audio/mixer/mock.c \ - src/audio/mixer/comp_mock.c \ - ../../src/audio/buffer.c \ - ../../src/audio/mixer.c - -if BUILD_HOST -mixer_SOURCES += ../../src/host/trace.c -endif - -mixer_LDADD = -lm $(LDADD) - -# memory allocator test - -if BUILD_XTENSA -check_PROGRAMS += alloc -alloc_SOURCES = src/lib/alloc/alloc.c src/lib/alloc/mock.c ../../src/lib/alloc.c ../../src/platform/intel/cavs/memory.c -endif - -# pipeline tests - -if BUILD_XTENSA - -check_PROGRAMS += pipeline_new -pipeline_new_SOURCES = ../../src/audio/pipeline.c src/audio/pipeline/pipeline_new.c src/audio/pipeline/pipeline_mocks.c src/audio/pipeline/pipeline_mocks_rzalloc.c - -check_PROGRAMS += pipeline_new_allocation -pipeline_new_allocation_SOURCES = ../../src/audio/pipeline.c src/audio/pipeline/pipeline_new_allocation.c src/audio/pipeline/pipeline_mocks.c src/audio/pipeline/pipeline_new_allocation_mocks.c - -check_PROGRAMS += pipeline_connect_upstream -pipeline_connect_upstream_SOURCES = ../../src/audio/pipeline.c src/audio/pipeline/pipeline_mocks.c src/audio/pipeline/pipeline_connect_upstream.c src/audio/pipeline/pipeline_mocks_rzalloc.c src/audio/pipeline/pipeline_connection_mocks.c - -check_PROGRAMS += pipeline_free -pipeline_free_SOURCES = ../../src/audio/pipeline.c src/audio/pipeline/pipeline_mocks.c src/audio/pipeline/pipeline_free.c src/audio/pipeline/pipeline_mocks_rzalloc.c src/audio/pipeline/pipeline_connection_mocks.c - -endif - -# lib/preproc tests - -check_PROGRAMS += preproc_varargs_count -preproc_varargs_count_SOURCES =\ - src/lib/preproc/varargs_count.c - -check_PROGRAMS += preproc_concat -preproc_concat_SOURCES =\ - src/lib/preproc/concat.c - -check_PROGRAMS += preproc_seq -preproc_seq_SOURCES =\ - src/lib/preproc/seq.c - -check_PROGRAMS += preproc_defer -preproc_defer_SOURCES =\ - src/lib/preproc/defer.c - -check_PROGRAMS += preproc_get_arg -preproc_get_arg_SOURCES =\ - src/lib/preproc/get_arg.c - -# debugability tests - -if BUILD_XTENSA -check_PROGRAMS += debugability_macros -debugability_macros_SOURCES = src/debugability/macros.c -endif - -# lib/lib tests - -check_PROGRAMS += rstrcmp -rstrcmp_SOURCES = src/lib/lib/rstrcmp.c -if BUILD_HOST -rstrcmp_SOURCES += ../../src/lib/lib.c -rstrcmp_LDADD = $(LDADD) -else -rstrcmp_LDADD = ../../src/lib/libcore.a $(LDADD) -endif - -check_PROGRAMS += rstrlen -rstrlen_SOURCES = src/lib/lib/rstrlen.c -if BUILD_HOST -rstrlen_SOURCES += ../../src/lib/lib.c -rstrlen_LDADD = $(LDADD) -else -rstrlen_LDADD = ../../src/lib/libcore.a $(LDADD) -endif - -check_PROGRAMS += strcheck -strcheck_SOURCES = src/lib/lib/strcheck.c -if BUILD_HOST -strcheck_SOURCES += ../../src/lib/lib.c -strcheck_LDADD = $(LDADD) -else -strcheck_LDADD = ../../src/lib/libcore.a $(LDADD) -endif - -# volume tests - -if BUILD_XTENSA -# these tests should be able to run on host after some tuning - -check_PROGRAMS += volume_process -volume_process_SOURCES = src/audio/volume/volume_process.c -volume_process_CFLAGS = -I../../src/audio $(AM_CFLAGS) -if BUILD_HOST -volume_process_SOURCES += ../../src/audio/volume.c \ - ../../src/audio/volume_generic.c \ - ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -volume_process_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -volume_process_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -endif - -# buffer tests - -if BUILD_XTENSA -# these tests should be able to run on host after some tuning - -check_PROGRAMS += buffer_new -buffer_new_SOURCES = src/audio/buffer/buffer_new.c src/audio/buffer/mock.c -if BUILD_HOST -buffer_new_SOURCES += ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -buffer_new_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -buffer_new_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -check_PROGRAMS += buffer_write -buffer_write_SOURCES = src/audio/buffer/buffer_write.c src/audio/buffer/mock.c -if BUILD_HOST -buffer_write_SOURCES += ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -buffer_write_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -buffer_write_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -check_PROGRAMS += buffer_wrap -buffer_wrap_SOURCES = src/audio/buffer/buffer_wrap.c src/audio/buffer/mock.c -if BUILD_HOST -buffer_wrap_SOURCES += ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -buffer_wrap_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -buffer_wrap_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -check_PROGRAMS += buffer_copy -buffer_copy_SOURCES = src/audio/buffer/buffer_copy.c src/audio/buffer/mock.c -if BUILD_HOST -buffer_copy_SOURCES += ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -buffer_copy_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -buffer_copy_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -endif - -# component tests - -check_PROGRAMS += comp_set_state -comp_set_state_SOURCES = src/audio/component/comp_set_state.c src/audio/component/mock.c -if BUILD_HOST -comp_set_state_SOURCES += ../../src/audio/component.c \ - ../../src/audio/buffer.c \ - ../../src/audio/pipeline.c \ - ../../src/ipc/ipc.c -comp_set_state_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -comp_set_state_LDADD = ../../src/audio/libaudio.a $(LDADD) -endif - -# list tests - -check_PROGRAMS += list_init -list_init_SOURCES = src/list/list_init.c - -check_PROGRAMS += list_is_empty -list_is_empty_SOURCES = src/list/list_is_empty.c - -check_PROGRAMS += list_item_append -list_item_append_SOURCES = src/list/list_item_append.c - -check_PROGRAMS += list_item_del -list_item_del_SOURCES = src/list/list_item_del.c - -check_PROGRAMS += list_item_is_last -list_item_is_last_SOURCES = src/list/list_item_is_last.c - -check_PROGRAMS += list_item_prepend -list_item_prepend_SOURCES = src/list/list_item_prepend.c - -check_PROGRAMS += list_item -list_item_SOURCES = src/list/list_item.c - -# math/numbers tests - -check_PROGRAMS += gcd -gcd_SOURCES = src/math/numbers/gcd.c -if BUILD_HOST -gcd_SOURCES += ../../src/math/numbers.c -gcd_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -gcd_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -check_PROGRAMS += ceil_divide -ceil_divide_SOURCES = src/math/numbers/ceil_divide.c -if BUILD_HOST -ceil_divide_SOURCES += ../../src/math/numbers.c -ceil_divide_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -ceil_divide_LDADD = ../../src/math/libsof_math.a -lm $(LDADD) -endif - -check_PROGRAMS += find_equal_int16 -find_equal_int16_SOURCES = src/math/numbers/find_equal_int16.c -if BUILD_HOST -find_equal_int16_SOURCES += ../../src/math/numbers.c -find_equal_int16_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -find_equal_int16_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -check_PROGRAMS += find_min_int16 -find_min_int16_SOURCES = src/math/numbers/find_min_int16.c -if BUILD_HOST -find_min_int16_SOURCES += ../../src/math/numbers.c -find_min_int16_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -find_min_int16_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -check_PROGRAMS += find_max_abs_int32 -find_max_abs_int32_SOURCES = src/math/numbers/find_max_abs_int32.c -if BUILD_HOST -find_max_abs_int32_SOURCES += ../../src/math/numbers.c -find_max_abs_int32_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -find_max_abs_int32_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -check_PROGRAMS += norm_int32 -norm_int32_SOURCES = src/math/numbers/norm_int32.c -if BUILD_HOST -norm_int32_SOURCES += ../../src/math/numbers.c -norm_int32_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -norm_int32_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -check_PROGRAMS += sin_fixed -sin_fixed_SOURCES = src/math/trig/sin_fixed.c -if BUILD_HOST -sin_fixed_SOURCES += ../../src/math/numbers.c \ - ../../src/math/trig.c -sin_fixed_LDADD = ../../src/host/libtb_common.a $(LDADD) -ldl -else -sin_fixed_LDADD = ../../src/math/libsof_math.a $(LDADD) -endif - -# all our binaries are test cases -TESTS = $(check_PROGRAMS) diff --git a/version.sh b/version.sh deleted file mode 100755 index 76a522e89a13..000000000000 --- a/version.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# version for configure, make dist and FW etc -# usage "version.sh dir" -# Where dir is the top level directory path. - -# use pwd is no path argument is given -if [ $# -eq 0 ]; then - DIR=`pwd` -else - DIR=$1 -fi - -# get version from git tag -GIT_TAG=`git describe --abbrev=4 2>/dev/null` - -# may fail to get git describe in some case, add this fallback to handle error -if [[ "x$GIT_TAG" == "x" ]] -then - GIT_TAG="v0.0-0-g0000" -fi - -# Some releases have a SOF_FW_XXX_ prefix on the tag and this prefix -# must be stripped for usage in version.h. i.e. we just need the number. -if [ $(expr match $GIT_TAG 'SOF_FW_[A-Z]+_' ) -lt 15 ]; then - VER=`echo $GIT_TAG | cut -d_ -f4` -else - VER=$GIT_TAG -fi - -# create git version if we are a git repo or git worktree -if [ -e $DIR/.git -o -d $DIR/.git ]; then -# version for make dist - echo $VER > $DIR/.version - echo $VER > $DIR/.tarball-version - - # git commit for IPC - echo "#define SOF_TAG \"`git log --pretty=format:\"%h\" -1 | cut -c1-5`\"" > $DIR/src/include/version.h -else - echo "#define SOF_TAG \"0\"" > $DIR/src/include/version.h -fi - -# build counter -if [ -e $DIR/.build ]; then - num=$((`cat $DIR/.build` + 1)) -else - num=0 -fi - -# save and insert build counter -echo $num > $DIR/.build -echo "#define SOF_BUILD $num" >> $DIR/src/include/version.h - -#echo version for AC_INIT -if [ -e $DIR/.version ]; then - echo -n `cat $DIR/.version | cut -dv -f2 | cut -d. -f1`.`cat $DIR/.version | cut -d. -f2 | cut -d- -f1`.`cat $DIR/.version | cut -d. -f3 | cut -d- -f1` -fi