Skip to content

Commit

Permalink
Makefile: Include edk2-non-osi to PACKAGES_PATH
Browse files Browse the repository at this point in the history
Some modules will be used from edk2-non-osi. Update PACKAGES_PATH to
prevent build error.

Signed-off-by: Vu Nguyen <Vu@amperecomputing.com>
  • Loading branch information
vu-ampere authored and thcao-ampere committed Nov 26, 2020
1 parent fb6c4bb commit 386ae77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ SCRIPTS_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
ROOT_DIR := $(shell dirname $(SCRIPTS_DIR))

EDK2_SRC_DIR := $(ROOT_DIR)/edk2
EDK2_NON_OSI_SRC_DIR := $(ROOT_DIR)/edk2-non-osi
EDK2_PLATFORMS_SRC_DIR := $(ROOT_DIR)/edk2-platforms
EDK2_PLATFORMS_PKG_DIR := $(EDK2_PLATFORMS_SRC_DIR)/Platform/Ampere/$(BOARD_NAME_UPPER_FIRST_LETTER)Pkg

Expand Down Expand Up @@ -317,7 +318,7 @@ ifeq (, $(wildcard $(EDK2_SRC_DIR)/BaseTools/Source/C/bin))
@echo "Build Tianocore Basetools..."
$(MAKE) -C $(EDK2_SRC_DIR)/BaseTools
endif
$(eval export PACKAGES_PATH = $(EDK2_SRC_DIR):$(EDK2_PLATFORMS_SRC_DIR))
$(eval export PACKAGES_PATH = $(EDK2_SRC_DIR):$(EDK2_PLATFORMS_SRC_DIR):$(EDK2_NON_OSI_SRC_DIR))
$(eval export $(EDK2_GCC_TAG)_AARCH64_PREFIX = $(CROSS_COMPILE))

_tianocore_sign_fd: _check_atf_tools
Expand Down

0 comments on commit 386ae77

Please sign in to comment.