From ed7c0c316f29cade934c3d90e1e257675cb0fa4a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 16 Sep 2011 03:52:40 +0200 Subject: add support for sharp zaurus (tested on terrier cl-3200) --- target/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'target/Makefile') diff --git a/target/Makefile b/target/Makefile index 7ca524c89..470e9e4e9 100644 --- a/target/Makefile +++ b/target/Makefile @@ -53,7 +53,11 @@ 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; \ fi else - @cp ${ADK_TARGET_ARCH}/kernel.config ${BUILD_DIR}/.kernelconfig.board + if [ -f ${ADK_TARGET_ARCH}/kernel.config.$(ADK_TARGET_SYSTEM) ];then \ + cp ${ADK_TARGET_ARCH}/kernel.config.$(ADK_TARGET_SYSTEM) ${BUILD_DIR}/.kernelconfig.board; \ + else \ + cp ${ADK_TARGET_ARCH}/kernel.config ${BUILD_DIR}/.kernelconfig.board; \ + fi endif @(cat ${BUILD_DIR}/.kernelconfig.{modules,kernel} | \ while IFS='=' read symbol value; do \ @@ -85,7 +89,11 @@ endif @-rm -f ${BUILD_DIR}/.kernelconfig.tmp else config-prepare: $(TOPDIR)/.config - @cp ${ADK_TARGET_ARCH}/kernel.config ${BUILD_DIR}/.kernelconfig + if [ -f ${ADK_TARGET_ARCH}/kernel.config.$(ADK_TARGET_SYSTEM) ];then \ + cp ${ADK_TARGET_ARCH}/kernel.config.$(ADK_TARGET_SYSTEM) ${BUILD_DIR}/.kernelconfig.board; \ + else \ + cp ${ADK_TARGET_ARCH}/kernel.config ${BUILD_DIR}/.kernelconfig.board; \ + fi endif prepare: $(ADK_TARGET_ARCH)-prepare -- cgit v1.2.3