opal-gard: add package as part of libflash build
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
diff --git a/openpower/package/libflash/libflash.mk b/openpower/package/libflash/libflash.mk
index 3e2abe7..25a9b94 100644
--- a/openpower/package/libflash/libflash.mk
+++ b/openpower/package/libflash/libflash.mk
@@ -27,11 +27,16 @@
$(if $(BR2_PACKAGE_PFLASH),
PREFIX=$(STAGING_DIR)/usr $(LIBFLASH_MAKE_ENV) \
-C $(@D)/external/pflash)
+ $(if $(BR2_PACKAGE_OPAL_GARD),
+ PREFIX=$(STAGING_DIR)/usr $(LIBFLASH_MAKE_ENV) \
+ -C $(@D)/external/gard)
endef
define HOST_LIBFLASH_BUILD_CMDS
$(HOST_MAKE_ENV) SKIBOOT_VERSION=$(LIBFLASH_VERSION) \
$(MAKE) -C $(@D)/external/pflash
+ $(HOST_MAKE_ENV) SKIBOOT_VERSION=$(LIBFLASH_VERSION) \
+ $(MAKE) -C $(@D)/external/gard
endef
define LIBFLASH_INSTALL_STAGING_CMDS
@@ -45,6 +50,8 @@
$(if $(BR2_PACKAGE_PFLASH),
DESTDIR=$(TARGET_DIR) $(LIBFLASH_MAKE_ENV) \
-C $(@D)/external/pflash install)
+ $(if $(BR2_PACKAGE_OPAL_GARD),
+ $(INSTALL) $(@D)/external/gard/gard $(TARGET_DIR)/usr/bin/opal-gard)
endef
define HOST_LIBFLASH_INSTALL_CMDS