mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
lx_emul_common: prevent override of CC_OPT_$(1)
This allows for extending such compilation unit specific options for down by users of the library. Issue #4500.
This commit is contained in:
committed by
Christian Helmuth
parent
d324331325
commit
e313059dd5
@@ -135,7 +135,7 @@ CUSTOM_TARGET_DEPS += $(TARGET_SOURCE_LIST)
|
|||||||
|
|
||||||
# Define per-compilation-unit CC_OPT defines needed by MODULE* macros in Linux
|
# Define per-compilation-unit CC_OPT defines needed by MODULE* macros in Linux
|
||||||
define CC_OPT_LX_RULES =
|
define CC_OPT_LX_RULES =
|
||||||
CC_OPT_$(1) = -DKBUILD_MODFILE='"$(1)"' -DKBUILD_BASENAME='"$(notdir $(1))"' -DKBUILD_MODNAME='"$(notdir $(1))"'
|
CC_OPT_$(1) += -DKBUILD_MODFILE='"$(1)"' -DKBUILD_BASENAME='"$(notdir $(1))"' -DKBUILD_MODNAME='"$(notdir $(1))"'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach file,$(LX_SRC),$(eval $(call CC_OPT_LX_RULES,$(file:%.c=%))))
|
$(foreach file,$(LX_SRC),$(eval $(call CC_OPT_LX_RULES,$(file:%.c=%))))
|
||||||
|
|||||||
Reference in New Issue
Block a user