summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in13
-rw-r--r--mk/package.mk8
-rw-r--r--target/Config.in7
3 files changed, 20 insertions, 8 deletions
diff --git a/Config.in b/Config.in
index eeda10eaf..4fd011c48 100644
--- a/Config.in
+++ b/Config.in
@@ -53,6 +53,19 @@ config ADK_DEVELSYSTEM
If you choose this option, all necessary software needed
for native building will be selected.
+config ADK_DEBUG
+ bool "Enable debug support"
+ default n
+ help
+ All packages and libc will be compiled and packaged with debug information.
+ Mostly useful for NFS root or big USB/CF disk setups.
+
+config ADK_STATIC
+ bool "Link applications statically by default"
+ default n
+ help
+ Useful for toolchain only target devices.
+
config ADK_MAKE_JOBS
int
default 1 if ! ADK_MAKE_PARALLEL
diff --git a/mk/package.mk b/mk/package.mk
index 9a4ade8eb..c28f22a7c 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -3,9 +3,15 @@
all: build-all-ipkgs
+ifeq ($(ADK_STATIC),y)
+TCFLAGS:= ${TARGET_CFLAGS} -static
+TCXXFLAGS:= ${TARGET_CFLAGS} -static
+TCPPFLAGS:= ${TARGET_CPPFLAGS} -static
+else
TCFLAGS:= ${TARGET_CFLAGS}
TCXXFLAGS:= ${TARGET_CFLAGS}
TCPPFLAGS:= ${TARGET_CPPFLAGS}
+endif
ifeq ($(ADK_DEBUG),)
TCPPFLAGS+= -DNDEBUG
endif
@@ -176,7 +182,7 @@ endif
@mkdir -p $${PACKAGE_DIR} '$${STAGING_PARENT}/pkg' \
'$${STAGING_DIR}/scripts'
ifeq (,$(filter noremove,$(7)))
- if test -s '$${STAGING_PARENT}/pkg/$(1)'; then \
+ @if test -s '$${STAGING_PARENT}/pkg/$(1)'; then \
cd '$${STAGING_DIR}'; \
while read fn; do \
rm -f "$$$$fn"; \
diff --git a/target/Config.in b/target/Config.in
index 769e1de55..0f993e0be 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -655,13 +655,6 @@ config ADK_CXX
help
Enable C++ Compiler and Libraries
-config ADK_DEBUG
- bool "Enable debug support"
- default n
- help
- All packages and libc will be compiled and packaged with debug information.
- Mostly useful for NFS root or big USB/CF disk setups.
-
config ADK_IPV6
bool "Enable IPv6 support"
default n