summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Voltz <john.voltz@gmail.com>2008-03-12 13:07:10 +0000
committerJohn Voltz <john.voltz@gmail.com>2008-03-12 13:07:10 +0000
commit41f6b79ff746b7a6f7c2947999a20e1d163929f2 (patch)
tree6232827e6dab6cc30295d17834e57ddcbc3077c0 /package
parent923f42a3c22dc42bcdeba8b5883a71c1e340d7da (diff)
downloadbuildroot-novena-41f6b79ff746b7a6f7c2947999a20e1d163929f2.tar.gz
buildroot-novena-41f6b79ff746b7a6f7c2947999a20e1d163929f2.zip
added more debugging options for packages
Diffstat (limited to 'package')
-rw-r--r--package/Makefile.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 806a010dd..ad8280db8 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -9,6 +9,31 @@ HOSTMAKE :=$(shell $(CONFIG_SHELL) -c "which $(HOSTMAKE)" || type -p $(HOSTMAKE)
MAKE1:=$(HOSTMAKE) MAKE="$(firstword $(HOSTMAKE)) -j1"
MAKE:=$(HOSTMAKE) -j$(BR2_JLEVEL)
+ifeq ($(BR2_OPTIMIZE_0),y)
+TARGET_OPTIMIZATION=-O0
+endif
+ifeq ($(BR2_OPTIMIZE_1),y)
+TARGET_OPTIMIZATION=-O1
+endif
+ifeq ($(BR2_OPTIMIZE_2),y)
+TARGET_OPTIMIZATION=-O2
+endif
+ifeq ($(BR2_OPTIMIZE_3),y)
+TARGET_OPTIMIZATION=-O3
+endif
+ifeq ($(BR2_OPTIMIZE_S),y)
+TARGET_OPTIMIZATION=-Os
+endif
+ifeq ($(BR2_DEBUG_1),y)
+TARGET_DEBUGGING=-g1
+endif
+ifeq ($(BR2_DEBUG_2),y)
+TARGET_DEBUGGING=-g2
+endif
+ifeq ($(BR2_DEBUG_3),y)
+TARGET_DEBUGGING=-g3
+endif
+
#########################################################################
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)