Fix home.mk syntax
Fix syntax so it works when HOME_SIZE_MB is nonzero
Test: m docker-home with both Enterprise and Columbia
Change-Id: I4d51ae4bca62e06d99fef3d7dfd7d27b6df24ad5
diff --git a/home.mk b/home.mk
index fcb57f7..c34ce8d 100644
--- a/home.mk
+++ b/home.mk
@@ -34,17 +34,17 @@
$(HOME_RAW_IMG): $(HOME_DIR)
$(LOG) home raw-build
- ifneq ($(HOME_SIZE_MB),)
- fallocate -l $(HOME_SIZE_MB)M $(HOME_RAW_IMG)
- mkfs.ext4 -F -j $(HOME_RAW_IMG)
- endif
+ifneq ($(HOME_SIZE_MB),)
+ fallocate -l $(HOME_SIZE_MB)M $(HOME_RAW_IMG)
+ mkfs.ext4 -F -j $(HOME_RAW_IMG)
+endif
$(LOG) home raw-build finished
$(HOME_IMG): $(HOST_OUT)/bin/img2simg $(HOME_RAW_IMG)
$(LOG) home img2simg
- ifneq ($(HOME_SIZE_MB),)
- $(HOST_OUT)/bin/img2simg $(HOME_RAW_IMG) $(HOME_IMG)
- endif
+ifneq ($(HOME_SIZE_MB),)
+ $(HOST_OUT)/bin/img2simg $(HOME_RAW_IMG) $(HOME_IMG)
+endif
$(LOG) rootfs img2simg finished
clean::