On Sat, Feb 03, 2018 at 12:54:54AM +0900, Victor Chong wrote:
On Sat, Feb 3, 2018 at 12:43 AM, Victor Chong victor.chong@linaro.org wrote:
On Fri, Feb 2, 2018 at 8:51 PM, Haojian Zhuang haojian.zhuang@linaro.org wrote:
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.
How to reproduce? Works fine on my end. Even if ARCH is X64, I think the uefishell function (http://git.linaro.org/uefi/uefi-tools.git/tree/uefi-build.sh#n192) would take care of it.
Oh this is edk2-build.sh (something relatively new?), not the uefi-build.sh we're used to.
Yes. Because changes in the build invokation was required with edk2-platforms, I created separate front-end scripts rather than introducing extra complexity.
edk2-platforms.sh also uses edk2-platforms.config instead of platforms.config.
/ Leif