occ: Fix hostboot-binaries dependency
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
diff --git a/openpower/package/occ/Config.in b/openpower/package/occ/Config.in
index 1d77dff..a71f25d 100644
--- a/openpower/package/occ/Config.in
+++ b/openpower/package/occ/Config.in
@@ -13,6 +13,7 @@
config BR2_OCC_GPU_BIN_BUILD
bool "Enables Compilation of GPU Binary Image"
default n
+ select BR2_PACKAGE_HOSTBOOT_BINARIES
help
Boolean used to flag whether to compile OCC GPU binary
diff --git a/openpower/package/occ/occ.mk b/openpower/package/occ/occ.mk
index 83f7705..e733af9 100644
--- a/openpower/package/occ/occ.mk
+++ b/openpower/package/occ/occ.mk
@@ -24,6 +24,9 @@
OCC_DEPENDENCIES_P8 = host-binutils host-p8-pore-binutils
OCC_DEPENDENCIES_P9 = host-binutils host-ppe42-gcc hostboot-binaries
+ifeq ($(BR2_OCC_GPU_BIN_BUILD),y)
+ OCC_DEPENDENCIES_P9 += hostboot-binaries
+endif
OCC_DEPENDENCIES ?= $(if $(BR2_OPENPOWER_POWER9),$(OCC_DEPENDENCIES_P9),$(OCC_DEPENDENCIES_P8))
define OCC_APPLY_PATCHES