Skip to content

Commit

Permalink
fvp: add path to clang for hafnium build
Browse files Browse the repository at this point in the history
Set PATH to include the directory with the clang toolchain when building
Hafnium.

Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Nov 1, 2024
1 parent 75a2959 commit 0186a1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fvp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,16 @@ optee-os-clean: ftpm-clean optee-os-clean-common
# Hafnium
################################################################################

HAFNIUM_EXPORTS = PATH=$(TOOLCHAIN_ROOT)/clang-$(CLANG_BUILD_VER)/bin:$(PATH)

.hafnium_checkout:
git -C $(HAFNIUM_PATH) submodule update --init
touch $@

hafnium: $(HAFNIUM_BIN)

$(HAFNIUM_BIN): .hafnium_checkout | $(OUT_PATH)
$(MAKE) -C $(HAFNIUM_PATH) $(HAFNIUM_FLAGS) PLATFORM=secure_aem_v8a_fvp_vhe
$(HAFNIUM_EXPORTS) $(MAKE) -C $(HAFNIUM_PATH) $(HAFNIUM_FLAGS) PLATFORM=secure_aem_v8a_fvp_vhe


################################################################################
Expand Down

0 comments on commit 0186a1b

Please sign in to comment.