From 63c7dc536a97e8649689e7cdd2de17d12780e112 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 22 Feb 2021 23:01:08 +0100 Subject: [PATCH] - prerequisites: do only checkout branches when BRANCH variables are active --- make/buildsystem-prerequisites.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/buildsystem-prerequisites.mk b/make/buildsystem-prerequisites.mk index 36abd1b8..e00ebf20 100644 --- a/make/buildsystem-prerequisites.mk +++ b/make/buildsystem-prerequisites.mk @@ -169,8 +169,12 @@ ni-sources: $(SOURCE_DIR) \ $(SOURCE_DIR)/$(NI_STREAMRIPPER) checkout-branches: +ifneq ($(FFMPEG_BRANCH),$(empty)) $(CD) $(SOURCE_DIR)/$(NI_FFMPEG); git checkout $(FFMPEG_BRANCH) +endif +ifneq ($(KERNEL_BRANCH),$(empty)) $(CD) $(SOURCE_DIR)/$(NI_LINUX_KERNEL); git checkout $(KERNEL_BRANCH) +endif $(CD) $(SOURCE_DIR)/$(NI_NEUTRINO); git checkout $(NEUTRINO_BRANCH) # -----------------------------------------------------------------------------