Kaydet (Commit) 9911ee51 authored tarafından Luboš Luňák's avatar Luboš Luňák

make sure manual override on cmdline enables symbols

so that e.g. 'make dbglevel=2' works even if --enable-symbols disabled
it for the specific target

Change-Id: If2fff3ef8e42c3b35545b5d8101ef87380412cc7
üst d776f943
......@@ -79,10 +79,19 @@ else
gb_PRODUCT := $(false)
endif
ifneq ($(strip $(ENABLE_SYMBOLS)$(enable_symbols)),)
gb_SYMBOL := $(true)
else
gb_SYMBOL := $(false)
ifneq ($(strip $(ENABLE_SYMBOLS)),)
gb_SYMBOL := $(true)
# make sure symbols are enabled if overriden using the command line
ifeq ($(origin ENABLE_SYMBOLS),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
ifneq ($(strip $(enable_symbols)),)
gb_SYMBOL := $(true)
ifeq ($(origin enable_symbols),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
gb_TIMELOG := 0
......@@ -91,17 +100,32 @@ gb_TIMELOG := 1
endif
gb_DEBUGLEVEL := 0
ifneq ($(strip $(DEBUG)$(debug)),)
ifneq ($(strip $(DEBUG)),)
gb_DEBUGLEVEL := 1
ifeq ($(origin DEBUG),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
ifneq ($(strip $(debug)),)
gb_DEBUGLEVEL := 1
else ifeq ($(gb_PRODUCT),$(false))
ifeq ($(origin debug),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
ifeq ($(gb_PRODUCT),$(false))
gb_DEBUGLEVEL := 1
endif
ifneq ($(strip $(DBGLEVEL)$(dbglevel)),)
ifneq ($(strip $(DBGLEVEL)),)
gb_DEBUGLEVEL := $(strip $(DBGLEVEL))
ifeq ($(origin DBGLEVEL),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
ifneq ($(strip $(dbglevel)),)
gb_DEBUGLEVEL := $(strip $(dbglevel))
else
gb_DEBUGLEVEL := $(strip $(DBGLEVEL))
ifeq ($(origin dbglevel),command line)
ENABLE_SYMBOLS_FOR = all
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment