Palmetto PNOR Build Process Functionality
diff --git a/openpower/package/hostboot/Config.in b/openpower/package/hostboot/Config.in
new file mode 100644
index 0000000..f7f8005
--- /dev/null
+++ b/openpower/package/hostboot/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_HOSTBOOT
+ bool "hostboot"
+ default y if (BR2_OPENPOWER_PLATFORM && BR2_powerpc_power8)
+ select BR2_CPP
+ help
+ Project to build the hostboot firmware codebase
+
+
+config BR2_HOSTBOOT_CONFIG_FILE
+ string "Hostboot configuration file for compilation"
+ default default
+ help
+ String used to define hw specific make config file
diff --git a/openpower/package/hostboot/hostboot.mk b/openpower/package/hostboot/hostboot.mk
new file mode 100644
index 0000000..0d09702
--- /dev/null
+++ b/openpower/package/hostboot/hostboot.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# hostboot
+#
+################################################################################
+
+HOSTBOOT_VERSION = 38a5b53f55fbccced9b6f4bc0134dcbfe5fe39d0
+HOSTBOOT_SITE = $(call github,open-power,hostboot,$(HOSTBOOT_VERSION))
+HOSTBOOT_LICENSE = Apache-2.0
+HOSTBOOT_DEPENDENCIES = host-binutils
+
+HOSTBOOT_INSTALL_IMAGES = YES
+HOSTBOOT_INSTALL_TARGET = NO
+
+HOSTBOOT_ENV_VARS=$(TARGET_MAKE_ENV) \
+ CONFIG_FILE=$(BR2_EXTERNAL)/configs/hostboot/$(BR2_HOSTBOOT_CONFIG_FILE) \
+ OPENPOWER_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) HOST_PREFIX="" HOST_BINUTILS_DIR=$(HOST_BINUTILS_DIR)
+
+define HOSTBOOT_BUILD_CMDS
+ $(HOSTBOOT_ENV_VARS) sh -c 'cd $(@D) && source ./env.bash && $(MAKE)'
+endef
+
+define HOSTBOOT_INSTALL_IMAGES_CMDS
+ cd $(@D) && $(@D)/src/build/tools/hbDistribute --openpower $(STAGING_DIR)/hostboot_build_images/
+endef
+
+$(eval $(generic-package))