meta-phosphor: ipmi-flash: provide bitbake variable for addr

Provide a bitbake recipe variable to specify the MAPPED_ADDRESS, instead
of requiring a user to specifically set the configuration.  Setting this
value is required for any of the larger transfer mechanisms and is
therefore an option effectively always set.  Therefore, this simplifies
configuration.

Note: meta-lenovo/meta-hr855xg2 currently has this variable set, a
separate patchset will address this to use this new value during sync.

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I5b6a00cefc6fad94411b9959f023e5320bf16940
diff --git a/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb b/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb
index 92ed337..3bf7ca7 100644
--- a/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb
+++ b/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb
@@ -31,6 +31,10 @@
 
 EXTRA_OECONF = "--disable-tests --disable-build-host-tool"
 
+# Set this variable in your recipe to set it instead of using MAPPED_ADDRESS directly.
+IPMI_FLASH_BMC_ADDRESS ?= "0"
+EXTRA_OECONF_append = " MAPPED_ADDRESS=${IPMI_FLASH_BMC_ADDRESS}"
+
 S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/openbmc/phosphor-ipmi-flash"
 SRCREV = "298930a18d01b4685aab3a7018299c7342afa028"