summaryrefslogtreecommitdiff
path: root/target/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-27 22:14:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-27 22:14:21 +0200
commitbbd610f15a71b27c955175cb98392b114717fd47 (patch)
tree13d196e0e70c15c119336f59fa8f7183884590d5 /target/Makefile
parentbad63eb735b13e1f009a19af1dd810f7279c2ba1 (diff)
native build support
- just use native gcc and binutils to compile a system - can be used to chroot into it - maybe useful later on lemote book to build packages natively
Diffstat (limited to 'target/Makefile')
-rw-r--r--target/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile
index f68ac4a89..e83337aaa 100644
--- a/target/Makefile
+++ b/target/Makefile
@@ -41,7 +41,12 @@ 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 ${DEVICE}/kernel.config ${BUILD_DIR}/.kernelconfig.board; fi
+else
cp ${DEVICE}/kernel.config ${BUILD_DIR}/.kernelconfig.board
+endif
(cat ${BUILD_DIR}/.kernelconfig.{modules,kernel} | \
while IFS='=' read symbol value; do \
sed -i -e "/^# $$symbol/d" ${BUILD_DIR}/.kernelconfig.board; \