Commit 48ed784f authored by Vagrant Cascadian's avatar Vagrant Cascadian

[arm64] Add support for netboot SD-card-images.

parent 1032dce8
default l0
menu title Debian-Installer
prompt 0
timeout 50
label l0
menu label Debian-Installer
linux /vmlinuz
initrd /initrd.gz
fdtdir /dtbs/
MEDIA_TYPE = netboot image
NETBOOT_DIR_TARGETS = $(TEMP_INITRD) $(TEMP_KERNEL)
TARGET = $(NETBOOT_DIR) $(NETBOOT_TAR) $(MINIISO)
TARGET = $(NETBOOT_DIR) $(NETBOOT_TAR) $(MINIISO) netboot_images_concatenateable
EXTRANAME = $(MEDIUM)/
MANIFEST-NETBOOT_DIR = "PXE boot directory for tftp server"
MANIFEST-NETBOOT_TAR = "tarball of PXE boot directory"
MANIFEST-MINIISO = "tiny CD image that boots the netboot installer"
IMAGE_SIZE = 100000
.PHONY: netboot_images_concatenateable
netboot_images_concatenateable: $(TEMP_KERNEL) $(TEMP_INITRD) $(TEMP_DTBS)
-rm -rf $(TEMP)/netboot_images_concatenateable
mkdir $(TEMP)/netboot_images_concatenateable
cp $(TEMP_KERNEL) $(TEMP)/netboot_images_concatenateable/vmlinuz
cp $(TEMP_INITRD) $(TEMP)/netboot_images_concatenateable/initrd.gz
mkdir $(TEMP)/netboot_images_concatenateable/extlinux
cp boot/arm64/extlinux/extlinux.conf $(TEMP)/netboot_images_concatenateable/extlinux/
cp -r $(TEMP_DTBS) $(TEMP)/netboot_images_concatenateable/dtbs/
cp boot/README.device-tree $(TEMP)/netboot_images_concatenateable/dtbs/README
mkdir -p $(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)
for target in a64-olinuxino nanopi_neo2 orangepi_zero_plus2 pine64_plus pinebook teres_i ; do \
echo "Providing u-boot binaries for $$target ..." ; \
gen-hd-image -v -s "$(IMAGE_SIZE)" -b firmware -o $(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/firmware.$${target}.img ; \
TARGET=/usr/lib/u-boot/$${target} u-boot-install-sunxi64 $(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/firmware.$${target}.img ; \
gzip -9n $(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/firmware.$${target}.img ; \
done
gen-hd-image -v -z -b firmware -s "$(IMAGE_SIZE)" -o "$(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/firmware.none.img"
gen-hd-image -v -z -b partition -s "$(IMAGE_SIZE)" -i "$(TEMP)/netboot_images_concatenateable" -o "$(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/partition.img"
cp boot/README.concatenateable_images "$(SOME_DEST)/$(EXTRANAME)/SD-card-images/$(CONCATENATEABLE_SUFFIX)/"
......@@ -30,6 +30,9 @@ debian-installer (20190411) UNRELEASED; urgency=medium
[ Domenico Andreoli ]
* Add support for NanoPi NEO2
[ Vagrant Cascadian ]
* [arm64] Add support for netboot SD-card-images.
-- Cyril Brulebois <kibi@debian.org> Fri, 19 Apr 2019 22:45:44 +0200
debian-installer (20190410) unstable; urgency=medium
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment