help
Adds -g3 to the CFLAGS
-config DEBUG_DIR
- bool "Install debugging binaries into a staging directory"
- default n
- help
- This will install all compiled package binaries into build_dir/target-*/debug-*/,
- useful for cross-debugging via gdb/gdbserver
-
config IPV6
bool
prompt "Enable IPv6 support in packages"
+++ /dev/null
-#
-# Copyright (C) 2006,2007 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-ifeq ($(DUMP),)
- define BuildTarget/debug
-
- DEBUG_STAMP_$(1) := $(DEBUG_DIR)/stamp/$(1)
-
- ifdef Package/$(1)/install
- ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),)
- compile: $$(DEBUG_STAMP_$(1))
- endif
- endif
-
- $$(DEBUG_STAMP_$(1)): $(PKG_BUILD_DIR)/.built
- mkdir -p $(DEBUG_DIR)/stamp
- $(call Package/$(1)/install,$(DEBUG_DIR))
- touch $$(DEBUG_STAMP_$(1))
-
-
- endef
-endif
include $(INCLUDE_DIR)/package-defaults.mk
include $(INCLUDE_DIR)/package-dumpinfo.mk
include $(INCLUDE_DIR)/package-ipkg.mk
-include $(INCLUDE_DIR)/package-debug.mk
include $(INCLUDE_DIR)/package-bin.mk
include $(INCLUDE_DIR)/autotools.mk
$(Dumpinfo/Package), \
$(foreach target, \
$(if $(Package/$(1)/targets),$(Package/$(1)/targets), \
- $(if $(PKG_TARGETS),$(PKG_TARGETS), ipkg $(if $(CONFIG_DEBUG_DIR),debug)) \
+ $(if $(PKG_TARGETS),$(PKG_TARGETS), ipkg) \
), $(BuildTarget/$(target)) \
) \
)
TARGET_ROOTFS_DIR?=$(if $(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(BUILD_DIR))
TARGET_DIR:=$(TARGET_ROOTFS_DIR)/root-$(BOARD)
STAGING_DIR_ROOT:=$(STAGING_DIR)/root-$(BOARD)
-DEBUG_DIR:=$(BUILD_DIR)/debug-$(BOARD)
BUILD_LOG_DIR:=$(TOPDIR)/logs
TARGET_PATH:=$(STAGING_DIR_HOST)/bin:$(PATH)