Message ID | 20230119114045.34553-5-mhartmay@linux.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Some cleanup patches | expand |
On 1/19/23 12:40, Marc Hartmayer wrote: > This change makes it easier to reuse them. While at it, remove `lib` > include path since it seems to be unused. > > Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> > --- > s390x/Makefile | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/s390x/Makefile b/s390x/Makefile > index 71e6563bbb61..8719f0c837cf 100644 > --- a/s390x/Makefile > +++ b/s390x/Makefile > @@ -63,9 +63,12 @@ test_cases: $(tests) > test_cases_binary: $(tests_binary) > test_cases_pv: $(tests_pv_binary) > > +INCLUDE_PATHS = $(SRCDIR)/lib $(SRCDIR)/lib/s390x > +CPPFLAGS = $(addprefix -I,$(INCLUDE_PATHS)) > + > CFLAGS += -std=gnu99 > CFLAGS += -ffreestanding > -CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/s390x -I lib > +CFLAGS += $(CPPFLAGS) > CFLAGS += -O2 > CFLAGS += -march=zEC12 > CFLAGS += -mbackchain
diff --git a/s390x/Makefile b/s390x/Makefile index 71e6563bbb61..8719f0c837cf 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -63,9 +63,12 @@ test_cases: $(tests) test_cases_binary: $(tests_binary) test_cases_pv: $(tests_pv_binary) +INCLUDE_PATHS = $(SRCDIR)/lib $(SRCDIR)/lib/s390x +CPPFLAGS = $(addprefix -I,$(INCLUDE_PATHS)) + CFLAGS += -std=gnu99 CFLAGS += -ffreestanding -CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/s390x -I lib +CFLAGS += $(CPPFLAGS) CFLAGS += -O2 CFLAGS += -march=zEC12 CFLAGS += -mbackchain
This change makes it easier to reuse them. While at it, remove `lib` include path since it seems to be unused. Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> --- s390x/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)