at91: sam9x,sama5: fix racy SD card image generation
[openwrt/staging/pepe2k.git] / target / linux / at91 / image / sam9x.mk
index b6c5e33ac44fe55d84e9b3d995f2431554d1d200..3f57f4c8c86bee2d39eaa82886f025e0e4c37332 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)