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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>