summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
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