diff options
author | John Voltz <john.voltz@gmail.com> | 2008-03-12 13:07:10 +0000 |
---|---|---|
committer | John Voltz <john.voltz@gmail.com> | 2008-03-12 13:07:10 +0000 |
commit | 41f6b79ff746b7a6f7c2947999a20e1d163929f2 (patch) | |
tree | 6232827e6dab6cc30295d17834e57ddcbc3077c0 /package/Makefile.in | |
parent | 923f42a3c22dc42bcdeba8b5883a71c1e340d7da (diff) |
added more debugging options for packages
Diffstat (limited to 'package/Makefile.in')
-rw-r--r-- | package/Makefile.in | 25 |
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) |