From: Markham Date: Fri, 26 Feb 2016 00:53:23 +0000 (+0100) Subject: prerequisites.mk: fix checkout Kernel-Branch X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=6ee3be8f7e1bebb9066b18c96afec12ee1bc11f1;p=bs-cst-neutrino-hd.git prerequisites.mk: fix checkout Kernel-Branch --- 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