summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-09-16 13:05:46 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-09-16 13:05:46 +0200
commitafab289b265ff987c3f62393b3ef707c2650704f (patch)
treee4145c43758117b6c9c372a89cbb8ad34e6fb7fe /target/Makefile
parenta2e96ddb9519a2f40857f11501b88e465d25082d (diff)
add some native build fixes (tested on Lemote notebook)
- enable busybox applets needed for natvie builds - add header packages for expat and libnl - remove rtl8187b driver, use kernel included driver (needs more testing)
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/Makefile b/target/Makefile
index 5e7259d8a..dc2d3dd5a 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -39,9 +39,13 @@ config-prepare: $(TOPDIR)/.config
sed 's/=y/=m/' >${BUILD_DIR}/.kernelconfig.modkernel
@sed -n '/^# ADK_KERNEL/s//# CONFIG/p' ${TOPDIR}/.config \
>${BUILD_DIR}/.kernelconfig.nokernel
-# if native build, first try /proc/config.gz
ifeq ($(ADK_NATIVE),y)
- @if [ -f /proc/config.gz ];then zcat /proc/config.gz > ${BUILD_DIR}/.kernelconfig.board; else cp ${ADK_TARGET}/kernel.config.$(ARCH) ${BUILD_DIR}/.kernelconfig.board; fi
+ @if [ -f /etc/adktarget ];then \
+ target=$$(cat /etc/adktarget); \
+ cp $(TOPDIR)/target/$$target/kernel.config ${BUILD_DIR}/.kernelconfig.board; \
+ else \
+ if [ -f /proc/config.gz ];then zcat /proc/config.gz > ${BUILD_DIR}/.kernelconfig.board; else cp ${ADK_TARGET}/kernel.config.$(ARCH) ${BUILD_DIR}/.kernelconfig.board; fi; \
+ fi
else
@cp ${ADK_TARGET}/kernel.config ${BUILD_DIR}/.kernelconfig.board
endif