summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/parser/makefile
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-08-16 17:35:23 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-08-17 11:39:25 -0500
commit04a01c63da3f9afc08b71c863127299e2d22462f (patch)
tree32b3628760b5b56a96d68aeca46220862b7b445b /src/usr/errl/parser/makefile
parentf24bf89ab0cb82fee8ab80ed6f5aa8142e3db462 (diff)
downloadtalos-hostboot-04a01c63da3f9afc08b71c863127299e2d22462f.tar.gz
talos-hostboot-04a01c63da3f9afc08b71c863127299e2d22462f.zip
Errl parser fixes.
- Rexx script fails on newer Linux. - Compiler warnings on newer GCC due to const char vs char. - Add .gitignore file for usr/errl/parser/bin directory. Change-Id: I4c86fef91d68e2dd909b72b8802173c76ecd9da4 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/261 Tested-by: Jenkins Server Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser/makefile')
-rw-r--r--src/usr/errl/parser/makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/usr/errl/parser/makefile b/src/usr/errl/parser/makefile
index f0d8e180b..2a5b44417 100644
--- a/src/usr/errl/parser/makefile
+++ b/src/usr/errl/parser/makefile
@@ -13,23 +13,25 @@ all: code_pass
gen_pass:
-code_pass: bindir $(BIN)/errlparser
+code_pass: $(BIN)/errlparser
clean:
rm -fr $(BIN)
beam:
-bindir:
- mkdir -p $(BIN)
+$(BIN)/comps.C: $(ROOTPATH)/src/include/usr/hbotcompid.H
+ mkdir -p $(BIN)
+ grep "const compId_t [A-Z0-9]*_COMP_ID" $^ | \
+ grep -v MY_COMP_ID | \
+ sed 's/const compId_t \([A-Z0-9]*\)_COMP_ID[ =\t]*\(0[xX][0-0a-fA-F]*\).*/{ "\1", \2 },/' \
+ > $@
-$(BIN)/comps.C: $(ROOTPATH)/src/include/usr/hbotcompid.H readcomps.rex
- rexx readcomps.rex $(ROOTPATH)/src/include/usr/hbotcompid.H >$(BIN)/comps.C
-
-$(BIN)/errlparser.o: errlparser.C $(ROOTPATH)/src/include/usr/errl/errltypes.H $(BIN)/comps.C
- $(CC) -c $(CFLAGS) -I bin -o $(BIN)/errlparser.o errlparser.C
+$(BIN)/errlparser.o: errlparser.C $(ROOTPATH)/src/include/usr/errl/errltypes.H $(BIN)/comps.C
+ mkdir -p $(BIN)
+ $(CC) -c $(CFLAGS) -I bin -o $@ $<
$(BIN)/errlparser: $(BIN)/errlparser.o
- $(CC) -o $(BIN)/errlparser $(BIN)/errlparser.o
+ $(CC) -o $@ $<
OpenPOWER on IntegriCloud