at91: sdcard image with ext4 rootfs
authorSandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
Fri, 4 May 2018 17:27:48 +0000 (10:27 -0700)
committerJohn Crispin <john@phrozen.org>
Sat, 5 May 2018 04:55:21 +0000 (06:55 +0200)
creating sdcard image with ext4 rootfs only and ignoring creating
other filesystem in sdcard image.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
target/linux/at91/image/Makefile
target/linux/at91/image/sama5.mk

index ccaeebe7cacf5b91bff92c9c2f97b55ebb89b360..93180dd64f8a827eacac43f5c453c75ba7018299 100644 (file)
@@ -23,7 +23,7 @@ endif
 define Device/Default
   $(Device/default-nand)
   PROFILES := Default
-  FILESYSTEMS := squashfs ubifs
+  FILESYSTEMS := squashfs ubifs ext4
   DEVICE_DTS := $(1)
   KERNEL_NAME := zImage
   KERNEL_SIZE := 4096k
index 5960f40a3baa21ed8d585be8115e981bb2754572..fd7a53421eb4f0895e1c615d5fc840a89196e0b8 100644 (file)
@@ -4,6 +4,7 @@ FAT32_BLOCKS:=$(shell echo \
   $$(($(AT91_SD_BOOT_PARTSIZE)*1024*1024/$(FAT32_BLOCK_SIZE))))
 
 define Build/at91-sdcard
+  $(if $(findstring ext4,$@), \
   rm -f $@.boot
   mkfs.fat -C $@.boot $(FAT32_BLOCKS)
 
@@ -30,7 +31,7 @@ define Build/at91-sdcard
 
   gzip -nc9 $@.img > $@
 
-  rm -f $@.img $@.boot
+  rm -f $@.img $@.boot )
 endef
 
 define Device/evaluation-sdimage