From ff184558712f896f02887f644b45dfa5b1376e01 Mon Sep 17 00:00:00 2001 From: aemseemann Date: Sat, 1 Feb 2020 20:28:37 +0100 Subject: [PATCH] Refactor without `undefine` to support older `make` versions. --- Sming/project.mk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sming/project.mk b/Sming/project.mk index f7d5f10355..1b2225a3cc 100644 --- a/Sming/project.mk +++ b/Sming/project.mk @@ -163,7 +163,7 @@ COMPONENT_VARS := COMPONENT_RELINK_VARS := COMPONENT_TARGETS := COMPONENT_DEPENDS := -override undefine COMPONENT_PYTHON_REQUIREMENTS +COMPONENT_PYTHON_REQUIREMENTS := $$(wildcard $2/requirements.txt) EXTRA_LIBS := EXTRA_LDFLAGS := # Process any component.mk file (optional) @@ -188,11 +188,7 @@ CMP_$1_LIBNAME := $$(COMPONENT_LIBNAME) CMP_$1_INCDIRS := $$(COMPONENT_INCDIRS) CMP_$1_DEPENDS := $$(COMPONENT_DEPENDS) CMP_$1_RELINK_VARS := $$(COMPONENT_RELINK_VARS) -ifeq ($$(origin COMPONENT_PYTHON_REQUIREMENTS),undefined) -PYTHON_REQUIREMENTS += $$(wildcard $2/requirements.txt) -else PYTHON_REQUIREMENTS += $$(call AbsoluteSourcePath,$2,$$(COMPONENT_PYTHON_REQUIREMENTS)) -endif APPCODE += $$(call AbsoluteSourcePath,$2,$$(CMP_$1_APPCODE)) COMPONENTS += $$(filter-out $$(COMPONENTS),$$(CMP_$1_DEPENDS)) ifneq (App,$1)