Age | Commit message (Collapse) | Author |
|
The hack to make it possible to cross-build x86 unfortunately broke
*any* builds using clang. So make sure we don't set
${PLATFORM_TOOLCHAIN}_BIN for clang builds
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
edk2-platforms has been the actively developed tree for nearly two years,
so delete the outdated script for building OpenPlatformPkg, and its
associated platform configuration file.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Add Raspberry Pi 3 platform, short name 'rpi3'.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Since we now have x86_64 cross-compilers in Debian Buster, and added
support to these scripts for handling them, add the Ovmf IA32 and X64
platforms to edk2-platforms.config. The Ia32X64 platform is left out
for now, since it requires special handling.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
BaseTools IA32/X64 toolchain prefixes are currently created from
${PLATFORM_TOOLCHAIN}_BIN variables (i.e. GCC5_BIN). Set this
variable *too* before building, in order to make the scripts
"just work" when cross-compiling for x86.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
edk2 commit 9e1131b70b4b
("BaseTools: Update BaseTools top GNUMakefile with the clear dependency")
made it possible to build BaseTools correctly with -j, so do that.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Python 3 support requires the "configparser" module to be installed.
Remains compatible with existing users without intervention thanks
to contribution from Thierry Reding.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reported-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
|
|
..trusted OS directory
documentation/optee_design.md was recently removed in a patch upstream
so use another file less likely to be removed again.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add new script and template files to quickly do some sanity checks and
configure git correctly for TianoCore development.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
The pre-push script verifies that every commit by the person pushing has
at least one Reviewed-by tag by someone other than the author.
Add an additional check permitting push without Reviewed-by as long as
there is an Acked-by.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add support for System Guidance for Infrastructure (SGI) Fixed
Virtual Platform (FVP) SGI-575, a server reference model from
Arm.
Signed-off-by: Nariman Poushin <nariman.poushin@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
commit 1a0f11213a539a5d0c5d05bfaa68ccc75cb340aa
Author: Soby Mathew <soby.mathew@arm.com>
Date: Mon Oct 1 16:16:34 2018 +0100
Update the version to 2.0
Change-Id: Icbc556d47a58d0870577b1bf1cd27cc5827fd56d
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Since ARM Trusted Firmware version is updated to 2.0, the calculation
of ATF is wrong. It could only calculate version for 1.x.
Update the calculation to support 2.x or n.x.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add a new command to list UEFI executables for a target, since
these are located differently than the flash images.
Also add a new stanza to edk2-platforms.conf comment header.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Upstream edk2 has for quite some time now had a submodule for
OpenSSL, so the special import step is no longer necessary.
So, drop the --no-openssl flag (which was now misleading) and
replace it with a --import-openssl, required for trying to
import an upstream version manually.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
D02 has been deleted upstream, so drop it from the defaul config.
Meanwhile, D06 is making its way in, so add it.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
check-bisect.sh, if run like you would run edk2-build.sh, will look for a
common ancestor between current branch in ../edk2-platforms and origin/master
in that repo. Then it will repeatedly try to build every commit (newest->
oldest) until it successfully reaches that common ancestor - or exit with
an error if any platform/target fails to build.
This *will* discard commits on that branch, so only ever use it on a
temporary branch for this purpose.
Usage example:
../uefi-tools/check-bisect.sh d03 d05 overdrive
All command line parameters will be passed straight over to edk2-build.sh.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
New command line option --strict causes the build to fail immediately with
an error return if any target for any platform fails to build.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add Armada 80x0 Db and MACCHIATObin and improve the LONGNAME
of 70x0 Db.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add a target for the Hello World example application in edk2 MdeModulePkg.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
atf-build.sh expects TOS binaries to be available in the UEFI image
dir so copy them there.
Fixes: 0c485dab ("opteed-build.sh: Remove copy of images to UEFI dir")
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
..before setting it to its default value if not specified.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add comment to allow use of UART5 in OP-TEE
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Previously, we were using a 'headless' version of optee_os binary for
hikey and hikey960. With BL32_EXTRA1 and BL32_EXTRA2, we now enable
optee_os header parsing to allow dynamic runtime support of either a
64- or 32-bit optee_os builds, and also the pager feature.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Previously, we were using a 'headless' version of optee_os binary for
hikey and hikey960. With BL32_EXTRA1 and BL32_EXTRA2, we now enable
optee_os header parsing to allow dynamic runtime support of either a
64- or 32-bit optee_os builds, and also the pager feature.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
The copy was originally mirrored after atf-build.sh but in restrospect
TOS_BIN doesn't really have to be copied since it's already embedded in
fip.bin and not directly required for programming the platform.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Now that most, if not all, Linaro builds have reverted to using
upstream ATF instead of one of the 96boards's forks, change the default
TOS_BIN value to match.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Fathi Boudra <fathi.boudra@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add hikey960 platform with OPTEE and ATF.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Add content to build ATF & OPTEE for HiKey platform.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
In edk2-build.sh, ARCH is declared as BUILD_ARCH. Since we always
build on x86, ARCH variable equals to X64.
Then there's error when build OPTEE.
Building opteed Trusted OS Target: AARCH64
Build: X64
Target: ARM
Build: X64
CFG_ARM64_core=y
CROSS_COMPILE_ta_arm64=aarch64-linux-gnu-
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE_core=aarch64-linux-gnu-
PROFILE=RELEASE PLATFORM=hikey
PLATFORM_FLAVOR=hikey
CFG_TEE_CORE_LOG_LEVEL=2
core/core.mk:10: core/arch/X64/plat-hikey/conf.mk: No such file or directory
core/core.mk:12: core/arch/X64/X64.mk: No such file or directory
core/core.mk:114: core/arch/X64/kernel/link.mk: No such file or directory
mk/subdir.mk:151: lib/libutee/arch/X64/sub.mk: No such file or directory
make: * No rule to make target 'lib/libutee/arch/X64/sub.mk'. Stop.
So add TOS_ARCH. By default, TOS_ARCH is arm.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Undoing lesson to self not to use git commit -a when distracted.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
OPENSSL_VER => $OPENSSL_VER
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Also prevents attempting to recursively remove / on failure...
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
When trying to figure out latest released openssl version, ignore tags
ending in -pre*.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Look also for openssl/include/openssl/opensslconf.h.in to determine
whether openssl has already been imported.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Seems upstream edk2 helpfully added an openssl directory to
CryptoPkg/Library/OpensslLib, causing my logic of
mv openssl-<version> openssl
after extracting downloaded tarball to do the completely
wrong thing. Fix that.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Support both CLANG35 and CLANG38 profiles, since they both now work.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
When migrate to BL2_EL3 in ARM Trusted Firmware, bl2.bin should
be built out of fip.bin. Otherwise, non-TF ROM failes to load
bl2.bin because it doesn't recognize fip.bin format.
So copy bl2.bin to UEFI folder after ATF built.
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
armvirtpkg(32/64), sni-box, capsuleapp and android*boot.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Since now needed for more than just Secure Boot (overdrive capsule update),
import OpenSSL to CryptoPkg by default unless --no-openssl is specified.
Also do this only once, rather than checking for each platform.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Stupid bug prevented multi-commit pushes from ever working.
Ugly workaround, but fixes it.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
hikey is now supported in upstream atf, i.e.
https://github.com/ARM-software/arm-trusted-firmware
but the way the OP-TEE binary is loaded differs from
https://github.com/96boards-hikey/arm-trusted-firmware
so add a note to inform users about setting a different TOS_BIN when
using upstream atf, otherwise firmware boot will hang.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Simple script to verifies for each patch before commencing pushing that:
- if I am the author, the patch has Reviewed-by: <someone@else>
- if I am not the author, it has my Reviewed-by: (based on gitconfig
name/email).
- it has a valid Contributed-under entry.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
The recent update to edk2-build.sh to qualify paths with "readlink" caused
unintended consequences, since this did not also take TOOLS_DIR into account.
At the same time, all of the other scripts were individually re-resolving
TOOLS_DIR (in the now-incompatible fashion).
So... do the readlink also on TOOLS_DIR in edk2-build.sh, export TOOLS_DIR
in both edk2-build.sh and uefi-build.sh and delete all localised settings
of TOOLS_DIR.
If anyone is calling any of the secondary scripts directly, I expect to be
receiving complaints.
Reported-by: Alan Ott <alan@softiron.co.uk>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
|
|
EDK2 build system becomes upset by relative pathssometimes, so use
"readlink -f" on all directories specified on command line.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
|