Skip to content
Snippets Groups Projects
Commit ba98b30e authored by Victor Chong's avatar Victor Chong Committed by Jérôme Forissier
Browse files

hikey+debian: Build nvme.img instead of downloading a prebuilt

parent b7e6533d
No related branches found
No related tags found
No related merge requests found
......@@ -395,10 +395,15 @@ lloader-clean: lloader-bin-clean lloader-ptbl-clean
################################################################################
# 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:
......
......@@ -22,7 +22,6 @@ IP ?= 127.0.0.1
# URL to images
SYSTEM_IMG_URL=https://builds.96boards.org/releases/reference-platform/debian/hikey/16.06/hikey-rootfs-debian-jessie-alip-20160629-120.emmc.img.gz
NVME_IMG_URL=https://builds.96boards.org/releases/hikey/linaro/binaries/latest/nvme.img
WIFI_FW_URL=http://http.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-ti-connectivity_20161130-3_all.deb
################################################################################
......@@ -385,11 +384,14 @@ lloader-clean: lloader-bin-clean lloader-ptbl-clean
################################################################################
# nvme image
#
# nvme partition is used to store UEFI non-volatile variables,
# but nvme image is currently an empty list
################################################################################
.PHONY: nvme
nvme: prepare
ifeq ("$(wildcard $(NVME_IMG))","")
wget $(NVME_IMG_URL) -O $(NVME_IMG)
dd if=/dev/zero of=$(NVME_IMG) bs=1K count=128
endif
.PHONY: nvme-cleaner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment