scripts: mkbootimg_rpi3.sh: Add the root permission of make modules
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 4 Mar 2019 11:15:34 +0000 (20:15 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 4 Nov 2019 09:00:55 +0000 (18:00 +0900)
There is a problem with permission denied when creating
modules_install. So we need to add root permissions.

Change-Id: I999fcaa6ddcadc556e7a80d2cc1c1143fab60d51
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
scripts/mkbootimg_rpi3.sh

index 722beac..106e98a 100755 (executable)
@@ -49,7 +49,7 @@ mkdir -p tmp/lib/modules
 dd if=/dev/zero of=modules.img bs=1024 count=20480
 mkfs.ext4 -q -F -t ext4 -b 1024 -L modules modules.img
 sudo mount -o loop modules.img ./tmp/lib/modules
-make modules_install ARCH=arm64 INSTALL_MOD_PATH=./tmp INSTALL_MOD_STRIP=1 CROSS_COMPILE=aarch64-linux-gnu-
+sudo make modules_install ARCH=arm64 INSTALL_MOD_PATH=./tmp INSTALL_MOD_STRIP=1 CROSS_COMPILE=aarch64-linux-gnu-
 sudo -n chown root:root ./tmp/lib/modules -R
 
 sync