PART_TYPE = c
ifeq "$(BUILD_ARCH)" "aarch64"
BOOTLOADER = grub
+ S_OFFSET = 32768
endif
else
BOOTLOADER = grub
# Install u-boot for Orangepi Zero/Nanopi DUO into image 8KB
dd if=/usr/share/u-boot/orangepi_zero/u-boot-sunxi-with-spl.bin of=$(IMG) bs=1K seek=8 conv=notrunc
endif
+ifeq "$(BUILD_ARCH)" "aarch64"
+ # Install u-boot for NanoPi R2S into image 8KB
+ dd if=/usr/share/u-boot/nanopi_r2s/u-boot-rockchip.bin of=$(IMG) bs=1K seek=32 conv=notrunc
+endif
# Compress Image
xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)