at91: sam9x,sama5: fix racy SD card image generation
[openwrt/openwrt.git] / target / linux / at91 / image / sam9x.mk
index 4de96097758dd045aaa1bd564f916439493fd729..409e43ca6e90507054f06a4fb550447c920abf5c 100644 (file)
@@ -35,7 +35,7 @@ define Build/at91-sdcard
   ./gen_at91_sdcard_img.sh \
        $@.img \
        $@.boot \
-       $(KDIR)/root.ext4 \
+       $(IMAGE_ROOTFS) \
        $(AT91_SD_BOOT_PARTSIZE) \
        $(CONFIG_TARGET_ROOTFS_PARTSIZE)