Commit Graph

538 Commits

Author SHA1 Message Date
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