Commit Graph

90 Commits

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