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.

(From meta-phosphor rev: 2fba5de5486426c79c9dccb63394e82ff58093cb)

Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I35fb753aaea4a9ca5e52d48c6c60b50ac0511ac6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb
index 92ed337..3bf7ca7 100644
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-flash_git.bb
+++ b/meta-phosphor/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"