Source env.bash when running hbDistribute
hbDistrubte will determine if secureboot functionality was compiled
by looking in obj/genfiles/config.h. To simplify getting to that file
we can source env.bash once in the hostboot directory
diff --git a/openpower/package/hostboot/hostboot.mk b/openpower/package/hostboot/hostboot.mk
index 660465c..b922fa0 100644
--- a/openpower/package/hostboot/hostboot.mk
+++ b/openpower/package/hostboot/hostboot.mk
@@ -23,7 +23,7 @@
endef
define HOSTBOOT_INSTALL_IMAGES_CMDS
- cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
+ cd $(@D) && source ./env.bash && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
endef
$(eval $(generic-package))