Enable p8-pore-binutils as an external toolchain

Create the infrastructure necessary to bundle the p8-pore-binutils as
part of the sdk build, allowing it to be re-inserted as part of an
external sdk.

Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
diff --git a/openpower/toolchain/p8-pore-toolchain/Config.in b/openpower/toolchain/p8-pore-toolchain/Config.in
index 40dd48d..c03422b 100644
--- a/openpower/toolchain/p8-pore-toolchain/Config.in
+++ b/openpower/toolchain/p8-pore-toolchain/Config.in
@@ -1,6 +1,27 @@
+menuconfig BR2_PACKAGE_P8_PORE_TOOLCHAIN
+	bool "p8-pore-toolchain"
+	default y if (BR2_OPENPOWER_POWER8)
+	help
+	  Build the PORE toolchain required to build the
+	  POWER8 OCC firmware
+
+if BR2_PACKAGE_P8_PORE_TOOLCHAIN
+choice
+	prompt "P8 PORE Toolchain Type"
+	help
+	  Select whether to build the P8 PORE toolchain or
+	  provide an external one
+
+source "$BR2_EXTERNAL_OP_BUILD_PATH/package/p8-pore-binutils/Config.in"
+source "$BR2_EXTERNAL_OP_BUILD_PATH/package/p8-pore-toolchain-external/Config.in"
+
+endchoice
+
 config BR2_PACKAGE_HAS_P8_PORE_TOOLCHAIN
 	bool
 
 config BR2_PACKAGE_PROVIDES_P8_PORE_TOOLCHAIN
 	depends on BR2_PACKAGE_HAS_P8_PORE_TOOLCHAIN
 	string
+
+endif
diff --git a/openpower/toolchain/p8-pore-toolchain/p8-pore-toolchain.mk b/openpower/toolchain/p8-pore-toolchain/p8-pore-toolchain.mk
index b618004..7936be5 100644
--- a/openpower/toolchain/p8-pore-toolchain/p8-pore-toolchain.mk
+++ b/openpower/toolchain/p8-pore-toolchain/p8-pore-toolchain.mk
@@ -3,5 +3,7 @@
 # p8-pore-toolchain
 #
 ################################################################################
+P8_PORE_TOOLCHAIN_DIR = $(STAGING_SUBDIR)/p8-pore-toolchain
+P8_PORE_TOOLCHAIN_BIN = $(STAGING_SUBDIR)/p8-pore-toolchain/linux
 
 $(eval $(host-virtual-package))