From 23eddfb2a2242fa1bad2570a39779e4e0db497cc Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 16 Nov 2017 23:03:59 +0000 Subject: [PATCH] Shallow clone to save clone time and disk space --- .gitmodules | 2 +- configure | 4 ++++ getting-started.md | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 70c8843..eb2bb23 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,7 +1,7 @@ [submodule "buildroot"] path = buildroot url = https://github.com/buildroot/buildroot - ignore = dirty + ignore = dirty [submodule "qemu"] path = qemu url = https://github.com/cirosantilli/qemu diff --git a/configure b/configure index 2dd5982..ca4fecb 100755 --- a/configure +++ b/configure @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -ex y='' while getopts t OPT; do case "$OPT" in @@ -8,6 +9,9 @@ while getopts t OPT; do esac done shift $(($OPTIND - 1)) +git submodule update --depth 1 --jobs 4 --init +cd qemu +git submodule update --init sudo apt-get update $y # Building SDL for QEMU in Buildroot was rejected upstream because it adds many dependencies: # https://patchwork.ozlabs.org/patch/770684/ diff --git a/getting-started.md b/getting-started.md index b81e099..9679acf 100644 --- a/getting-started.md +++ b/getting-started.md @@ -44,7 +44,7 @@ The only advantage of using your host machine is that you don't have to wait som Reserve 12Gb of disk: - git clone --recursive https://github.com/cirosantilli/linux-kernel-module-cheat + git clone https://github.com/cirosantilli/linux-kernel-module-cheat cd linux-kernel-module-cheat ./configure ./build