utils/cbfstool: No need to pass -g flag twice
Spotted by building with Clang. Change-Id: I7ab97278d8bd586a71e453c8cc9d26dd6938c8d2 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6139 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
parent
efe2435fec
commit
44fd0a0031
|
@ -6,7 +6,6 @@ CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
|
||||||
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
|
||||||
CFLAGS += -Wstrict-aliasing -Werror
|
CFLAGS += -Wstrict-aliasing -Werror
|
||||||
CFLAGS += -Wshadow
|
CFLAGS += -Wshadow
|
||||||
LDFLAGS += -g
|
|
||||||
|
|
||||||
CBFSTOOL_BINARY:=$(obj)/cbfstool
|
CBFSTOOL_BINARY:=$(obj)/cbfstool
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@ rmodobj += common.o
|
||||||
rmodobj += elfheaders.o
|
rmodobj += elfheaders.o
|
||||||
rmodobj += xdr.o
|
rmodobj += xdr.o
|
||||||
|
|
||||||
TOOLFLAGS= -g
|
|
||||||
|
|
||||||
ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
|
ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
|
||||||
TOOLFLAGS+=-mno-ms-bitfields
|
TOOLFLAGS+=-mno-ms-bitfields
|
||||||
endif
|
endif
|
||||||
|
@ -51,4 +49,3 @@ $(objutil)/cbfstool/cbfstool: $(objutil)/cbfstool $(addprefix $(objutil)/cbfstoo
|
||||||
$(objutil)/cbfstool/rmodtool: $(objutil)/cbfstool $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
$(objutil)/cbfstool/rmodtool: $(objutil)/cbfstool $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
||||||
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
printf " HOSTCC $(subst $(objutil)/,,$(@)) (link)\n"
|
||||||
$(HOSTCC) $(TOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
$(HOSTCC) $(TOOLFLAGS) -o $@ $(addprefix $(objutil)/cbfstool/,$(rmodobj))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue