aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-08-08 12:45:54 -0400
committerBrijesh Singh <brijesh.singh@amd.com>2017-08-08 12:45:54 -0400
commitab4f76b0e2409135aba7b6208b31c6ad1872ca84 (patch)
tree9d138c26645cdb19b6d5fcf5a8eeda35081c3e9c /build.sh
parenteb408390e7bba39ebdd84dbc74f1952a980587b7 (diff)
downloadcachepc-amdsev-ab4f76b0e2409135aba7b6208b31c6ad1872ca84.tar.gz
cachepc-amdsev-ab4f76b0e2409135aba7b6208b31c6ad1872ca84.zip
Update the build script to clone specific branches instead of full repo.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/build.sh b/build.sh
index 6e6ea34..2a4bd6a 100755
--- a/build.sh
+++ b/build.sh
@@ -20,10 +20,8 @@ run_cmd()
fetch_kernel()
{
run_cmd "mkdir -p ${BUILD_DIR}/kernel"
- run_cmd "git clone ${KERNEL_GIT_URL} ${BUILD_DIR}/kernel"
+ run_cmd "git clone --single-branch -b ${KERNEL_COMMIT} ${KERNEL_GIT_URL} ${BUILD_DIR}/kernel"
cd ${BUILD_DIR}/kernel
- run_cmd "git branch build ${KERNEL_COMMIT}"
- run_cmd "git checkout build"
}
build_kernel()
@@ -75,10 +73,8 @@ build_ovmf()
fetch_qemu()
{
run_cmd "mkdir -p ${BUILD_DIR}/qemu"
- run_cmd "git clone ${QEMU_GIT_URL} ${BUILD_DIR}/qemu"
+ run_cmd "git clone --single-branch -b ${QEMU_COMMIT} ${QEMU_GIT_URL} ${BUILD_DIR}/qemu"
cd ${BUILD_DIR}/qemu
- run_cmd "git branch build ${QEMU_COMMIT}"
- run_cmd "git checkout build"
}
build_qemu()