From 7297ef1c47935fb17e49cac8379908e631763566 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 13 Apr 2014 17:06:21 +0200 Subject: use -O0 when debug on --- mk/vars.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/vars.mk b/mk/vars.mk index 2f2ecc134..f3911044f 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -138,7 +138,7 @@ ifneq ($(ADK_DEBUG),) ifeq ($(ADK_DEBUG_OPTS),y) TARGET_CFLAGS+= -g3 -fno-omit-frame-pointer $(ADK_TARGET_CFLAGS_OPT) else -TARGET_CFLAGS+= -g3 -fno-omit-frame-pointer +TARGET_CFLAGS+= -O0 -g3 -fno-omit-frame-pointer endif else TARGET_CPPFLAGS+= -DNDEBUG -- cgit v1.2.3 From 7209a2a3b092d9964a8c8aa48d2b8d1d42d41738 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 14 Apr 2014 14:39:11 +0200 Subject: compile patch when not available on Host --- mk/vars.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mk') diff --git a/mk/vars.mk b/mk/vars.mk index f3911044f..3ae3f1d67 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -168,7 +168,7 @@ CXXFLAGS_FOR_BUILD?= -O2 -Wall LDFLAGS_FOR_BUILD?= -L$(STAGING_HOST_DIR)/usr/lib FLAGS_FOR_BUILD= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD} -PATCH= ${BASH} $(SCRIPT_DIR)/patch.sh +PATCH= PATH=${HOST_PATH} ${BASH} $(SCRIPT_DIR)/patch.sh SED:= PATH=${HOST_PATH} sed -i -e LINUX_DIR:= $(BUILD_DIR)/linux KERNEL_MODULE_FLAGS:= ARCH=${ARCH} \ -- cgit v1.2.3