Skip to content

Commit

Permalink
Refactor without undefine to support older make versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemseemann committed Feb 1, 2020
1 parent bb48e01 commit ff18455
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sming/project.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit ff18455

Please sign in to comment.