mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
this patch _truly_ fixes the race condition between generation and
compilation of dtc-parser.tab.c The issue is &> which seems to be parsed differently by $SHELL (/bin/sh) here - as "& >", ie. background + reroute output I push stderr into a separate file now to avoid any trouble Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@311 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
290f6df4b8
commit
d9c75e6201
1 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@ $(obj)/util/dtc/dtc: $(patsubst %,$(obj)/util/dtc/%,$(DTC_OBJS))
|
|||
ftdump: ftdump.o
|
||||
$(Q)$(HOSTCC) -o $@ $^
|
||||
|
||||
$(obj)/util/dtc/dtc-parser.tab.c $(obj)/util/dtc/dtc-parser.tab.h $(obj)/util/dtc/dtc-parser.output: $(src)/util/dtc/dtc-parser.y
|
||||
$(obj)/util/dtc/dtc-parser.tab.c $(obj)/util/dtc/dtc-parser.tab.h: $(src)/util/dtc/dtc-parser.y
|
||||
$(Q)mkdir -p $(obj)/util/dtc
|
||||
$(Q)printf " BISON $(subst $(shell pwd)/,,$(@))\n"
|
||||
$(Q)cd $(obj)/util/dtc; $(BISON) -d $< &> $(obj)/util/dtc/dtc.bison.out
|
||||
$(Q)cd $(obj)/util/dtc; $(BISON) -d $< 2> $(obj)/util/dtc/dtc.bison.stderr.out > $(obj)/util/dtc/dtc.bison.out
|
||||
|
||||
$(obj)/util/dtc/lex.yy.c: $(src)/util/dtc/dtc-lexer.l
|
||||
$(Q)cd $(obj)/util/dtc; $(LEX) $<
|
||||
|
@ -50,7 +50,7 @@ check: all
|
|||
clean:
|
||||
$(Q)rm -f *~ *.o a.out core $(TARGETS)
|
||||
$(Q)rm -f *.tab.[ch] lex.yy.c
|
||||
$(Q)rm -f *.i *.output vgcore.*
|
||||
$(Q)rm -f *.i *.out vgcore.*
|
||||
$(Q)rm -f *.d
|
||||
$(Q)cd tests && $(MAKE) clean
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue