Commit Graph

281 Commits

Author SHA1 Message Date
Karol Trzcinski 5548b0a7bb sof: Add compiler version macros
Unify calls for compiler version and name for XCC and GCC.
Separate conversion of optimization level from Kconfig settings
to compiler flags to separate cmake function, because of usage
in two places.
Read XCC_TOOLS_VERSION from compiler.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
2019-12-15 13:05:51 +01:00
Pan Xiuli 7d52bb6ef0 scripts: update xcc build for all platform
Update xcc build config for all existing platforms.
xcc build with byt, cht and sue need special defconfig.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-11-26 12:53:03 +01:00
Paul Olaru 75a6a8cce3 platform: imx: Update build script for compiling with XCC
The tools version and core must be correctly defined in order to be
able to compile for this platform.

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
2019-11-20 10:45:47 +00:00
Janusz Jankowski 24f3160977 cmake: scripts: relative path define utility
Add helper function sof_append_relative_path_definitions that
defines RELATIVE_PATH per source file for given target.

__FILE is not always suitable as C standard states that __FILE__ expands to
input file name, that usually is absolute path what will cause f.e. .rodata
size to be dependent on where project is physically located on the disk.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-11 12:50:30 +00:00
Janusz Jankowski 5211799133 cmake: trigger olddefconfig on kconfig changes
When there are changes made to Kconfig files it's better
to run olddefconfig automatically to prevent undesired behaviour,
like for example depending on added config that has some default value
that is not present because developer didn't run olddefconfig
after pulling changes.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-07 09:12:52 +01:00
Janusz Jankowski 98449205fb checkpatch: disable __func__ warning
Traces in SOF are used like trace("<func>() info"),
in that case __func__ is not convenient, because it is not literal
and it would be needed to use %s everywhere and change
all current traces.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-07 00:20:43 +01:00
Dragos Tarcatu d98a7ed103 checkpatch: check ABI updates before warning on it
checkpatch is currently checking for changes that need ABI updates
and actual ABI changes in the same loop in process(). So if some
file that needs an ABI change comes first, a WARNING will be issued.

Look for an actual ABI change before starting to crunch the entire
patch line by line.

Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
2019-11-05 14:49:22 +01:00
Janusz Jankowski e044194844 checkpatch: disable short fixed size types for SOF
Do not check for u/s* vs u/sint*_t in SOF,
because there is only the longer variant.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-04 14:41:27 +01:00
Janusz Jankowski d88ac84e54 checkpatch: restore MAINTAINER file check
It was previously removed from SOF, but it's better to just disable
it for SOF to make delta with original checkpatch as small as possible.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-04 14:41:27 +01:00
Janusz Jankowski 386abbe8bc checkpatch: add SOF constant
Introduce constant that enables SOF-specific behaviour of checkpatch.
Changes made to original checkpatch should be easily visible
to make merging updates easier.

If code that is not applicable to SOF is just removed, then
while updating it's hard to distinguish if it is new feature
in checkpatch or was removed for SOF. It's better to just disable
parts of code that do not work for SOF.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-04 14:41:27 +01:00
Pan Xiuli d310beb9bb scripts: qemu: change ipc shm file name for cavs platform
The cavs platform IPC shm file name in QEMU is changed
from ipc-io to ipc-dsp-io.
Use regular expression to find the right SHM IPC register file,
so that we can smoothly pass the transition of the QEMU update.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-11-04 10:07:57 +01:00
Janusz Jankowski 62012c49a4 checkpatch: update to match kernel 5.4-rc4
Merge kernel's checkpatch with custom features added for SOF.
SOF follows kernel code style, so checkpatch should be also up-to-date.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-11-04 10:06:55 +01:00
Pan Xiuli 074ea8b93d scripts: add build for JSL
Add build scripts for JSL with gcc and xcc support.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-10-30 17:46:11 +01:00
Keyon Jie aa7c73c156 scripts:xtensa-build-all: update to use 2017.8 toolchain for CNL
Let's align to use the newer 2017.8 toolchain for CNL building.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2019-10-25 14:57:41 +02:00
Jakub Dabek b63f559bb4 memory: removed hp buffer heap
Merged hp buffer heap with normal buffer heap.
Since current buffer heap was actually using hp memory and it served
no purpose to have two heaps.
Removed extern capabilities and merged other capabiliteis to
buffer heap. Currently none of those buffer heaps supports extern.

Signed-off-by: Jakub Dabek <jakub.dabek@intel.com>
2019-10-21 12:07:03 +02:00
Pan Xiuli b0bb5a33c8 scripts: qemu: fix qemu check for BDW and HSW
The qemu for BDW and HSW removed shm mbox and moved it into dram.
Change the scripts to the new version.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-09-19 15:36:59 +01:00
Liam Girdwood 9d560bba9e tools: build: use standard naming convention for build dirs.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-09-18 21:01:16 +02:00
Curtis Malainey 23d9c78a5c scripts: allocate tty on docker
Bash and menuconfig cannot run without this flag. Docker-run just hangs
without it

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-09-12 19:52:34 +01:00
Tomasz Lauda fe9f9a1f36 apl: increase HP Buffer Heap and Runtime Sys Heap sizes
Increases HP Buffer Heap and Runtime System Heap sizes in order to
fit all the pipeline buffers.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-09-06 15:51:02 +01:00
Janusz Jankowski 15065eb01c cmake: add sof_add_static_library utility function
Adding static libraries properly may be troublesome for developers
that are not familiar with CMake, so function that makes it easier
should be useful.

Usually developer will just add sources directly to the target.
Using static libraries should be limited just to closed / precompiled
3rd party components.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-08-09 16:44:50 +02:00
Ranjani Sridharan ee194890b5 scripts: add option to build fuzzer
Enable building the fuzzer with the -f option
in the build-tools.sh script.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-08-07 08:47:58 +02:00
Pan Xiuli c6dd479787 [skip ci]scripts: update glib support for fuzzer
Install libglib2.0-dev with apt.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-07-31 07:57:36 +02:00
Janusz Jankowski c6e12d53d8 scripts: add documentation generator
Process of documentation building and publishing requires
3 repositories. It is troublesome for people that are responsible
f.e. only for documentation publishing. It makes the process
easier by turning some easy to break steps from publisher instructions
into a script.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-13 13:29:02 +01:00
Janusz Jankowski 5dd9aaccb4 cmake: xtensa: use absolute paths for tools
CMake has convention of changing relative paths to absolute
for CMAKE_* variables. It does it automatically f.e. CMAKE_C_COMPILER.
However for our tools like objcopy we have to do it manually.
It also helps with integration of CMake in some IDEs.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-05 11:38:23 +02:00
Janusz Jankowski ba2fefb172 license: use spdx identifier in shell scripts
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski 69b32abda1 checkpatch: add spdx identifier
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski 644a1b4746 license: use spdx identifier in python files
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski c6064624f6 cmake: add spdx license identifier
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-06-02 16:38:17 +01:00
Janusz Jankowski e39ed5ebf4 include: split uapi headers into more directories
Some of interface headers are not needed by kernel,
but are needed by user-space applications, so we can split them
into multiple directories that indicate their purpose.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-31 20:10:45 +01:00
Pan Xiuli 9c15883f67 scripts: add imx8 platform in build all sripts
Add imx8 support in build all scripts.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-05-30 13:18:47 +02:00
Pan Xiuli c467b5285e scripts: update sof_builder docker with imx8 support
Add imx8 cross compiler in sof_builder docker build file.t

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-05-30 13:18:47 +02:00
Pan Xiuli 462f9174a9 scripts: update build step align with wiki
In SOF WIKI, used another clean up cmd, change here to align with docs.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-05-30 13:18:47 +02:00
Janusz Jankowski df48bfce77 cmake: git hooks for non-unix os
Add support for non-unix systems that have bash shell.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-22 08:26:05 +02:00
Jakub Dabek db16f82c8c checkpatch: added check for memcpy calls
Added check for memcpy calls and warning that they should be
memcpy_s calls if possible.

Signed-off-by: Jakub Dabek <jakub.dabek@intel.com>
2019-05-15 12:45:48 +02:00
Janusz Jankowski 982307ebdc scripts: build testbench for host
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-07 08:49:48 +02:00
Janusz Jankowski 2693daf503 cmake: rename BUILD_HOST to BUILD_LIBRARY
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-07 08:49:48 +02:00
Janusz Jankowski fdda8f6820 host: enable kconfig
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-05-07 08:49:48 +02:00
Slawomir Blauciak 980171e607 dai: supply caps and other info from within drivers
This change gathers some of the information inside of the DAI drivers,
which was previously inferred using external logic.

Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2019-05-03 03:14:43 -07:00
Pierre-Louis Bossart 826e361e7a CMake/rimage: add option to use out-of-tree private key
On specific Intel platforms, we have to use a private key which is not
shared with the rest of the world.

Extend xtensa-build-all.sh with an option, and pass the key path
explicitly to cmake if needed.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-04-10 15:54:20 +02:00
Xun Zhang d9c1c28fd5 scripts: build-tools: exit immediately when return an error value
fix build-tools script to exit immediately when error occurs.

Signed-off-by: Xun Zhang <xun2.zhang@intel.com>
2019-04-08 15:52:48 +02:00
Curtis Malainey 9cc3f6d10e scripts: use local cpu count to build
Build faster by using all available cores by default
The xtensa script claims it used infinite build threads when j was not
specified but it was actually falling back to 1.

Signed-off-by: Curtis Malainey <cujomalainey@google.com>
2019-03-24 13:14:08 +00:00
Janusz Jankowski dbf43b290a cmake: add git hooks
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-03-21 15:43:25 +00:00
Ranjani Sridharan d0bc31425a scripts: add option to modify defconfig
Add an option to modify the defconfig during fw build using the
script. Without this, modifying the default config and building
the FW is a 2 step process.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-03-19 15:07:31 +00:00
Pan Xiuli 2dbe69e294 scripts: clean up the build dir for tools
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-03-11 20:49:40 +00:00
Pan Xiuli 92d53023ea scripts: add clean up for host-build-all.sh
re-run the script will have no error now

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-03-10 18:11:52 +01:00
Marcin Maka 69f0bde757 ci: klocwork: add example config file to avoid FPs
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-02-22 12:16:05 +01:00
Janusz Jankowski b7fc937e04 scripts: sof-target-install update for cmake tools
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Janusz Jankowski cc16d6d824 scripts: update build-tools.sh for cmake
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-14 18:00:26 +00:00
Pan Xiuli 8c13fce6e5 [skip ci]scripts: fix a typo in name of targe install scripts
Change the scipts name.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-02-11 11:54:52 +00:00
Pan Xiuli aa172da919 [skip ci]scirpts: update target install
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-02-11 11:54:52 +00:00
Janusz Jankowski a4f666527e cmake: add build counter
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-11 11:53:32 +00:00
Janusz Jankowski 46730e89c6 cmake: refactor version.h rule
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-11 11:53:32 +00:00
Janusz Jankowski 9a4a822309 cmake: add savedefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski 221cdfaf8a cmake: add alldefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski d98c9d5a8b cmake: add olddefconfig target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski ba7d875086 cmake: refactor kconfig targets
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-07 21:12:39 +00:00
Janusz Jankowski 0144b2f41f cmake: change object files extension to .o
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-06 10:23:21 +00:00
Janusz Jankowski 8d408eb2e6 cmake: add dist target
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-02-05 16:44:22 +00:00
Liam Girdwood 1c02611612 scripst: copy more tools and scripts to target.
Some tools and tests not added until their name prefix is fixed to sof-

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-02-01 12:08:23 +00:00
Pan Xiuli 3bc040271d scripts: replace alsa-lib with sof mirror
Use local version that still in review stage that we can have test
before final merge in upstream.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-31 20:20:51 +00:00
Pan Xiuli 1a88947629 [skip ci]scirpts: add sof-target-install scripts
Install all FW and all TPLG files into
root@hostname/ip:/lib/firmware/intel folder.
install sof-logger and LDC files into root@hostname/ip:~/

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-30 12:00:10 +00:00
Janusz Jankowski 7342811168 cmake: make CI builds verbose
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-29 12:38:48 +00:00
Janusz Jankowski 79e0d67fdb scripts: remove rimage-build.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-28 13:35:29 +01:00
Keyon Jie 905bad4252 scripts: xtensa-build-all: Add support to force build UP Arch
Add -u option to allow force building xtensa(up) ARCH on platforms which
usually building xtensa-smp by default.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2019-01-24 15:32:27 +00:00
Pan Xiuli 2b0249373f scripts: change names for binary in qemu-check
Use back old style name.
Modify the build folder as gcc and xcc prefix added.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-23 10:59:50 +00:00
Pan Xiuli 140914aa03 scripts: update build all scripts
Use different build folder for gcc and xcc build.
Will auto selected if ROM build is not supported for the platform,
thus make -a -r can work.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-23 10:59:50 +00:00
Janusz Jankowski 2843b43f94 cmake: update qemu-check.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 06b576f828 cmake: update host-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 9840ecbbfe cmake: update xtensa-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 4574fdc15a cmake: add overrideconfig
overrideconfig is custom target that can be used
to set config values from scripts

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 82b4da291b cmake: defconfigs support
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 82d234466a cmake: version script
Replace version.sh with cmake script.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 0fd97adfb0 cmake: add utility scripts
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Janusz Jankowski 7c0f0d917c kconfig: add Kconfiglib
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-01-22 15:35:35 +00:00
Pan Xiuli 36e1139c97 scripts: pre update sof docker for cmake covert
Update the sof docker to support cmake to pre test cmake build system
change.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-22 09:36:13 +00:00
Pan Xiuli cb0786cf42 scripts: update qemu boot check
Enable checks to all supported platforms of QEMU now.
Check both IPC header regs and memory window IPC message header.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-18 08:27:29 +00:00
Pan Xiuli 51cab44e2a scripts: install hexdump in docker
Need hexdump for the binary file read to detect qemu boot status.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-18 08:27:29 +00:00
Pierre-Louis Bossart 72c546366d scripts/checkpatch.pl: remove trace format warnings
remove multi-line quoted strings and use of __func__

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-01-16 20:07:40 +00:00
Pan Xiuli b25b1304dc scripts: add qemu check for more platforms
Add QEMU boot test for more platforms.
Disable three unfinished platforms: SKL, KBL, CNL

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-14 13:58:29 +00:00
Pan Xiuli b01432e96a scripts: increase shm size for some QEMU platforms
SHM used to be 64MB, but in newer platform a HP-SRAM is bigger than
that.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-14 13:58:29 +00:00
Pan Xiuli 26528f6313 scripts: default to have local rimage install
rimage will default to be build and install to local folder to avoid
ABI changes issues.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-10 15:10:10 +00:00
Pan Xiuli 3b2cfd80f9 scripts: remove all soft related stuff
soft is now sof/tools remove all outdated things.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2019-01-10 15:10:10 +00:00
Pan Xiuli 12e11b7693 scripts: enable tools test build
When pass -t, we will run make tests to build test topology.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-12-04 13:43:51 +00:00
Pan Xiuli 8174738b53 scripts: add rom build option
Enable build rom for the target. Could only use with GCC compiler.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-12-04 13:43:51 +00:00
Curtis Malainey c0c8172535 Update Docker README for SOFT merge
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:38:51 -08:00
Curtis Malainey f8e3b126e1 Adjust tools build script for new path
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
2018-11-24 23:30:33 -08:00
Liam Girdwood baf2806626 scripts: xtensa-build-all: Add support for > 1 makefile job
Add -j option to allow setting Makefile jobs.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 15:52:00 +00:00
Janusz Jankowski b5af84deaa scripts: add smp builds to xtensa-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-15 13:46:33 +01:00
Liam Girdwood c6cdadad14 scripts: checkpatch: check for ABI updates
Make sure ABI updates update atleast a single version number.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 16:16:38 +00:00
Liam Girdwood 08236fcb46 build: make builds reproducible.
Add a debug option to include build number, date and time into build.
This will be disabled b default so that all builds are reproducible.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-09 16:16:38 +00:00
Liam Girdwood 11f27aca1c
Merge pull request #540 from zhuyingjiang/topic/add-manifest-1.5
[RFC]Topic/add 1.5 manifest and rimage
2018-11-08 11:35:26 +00:00
Pan Xiuli fbb4053af0 scripts: only update platform that will be build
Keep other platform binary and lst files

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-06 15:39:52 +08:00
Pan Xiuli 0ca1c79d06 scripts: docker: remove -t flag
t flag is used to allocate a pseudo-TTY, but in some cases pseudo-tty is
not support. Removed for more useage.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-06 14:51:26 +08:00
Zhu Yingjiang f1c5a15c8a rimage: add build scripts to build 1.5 image
add to build scripts and Makefiles to build firmware binary
for kbl and skl

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:03 +08:00
Pan Xiuli b3c64f499a scripts: docker: add qmeu docker
Add a docker contains sof xtensa qemu

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:10 +08:00
Pan Xiuli 779d6bce35 scripts: create a folder for sof builder docker
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:10 +08:00
Pan Xiuli 1d6f12cfb5 scripts: add script for qemu check
usage: run this script in the qemu folder

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:03 +08:00
Pan Xiuli 173f4d21d0 scripts: add no riamge build options for build all script
Add -lr to let xtensa-build-all.sh do not build rimage.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:41:15 +08:00
Pan Xiuli 96aa24c2d9 scripts: add rimage build scripts local install
Add local install for rimage-build.sh

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:39:47 +08:00
Liam Girdwood 630e988a97 sue: scripts: Add sue creek support into buildall
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Pan Xiuli eb6e9a6a2c scripts: add -l option for host-build-all
Enable host lib install into local folder.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-26 11:31:13 +08:00
Janusz Jankowski 252d7fec4c scripts: add icl to xtensa-build-all.sh
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-08-31 19:53:17 +02:00
Pan Xiuli f8628623da scripts: docker: update gcc cross compiler to 8.1
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-08-07 21:31:13 +08:00
Ranjani Sridharan 990046e140 scripts: update host testbench script with src topology example
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-07-02 23:55:06 -07:00
Pan Xiuli 7cba6e3f47 scripts: xtensa-build: fix ROOT var alais for BXT/APL gcc
Need to change ROOT as well as HOST target.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-22 17:14:49 +08:00
Pan Xiuli 27795ece0f scripts: fix xt-xcc build with wrong config
Need to export XTENSA_SYSTEM and override OBJCOPY and OBJDUMP for xt-xcc
build.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-19 13:08:30 +01:00
Liam Girdwood cad86dc340 scripts: xtensa-build: fix alias detection for bxt/apl gcc
use bash builtin type instead of -x (requires full path)

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-06-19 11:13:11 +01:00
Liam Girdwood c7edd736d9 scripts: xtensa-build-all.sh: Support BXT/APL compiler alias
BXT/APL compiler is the same but can be have either apl or bxt suffix.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-06-14 16:34:08 +01:00
Liam Girdwood f1456e00db scripts: xtensa-build-all.sh. Fix bash error.
make[1]: Leaving directory '/home/lrg/source/reef/sof.git'
./scripts/xtensa-build-all.sh: line 123: [: ==: unary operator expected

Fix, set variable to "none" if xcc not found.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-06-14 16:16:39 +01:00
Ranjani Sridharan 9c9c4a4b17 scripts: use xt-xcc for compiling if available
Check ENV XTENSA_TOOLS_ROOT to determain which compiler to use, and set
the PATH and other ENV needed for xt-xcc.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-14 14:05:32 +01:00
Pan Xiuli b0affc18c3 scripts: docker: remove sudo command
miss some sudo command, remove all sudo command.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-12 10:20:40 +01:00
Pan Xiuli 18082e3869 scripts: docker: merge commands and remove src after build
Merge the build and remove src to reduce the layer size.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-11 17:07:36 +01:00
Pan Xiuli 03a514dcb1 scripts: docker: simplify docker build
Merege commands to reduce layers and remove some useless layers.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-11 17:07:36 +01:00
Pan Xiuli cc4850df19 scripts: docker: change to Ubuntu 18.04
Ubuntu 18.04 use gcc-7 as default, use it to reduce alternative gcc
installation layer.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-11 17:04:36 +01:00
Pan Xiuli 792bd414ee scripts: refine build all script
Add a flag "-l" to make rimage install only in pdw/local.
Also add parse for args, then simplify platform build for loop since in
parse the args will be all legal

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-10 20:25:21 +01:00
Pan Xiuli f6f3ab0d55 scripts: docker: Add proxy settings
Modify Dockerfile to copy apt.conf from host and set host proxy to
environment. Also modify some git url to http url in order to use the
proxy.

Also add a docker-build.sh to help docker build

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-06-05 13:21:00 +01:00
Ranjani Sridharan 48c52ee5eb scripts: add script for building host library and invoking the testbench
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-06-01 08:28:16 +01:00
Liam Girdwood 123dc86bd2 docker: Add details on running docker as non sudo user.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-05-17 16:36:48 +01:00
Ranjani Sridharan 28bddadbd3 scripts: remove prefix for host build
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-05-11 10:11:34 +01:00
Prashant Malani e3f45d2770 scripts: Modify Docker Ubuntu version
This ensures that the ubuntu version we use has the right
versions of Open SSL. Without this, the rimage compilation will
fail with the following error:

 pkcs1_5.c: In function 'pkcs_sign':
 pkcs1_5.c:117:20: error: dereferencing pointer to incomplete type 'RSA
 {aka struct rsa_st}'

Signed-off-by: Prashant Malani <pmalani@google.com>
Acked-by: Dylan Reid <dgreid@chromium.org>
2018-05-08 16:00:21 +01:00
Dylan Reid 85ae8e7418 scripts: Add build-soft.sh
Make it easier to build the topology when working in sof.git. This
script automates the change of directory to and from soft.git.
It also makes building in a container easier because all scripts can
execute from the same working directory.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2018-04-30 20:05:24 +01:00
Dylan Reid e3dfa4e1bd scripts: Add ability to build in a container
Having a docker container that contains the cross compiler and host
dependencies eases setup and maintenance of local builds.

The container setup procedure is based of the wiki instruction. A few
more dependencies were added.

In addition to the ct-ng and xtensa-newlib steps, this container builds
top of tree alsa-lib and alsa-utils as distros seem to be slow to update
them with the needed topology features.

The docker-run.sh script is used to automatically bind mount local
soft.git and sof.git directories in to the container. This provides
build artifacts in the same place as a local "make" would.

Use it like the following:

./scripts/docker-run.sh make
./scripts/docker-run.sh ./scripts/xtensa-build-all.sh
etc...

The container only needs to be re-built when the toolchain or alsa
dependencies are modified.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2018-04-30 16:24:56 +01:00
Dylan Reid 2470f8c0b3 scripts: Add #! headers to shell scripts
Use /bin/sh by default.  The lists used in xtensa-build-all.sh are a
bash feature, use bash for that script.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
2018-04-30 16:21:39 +01:00
Liam Girdwood f32a390432 scripts: checkpatch: don't complain about int_t uint_t types
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-04-04 15:54:03 +01:00
Liam Girdwood 4a40468b6c scripts: checkpatch: dont complain about missing MAINTAINERS
File not used by SOF.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-04-04 15:50:44 +01:00
Pierre-Louis Bossart b9880a5404 sof: scripts: build rimage in xtensa scripts
rimage is not built by default, which can lead to disconnects and
awful bugs when the memory layout changes.

Add rimage build+install as default for xtensa scripts

The BKM should be to rely on executing
./scripts/xtensa-build-all.sh [byt|cht|apl|cnl]
instead of manual commands...

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2018-04-04 15:13:43 +01:00
Pierre-Louis Bossart f7471abe8f sof: scripts: force PATH to compile xtensa without environment dependencies
The ROOT is already assumed to be as $pwd/../xtensa-root/$ROOT,
set the PATH as well

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2018-04-03 15:03:45 +01:00
Liam Girdwood c38eb34669 scripts: add script to build rimage
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-02-26 19:30:25 +00:00
Ranjani Sridharan b5ca5c495d scripts: modified build-all script for xtensa platforms
This patch modifies the build-all script for xtensa platforms
to make it easier to choose platforms

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-02-26 19:23:56 +00:00
Liam Girdwood ecdc89dac9 scripts: move build-all scripts into scripts directory.
Split into architecture specific files.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-02-08 16:25:58 +00:00
Pierre-Louis Bossart f7beb51118 sof: add git pre- and post-commit hooks
Use Linux checkpatch.pl to check for style problems on each commit
rather than waste time on mailing lists.

The hooks are installed by default with autogen.sh if there are
no pre-existing hooks, e.g. if a global template is used.

Commits can still be forced by using git commit -n (or --no-verify) if
you absolutely need to bypass checkpatch.pl in a work branch.

Note that both checkpatch.pl and spelling.txt are provided under
a GPL v2 license.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2018-01-23 21:08:05 +00:00