Skip to content

Commit

Permalink
kernel.mk: Missed cross-env kernel variable fix. (SynoCommunity#4531)
Browse files Browse the repository at this point in the history
Export REQUIRE_KERNEL_MODULE to default ENV
Fix KERNEL_ROOT to point to $(WORK_DIR)/linux
  • Loading branch information
th0ma7 authored and publicarray committed Apr 8, 2021
1 parent 39418ba commit bc49411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mk/spksrc.cross-env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ ENV += WORK_DIR=$(WORK_DIR)
ENV += INSTALL_PREFIX=$(INSTALL_PREFIX)

ifeq ($(strip $(REQUIRE_KERNEL)),1)
ENV += KERNEL_ROOT=$(WORK_DIR)/../../../kernel/syno-$(ARCH)-$(TCVERSION)/work/source/linux
KERNEL_ROOT=$(WORK_DIR)/../../../kernel/syno-$(ARCH)-$(TCVERSION)/work/source/linux
ENV += REQUIRE_KERNEL_MODULE="$(REQUIRE_KERNEL_MODULE)"
ENV += KERNEL_ROOT=$(WORK_DIR)/linux
KERNEL_ROOT=$(WORK_DIR)/linux
endif

ifeq ($(strip $(REQUIRE_TOOLKIT)),1)
Expand Down

0 comments on commit bc49411

Please sign in to comment.