Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
9cca3876
Commit
9cca3876
authored
Apr 23, 2017
by
devsaurus
Browse files
check for outdated version of make
parent
587bfd40
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/component.mk
View file @
9cca3876
...
...
@@ -6,6 +6,12 @@
-include
$(PROJECT_PATH)/build/include/config/auto.conf
include
$(PROJECT_PATH)/components/modules/uppercase.mk
ifneq
(4.0, $(firstword $(sort $(MAKE_VERSION) 4.0)))
# make versions below 4.0 will fail on the uppercase function used in
# the exapnsion of MODULE_NAMES.
$(error
GNU
make
version
4.0
or
above
required)
endif
MODULE_NAMES
:=
$(
call
uppercase,
$(
patsubst
$(COMPONENT_PATH)
/%.c,%,
$(
wildcard
$(COMPONENT_PATH)
/
*
.c
)))
FORCE_LINK
:=
$(
foreach
mod,
$(MODULE_NAMES)
,
$(
if
$
(
CONFIG_LUA_MODULE_
$(mod)
)
,
-u
$(mod)
_module_selected1
))
COMPONENT_ADD_LDFLAGS
=
$(FORCE_LINK)
-lmodules
$(
if
$(CONFIG_LUA_MODULE_BTHCI)
,-lbtdm_app
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment