From: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch 4/4] BaseTools VfrCompile Pccts: Update GCC Flags to the specific one with BUILD_ prefix
Date: Tue, 6 Sep 2016 05:22:30 +0000 [thread overview]
Message-ID: <4666AEFED60F8E4198B42BB01DCEABDF76ECDFE7@ORSMSX113.amr.corp.intel.com> (raw)
In-Reply-To: <1473134387-36776-5-git-send-email-liming.gao@intel.com>
Reviewed the series of 4 patches
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
> -----Original Message-----
> From: Gao, Liming
> Sent: Monday, September 5, 2016 9:00 PM
> To: edk2-devel@lists.01.org
> Cc: Mudusuru, Giri P <giri.p.mudusuru@intel.com>; Zhu, Yonghong
> <yonghong.zhu@intel.com>
> Subject: [Patch 4/4] BaseTools VfrCompile Pccts: Update GCC Flags to the
> specific one with BUILD_ prefix
>
> This change is also applied to VfrCompile Pccts antlr and dlg tool.
>
> In V2, add the missing C rules.
>
> Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
> Cc: Yonghong Zhu <yonghong.zhu@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> ---
> BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile | 13 ++++++++-----
> BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile | 18 +++++++++++-------
> 2 files changed, 19 insertions(+), 12 deletions(-)
>
> diff --git a/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
> b/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
> index c49cfd8..8f2cc78 100644
> --- a/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
> +++ b/BaseTools/Source/C/VfrCompile/Pccts/antlr/makefile
> @@ -157,20 +157,21 @@ PCCTS_H=../h
> # $(DLG) -C2 parser.dlg scan.c
> #
> #set.$(OBJ_EXT): $(SET)/set.c
> -# $(CC) $(CFLAGS) -c $(OUT_OBJ)set.$(OBJ_EXT) $(SET)/set.c
> +# $(BUILD_CC) $(BUILD_CFLAGS) -c $(OUT_OBJ)set.$(OBJ_EXT)
> $(SET)/set.c
>
>
>
> #
> # UNIX (default)
> #
> -CC?=gcc
> +BUILD_CC?=gcc
> COPT=-O
> ANTLR=${BIN_DIR}/antlr
> DLG=${BIN_DIR}/dlg
> OBJ_EXT=o
> OUT_OBJ = -o
> -CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -
> DZZLEXBUFSIZE=65536
> +BUILD_CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) -
> DZZLEXBUFSIZE=65536
> +BUILD_CPPFLAGS=
> #
> # SGI Users, use this CFLAGS
> #
> @@ -179,7 +180,7 @@ OBJ=antlr.o scan.o err.o bits.o build.o fset2.o fset.o
> gen.o \
> globals.o hash.o lex.o main.o misc.o set.o pred.o egman.o mrhoist.o
> fcache.o
>
> $(BIN_DIR)/antlr : $(OBJ) $(SRC)
> - $(CC) $(CFLAGS) -o $(BIN_DIR)/antlr $(OBJ)
> + $(BUILD_CC) $(BUILD_CFLAGS) -o $(BIN_DIR)/antlr $(OBJ)
>
> # what files does PCCTS generate (both ANTLR and DLG)
> PCCTS_GEN=antlr.c scan.c err.c tokens.h mode.h parser.dlg stdpccts.h remap.h
> @@ -202,8 +203,10 @@ scan.o : scan.c mode.h tokens.h
> # $(DLG) -C2 parser.dlg scan.c
>
> set.o : $(SET)/set.c
> - $(CC) $(CFLAGS) -c -o set.o $(SET)/set.c
> + $(BUILD_CC) $(BUILD_CFLAGS) -c -o set.o $(SET)/set.c
>
> +%.o : %.c
> + $(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
>
> #
> # ****** These next targets are common to UNIX and PC world ********
> diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile
> b/BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile
> index dfcf3ee..b3a34d3 100644
> --- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile
> +++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/makefile
> @@ -114,18 +114,19 @@ PCCTS_H=../h
> #
> # UNIX
> #
> -CC?=cc
> +BUILD_CC?=cc
> COPT=-O
> ANTLR=${BIN_DIR}/antlr
> DLG=${BIN_DIR}/dlg
> -CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -
> DZZLEXBUFSIZE=65536
> +BUILD_CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -
> DZZLEXBUFSIZE=65536
> +BUILD_CPPFLAGS=
> OBJ_EXT=o
> OUT_OBJ = -o
> OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
> relabel.o automata.o
>
> $(BIN_DIR)/dlg : $(OBJ) $(SRC)
> - $(CC) $(CFLAGS) -o $(BIN_DIR)/dlg $(OBJ)
> + $(BUILD_CC) $(BUILD_CFLAGS) -o $(BIN_DIR)/dlg $(OBJ)
>
> SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
> relabel.c automata.c
> @@ -137,16 +138,19 @@ SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c
> support.c output.c \
> # $(DLG) -C2 parser.dlg dlg_a.c
>
> dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
> - $(CC) $(CFLAGS) -c dlg_p.c
> + $(BUILD_CC) $(BUILD_CFLAGS) -c dlg_p.c
>
> dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
> - $(CC) $(CFLAGS) -c dlg_a.c
> + $(BUILD_CC) $(BUILD_CFLAGS) -c dlg_a.c
>
> main.$(OBJ_EXT) : main.c dlg.h
> - $(CC) $(CFLAGS) -c main.c
> + $(BUILD_CC) $(BUILD_CFLAGS) -c main.c
>
> set.$(OBJ_EXT) : $(SET)/set.c
> - $(CC) -c $(CFLAGS) $(SET)/set.c
> + $(BUILD_CC) -c $(BUILD_CFLAGS) $(SET)/set.c
> +
> +%.o : %.c
> + $(BUILD_CC) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $< -o $@
>
> lint:
> lint *.c
> --
> 2.8.0.windows.1
next prev parent reply other threads:[~2016-09-06 5:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 3:59 [Patch 0/4] BaseTools GNU makefile: Update GCC Flags to the specific one with BUILD_ prefix Liming Gao
2016-09-06 3:59 ` [Patch 1/4] BaseTools GNU makefile: Add BUILD_CXXFLAGS to align make built-in rule Liming Gao
2016-09-06 3:59 ` [Patch 2/4] BaseTools GNU makefile: remove unused .S rule Liming Gao
2016-09-06 3:59 ` [Patch 3/4] BaseTools VfrCompile GNU makefile: Replace CXX with BUILD_CXX Liming Gao
2016-09-06 3:59 ` [Patch 4/4] BaseTools VfrCompile Pccts: Update GCC Flags to the specific one with BUILD_ prefix Liming Gao
2016-09-06 5:22 ` Mudusuru, Giri P [this message]
2016-09-08 4:51 ` [Patch 0/4] BaseTools GNU makefile: " Zhu, Yonghong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4666AEFED60F8E4198B42BB01DCEABDF76ECDFE7@ORSMSX113.amr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox