From 094252e583ca8deca0dfa5800d480886d4b8feed Mon Sep 17 00:00:00 2001
From: Yu Yezhong <yzyu@marvell.com>
Date: Mon, 10 Apr 2017 11:57:45 +0800
Subject: [PATCH] add "-m" when unpacking cpio

"-m": Preserves original mtime on files being written out, so the copy will
have the same timestamps as the original (copy-out and pass-thru modes)
---
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 3f09f91..ff71413 100644
--- a/build.gradle
+++ b/build.gradle
@@ -84,7 +84,7 @@ task unpack_cpio(type: Exec, dependsOn: unpack_ramdisk_gz) {
     }
     workingDir workdir + "/root"
     executable 'cpio'
-    args = ['-i', '-F', '../ramdisk.img']
+    args = ['-i', '-m', '-F', '../ramdisk.img']
 }
 
 task unpack(type: Delete, dependsOn: unpack_cpio) {