Commit ac16d04f authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

Makefile: use EXTRACFLAGS in order to use user's flags

The main reason to introduce this EXTRACFLAGS variable is to allow people
to cross compile on x86 architectures over 32bits and 64bits

    make EXTRACFLAGS="-m32"
    make EXTRACFLAGS="-m64"
Signed-off-by: Federico Vaga's avatarFederico Vaga <>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 05fabf80
......@@ -24,7 +24,7 @@ CFLAGS += -I../include/linux # for <sdb.h>
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -Wno-pointer-sign
LIB = libsdbfs.a
OBJS = glue.o access.o
CFLAGS = -Wall -ggdb -O2 -I../kernel/include
CFLAGS = -Wall -ggdb -O2 -I../kernel/include $(EXTRACFLAGS)
all: fru-dump fmc-mem
......@@ -2,7 +2,7 @@ OBJ=ipmi.o
CFLAGS+=-fPIC -shared -Wall -Wextra -ggdb
CFLAGS+=-fPIC -shared -Wall -Wextra -ggdb $(EXTRACFLAGS)
all: $(OUT) $(OUT_SO)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment