Commit 3b04f6c7 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

userspace: remove forced DEBUG at build time

-DDEBUG in libwr forces LOG_DEBUG level in libwr/wrs-msg.c. This is
the desired behaviour, but we want it off by default now.

All other DEBUG symbols in Makefiles have no effect, so they are
removed to avoid tricking our developers in setting/unsetting them
and see no effect at all.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0f4e404c
......@@ -18,7 +18,6 @@ installdir="$WRS_OUTPUT_DIR/images/wr"
# This time build is done in-place, but the output is a tree in images/wr.
# Some of the makefiles inside use
export LINUX="$WRS_OUTPUT_DIR/build/linux-2.6.39"
export WRS_HAL_DEBUG=1
cd $sourcedir
make clean || wrs_die "Error cleaning user space"
......
......@@ -19,7 +19,7 @@ STRIP = $(CROSS_COMPILE)strip
OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump
CFLAGS = -Wall -I. -O2 -DDEBUG -ggdb \
CFLAGS = -Wall -I. -O2 -ggdb \
-DLIBWR_INTERNAL \
-I./include \
-I../include \
......
......@@ -38,10 +38,6 @@ GIT_VER = $(shell git describe --always --dirty=+ | sed 's;^wr-switch-sw-;;')
GIT_USR = $(shell git config --get-all user.name)
CFLAGS += -D__GIT_USR__="\"${GIT_USR}\"" -D__GIT_VER__="\"${GIT_VER}\""
ifdef WRS_TOOLS_DEBUG
CFLAGS += -DDEBUG
endif
LDFLAGS = -L../mini-rpc \
-L../libwr \
-L../libsdb \
......
......@@ -22,10 +22,6 @@ CFLAGS = -O -g -Wall \
-I../mini-rpc \
-I$(LINUX)/arch/arm/mach-at91/include
ifdef WRS_HAL_DEBUG
CFLAGS += -DDEBUG
endif
LDFLAGS = -L../libwr -L../mini-rpc \
-lminipc -lm -ldl -lwr
......
......@@ -23,10 +23,6 @@ CFLAGS = -O2 -Wall -ggdb \
-I../libwr/include \
-I$(LINUX)/arch/arm/mach-at91/include
ifdef WRS_RTUD_DEBUG
CFLAGS += -DDEBUG
endif
LDFLAGS := -L../libwr -L../mini-rpc\
-lwr -lpthread -lminipc
......
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