at91: sam9x,sama5: fix racy SD card image generation
[openwrt/staging/dedeckeh.git] / target / linux / at91 / image / sama5.mk
index 39db3e1cd022b3d140d659d772cc36b699cf434e..7f4dd3316a888e6fc73d5eb42256ca81661169ee 100644 (file)
@@ -39,7 +39,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)