hostboot: fix building with modern perl
Modern Perl doesn't include `pwd` in include path, but Hostboot's perl
scripts rely on this. Seeing as it's been a really long time and
hostboot shows no signs of fixing it, let's hack around it here
so that we can actually even compile firmware on a modern OS.
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
diff --git a/openpower/package/hostboot/hostboot.mk b/openpower/package/hostboot/hostboot.mk
index c865510..ac42f70 100644
--- a/openpower/package/hostboot/hostboot.mk
+++ b/openpower/package/hostboot/hostboot.mk
@@ -16,10 +16,10 @@
HOSTBOOT_INSTALL_IMAGES = YES
HOSTBOOT_INSTALL_TARGET = NO
-HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) \
+HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) PERL_USE_UNSAFE_INC=1 \
CONFIG_FILE=$(BR2_EXTERNAL_OP_BUILD_PATH)/configs/hostboot/$(BR2_HOSTBOOT_CONFIG_FILE) \
OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR) \
- HOSTBOOT_VERSION=`cat $(HOSTBOOT_VERSION_FILE)`
+ HOSTBOOT_VERSION=`cat $(HOSTBOOT_VERSION_FILE)`
define HOSTBOOT_APPLY_PATCHES
if [ "$(BR2_OPENPOWER_POWER9)" == "y" ]; then \