hikey+debian: Build nvme.img instead of downloading a prebuilt
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/hikey.mk b/hikey.mk
index 5a83c92..ce53e34 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -395,10 +395,15 @@
################################################################################
# nvme image
+#
+# nvme partition is used to store UEFI non-volatile variables,
+# but nvme image is currently an empty list
################################################################################
.PHONY: nvme
nvme: prepare
- wget https://builds.96boards.org/releases/hikey/linaro/binaries/latest/nvme.img -O $(NVME_IMG)
+ifeq ("$(wildcard $(NVME_IMG))","")
+ dd if=/dev/zero of=$(NVME_IMG) bs=1K count=128
+endif
.PHONY: nvme-cleaner
nvme-cleaner: