wic: Populate hostfw partition

Populate the hostfw partition by specifying the directory to be
used as source for the filesystem. This directory is populated
by a bbappend to the hostfw recipe.

Change-Id: I7d0b0ad7f0b68469e713a80ac495800e36a98bf0
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/conf/machine/include/aspeed.inc b/conf/machine/include/aspeed.inc
index 046553b..c30eb6b 100644
--- a/conf/machine/include/aspeed.inc
+++ b/conf/machine/include/aspeed.inc
@@ -15,6 +15,7 @@
 
 WKS_FILE ?= "emmc-aspeed.wks.in"
 WKS_FILE_DEPENDS ?= " \
+    phosphor-hostfw-image \
     virtual/bootloader \
     virtual/kernel \
 "
diff --git a/wic/emmc-aspeed.wks.in b/wic/emmc-aspeed.wks.in
index ace5f47..ee0fbff 100644
--- a/wic/emmc-aspeed.wks.in
+++ b/wic/emmc-aspeed.wks.in
@@ -27,4 +27,4 @@
 part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-a
 part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-b
 part --fstype=ext4 --fixed-size 7G --label rwfs
-part --fstype=ext4 --fixed-size ${WKS_HOSTFW_SIZE} --label hostfw
+part --fstype=ext4 --fixed-size ${WKS_HOSTFW_SIZE} --source rootfs --rootfs-dir=${DEPLOY_DIR_IMAGE}/hostfw/image/ --label hostfw