summaryrefslogtreecommitdiff
path: root/common-functions
AgeCommit message (Collapse)Author
2019-12-20Add copyright and SPDX headers to all filesHEADmasterLeif Lindholm
Copyright and license information was missing from the files in this repository. Add copyright info based on repository history and SPDX tags clarifying the ISC license to all files. 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>
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-06-26add arm-tf support to edk2-build.shLeif Lindholm
- Add search_packages_path to common-functions. - Change occurences of EDK2_DIR to WORKSPACE or `search_packages_path` in atf-build.sh. - Look for arm-trusted-firmware directory if -a was not specified on command line to edk2-build.sh. - Add required options to build Juno with arm-tf to edk2-platforms.config. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-06-22uefi-build.sh: fix CROSS_COMPILE_32/64Leif Lindholm
Some trigger happiness in common-functions when creating edk2-build.sh broke handling of CROSS_COMPILE_32 and CROSS_COMPILE_64. Fix that. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-06-15common-functions: update set_cross_compile to support x86/ix86Leif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-06-07common-functions: update openssl importLeif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-09-05common-functions: align import_openssl with upstream changesLeif Lindholm
Between EDK2 support for openssl-1.0.2f and openssl-1.0.2g, the format of the patch changed from needing a -p0 to a -p1. Adjust the import function accordingly. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-08-19common-functions: cap gcc build profile at GCC5Leif Lindholm
edk2 does not have GCC build profiles above GCC5 at this point, so cap at that if > 4.X in order to work for gcc 6. (doh!) Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-08-11common-functions: update GCC version detectionLeif Lindholm
Recent changes to EDK2 add a GCC5 profile, with an explicit intent that future profiles will cover only major versions of GCC. Update detection to work as before for 4.x, but also correctly select GCC5+ toolchain profiles. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2016-06-17common-functions: add fallback version for CLANG detectionLeif Lindholm
There are no separate edk2 build profiles for CLANG36 onwards, so add a similar thing as is done for GCC to fall back to the CLANG35 profile if version is not explicitly enumerated in the script. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2015-09-01uefi-build/common-functions: import OpenSSL when building SBLeif Lindholm
When building a platform with -D SECURE_BOOT_ENABLE=TRUE, also import OpenSSL (reusing existing version or grabbing cached archive from LinaroPkg where possible). Adapted from Ard's upstream build. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2015-08-19Break out toolchain version detectionLeif Lindholm
Move toolchain version detection to common-functions. Also actually hook up proper CLANG detection, since upstream BaseTools ended up with versioned CLANG profiles. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
2014-09-17initial support for building arm trusted firmwareLeif Lindholm
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>