From 6ee3be8f7e1bebb9066b18c96afec12ee1bc11f1 Mon Sep 17 00:00:00 2001 From: Markham Date: Fri, 26 Feb 2016 01:53:23 +0100 Subject: [PATCH] prerequisites.mk: fix checkout Kernel-Branch --- make/prerequisites.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/make/prerequisites.mk b/make/prerequisites.mk index b04a82c..71108b5 100755 --- a/make/prerequisites.mk +++ b/make/prerequisites.mk @@ -191,12 +191,12 @@ $(GIT_KERNEL): mkdir -p $(SOURCE_DIR)/git mkdir -p $(GIT_KERNEL) cd $(GIT_KERNEL) && \ - if [ -d $(GIT_KERNEL)/linux-$(CST_KERNEL_VERSION)/ ]; then \ - cd $(GIT_KERNEL)/linux-$(CST_KERNEL_VERSION) && \ + if [ -d $(GIT_KERNEL)/linux-$(KBRANCH)/ ]; then \ + cd $(GIT_KERNEL)/linux-$(KBRANCH) && \ git pull origin $(KBRANCH); \ else \ - git clone -b $(KBRANCH) $(CSGIT)/cst-public-linux-kernel.git/ linux-$(CST_KERNEL_VERSION); \ - cd $(GIT_KERNEL)/linux-$(CST_KERNEL_VERSION) && \ + git clone -b $(KBRANCH) $(CSGIT)/cst-public-linux-kernel.git/ linux-$(KBRANCH); \ + cd $(GIT_KERNEL)/linux-$(KBRANCH) && \ git checkout $(KBRANCH); \ fi -- 2.39.5