Last active
July 11, 2019 07:57
-
-
Save fcicq/5331f348d92626c10faeb98c8da70e3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifeq ($(KERNEL_OVERLAYS),) | |
KERNEL_OVERLAYS := | |
KERNEL_OVERLAYS += $(CURDIR)/../nvidia | |
KERNEL_OVERLAYS += $(CURDIR)/../nvgpu | |
KERNEL_OVERLAYS += $(CURDIR)/../nvgpu-next | |
KERNEL_OVERLAYS += $(CURDIR)/../nvidia-t23x | |
else | |
override KERNEL_OVERLAYS := $(subst :, ,$(KERNEL_OVERLAYS)) | |
endif | |
override KERNEL_OVERLAYS := $(abspath $(KERNEL_OVERLAYS)) | |
export KERNEL_OVERLAYS | |
define set_srctree_overlay | |
overlay_name := $(lastword $(subst /, ,$(overlay))) | |
srctree.$(overlay_name) := $(overlay) | |
export srctree.$(overlay_name) | |
endef | |
$(foreach overlay,$(KERNEL_OVERLAYS),$(eval $(value set_srctree_overlay))) | |
# ... add after VPATH! | |
VPATH += $(foreach overlay,$(KERNEL_OVERLAYS),:$(overlay)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment