summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-19edk2-build.sh: don't set ${PLATFORM_TOOLCHAIN}_BIN for clangHEADmasterLeif Lindholm
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>
2019-07-16Delete outdated uefi-build.shLeif Lindholm
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>
2019-07-14edk2-platforms.config: add rpi3Leif Lindholm
Add Raspberry Pi 3 platform, short name 'rpi3'. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-07-11edk2-platforms.config: add Ovmf IA32/X64 targetsLeif Lindholm
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>
2019-07-11edk2-build.sh: set ${PLATFORM_TOOLCHAIN}_BINLeif Lindholm
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>
2019-07-11edk2-build.sh: build BaseTools in parallelLeif Lindholm
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>
2019-03-28parse-platforms.py: make Python 3 *and* Python 2 compatibleLeif Lindholm
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>
2019-03-28opteed-build.sh: change file for detection of..Victor Chong
..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>
2019-03-28opteed-build.sh: update dead linkVictor Chong
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-01-30add setup-environment.shLeif Lindholm
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>
2019-01-30git-hooks: permit own push also with others Acked-by:Leif Lindholm
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>
2018-10-31edk2-platforms.config: Add support for sgi575Nariman Poushin
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>
2018-10-19atf-build.sh: fix to calculate atf versionHaojian Zhuang
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>
2018-09-03parse-platforms.py: add 'executables' commandLeif Lindholm
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>
2018-09-03edk2-build.sh: drop openssl import by defaultLeif Lindholm
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>
2018-09-03edk2-platforms.conf: Hisilicon platforms updateLeif Lindholm
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>
2018-08-30add new check-bisect.shLeif Lindholm
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>
2018-08-30edk2-build.sh: add strict build modeLeif Lindholm
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>
2018-06-16edk2-platforms.config: add new Armada platformsLeif Lindholm
Add Armada 80x0 Db and MACCHIATObin and improve the LONGNAME of 70x0 Db. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-04-25edk2-platforms.config: add helloworld targetLeif Lindholm
Add a target for the Hello World example application in edk2 MdeModulePkg. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-03-29opteed-build.sh: Copy images to UEFI dirVictor Chong
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>
2018-03-29opteed-build.sh: Read TOS_ARCH from config file..Victor Chong
..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>
2018-03-29platforms.config: Fix spacingVictor Chong
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-03-21edk2-platforms.config: hikey960: Add UART5 optionVictor Chong
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>
2018-03-21edk2-platforms.config: hikey*: Set TOS_BIN_EXTRA{1,2}Victor Chong
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>
2018-03-21atf, opteed: Support BL32_EXTRA1 and BL32_EXTRA2Victor Chong
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>
2018-03-21opteed-build.sh: Remove copy of images to UEFI dirVictor Chong
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>
2018-03-21platforms.config: hikey: Change default TOS_BINVictor Chong
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>
2018-02-22edk2-platforms.config: add hikey960 platformHaojian Zhuang
Add hikey960 platform with OPTEE and ATF. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-19edk2-platforms.config: build ATF & OPTEE for hikeyHaojian Zhuang
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>
2018-02-19opteed-build: export ARCH for makefileHaojian Zhuang
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>
2018-02-15platforms.config: whoops[tm]Leif Lindholm
Undoing lesson to self not to use git commit -a when distracted. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-13common-functions: fix typo in openssl tar extractionLeif Lindholm
OPENSSL_VER => $OPENSSL_VER Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-13common-functions: return error if openssl archieve failed to extractLeif Lindholm
Also prevents attempting to recursively remove / on failure... Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-13common-functions: add more filter on openssl tagsLeif Lindholm
When trying to figure out latest released openssl version, ignore tags ending in -pre*. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-13common-functions: add more handling for openssl import changesLeif Lindholm
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>
2018-02-08common-functions: handle existing openssl directoryLeif Lindholm
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>
2018-02-08common-functions: support CLANG profiles other than 3.5Leif Lindholm
Support both CLANG35 and CLANG38 profiles, since they both now work. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2018-02-05atf-build: migrate to bl2_el3Haojian Zhuang
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>
2018-01-19edk2-platforms.config: update Armada70x0 .dsc pathLeif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-12-05edk2-platforms.config: add new upstream platforms and appsLeif Lindholm
armvirtpkg(32/64), sni-box, capsuleapp and android*boot. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-10-18edk2-build.sh: import OpenSSL by defaultLeif Lindholm
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>
2017-10-05git-hooks: fix pre-push (again)Leif Lindholm
Stupid bug prevented multi-commit pushes from ever working. Ugly workaround, but fixes it. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-09-28git-hooks: make pre-push actually stop when errors encounteredLeif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-09-26edk2-platforms.config: add chaoskey and beagle build targetsLeif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-09-21platforms.config: hikey: Add note for upstream atf usageVictor Chong
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>
2017-08-31add git-hooks directory and pre-push scriptLeif Lindholm
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>
2017-08-23Detangle TOOLS_DIR resolutionLeif Lindholm
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>
2017-08-17platforms.config: hikey960: Build OP-TEE by defaultVictor Chong
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-08-03edk2-build.sh: generate absolute paths from command line argsLeif Lindholm
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>