diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-08 12:58:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-08 12:58:54 +0100 |
commit | f3e1c3cf993b0ba54afa0ff9552ffefd39828b23 (patch) | |
tree | 1f5d52b7dff4a5c60e17c8f0fd7f7412c946a0ee /target/Makefile | |
parent | d77656116191a166ed0477cf16830480a2406fc5 (diff) | |
parent | d93c019f2cfdf53be59f02600cc25c547ba24edc (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/Makefile')
-rw-r--r-- | target/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/Makefile b/target/Makefile index b8b92c960..562d2b86b 100644 --- a/target/Makefile +++ b/target/Makefile @@ -59,12 +59,22 @@ 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 +ifeq ($(ADK_USE_KERNEL_MINICONFIG),y) + @if [ -f ${ADK_TARGET_ARCH}/kernel/${ADK_TARGET_KERNEL_MINICONFIG} ];then \ + cat ${TOPDIR}/target/linux/kernel.config \ + ${ADK_TARGET_ARCH}/kernel/${ADK_TARGET_KERNEL_MINICONFIG} > ${BUILD_DIR}/.kernelconfig.board; \ + else \ + echo "no miniconfig found for target system"; \ + exit 1; \ + fi +else @if [ -f ${ADK_TARGET_ARCH}/${KERNEL_CFG}.$(ADK_TARGET_SYSTEM) ];then \ cp ${ADK_TARGET_ARCH}/${KERNEL_CFG}.$(ADK_TARGET_SYSTEM) ${BUILD_DIR}/.kernelconfig.board; \ else \ cp ${ADK_TARGET_ARCH}/${KERNEL_CFG} ${BUILD_DIR}/.kernelconfig.board; \ fi endif +endif @(cat ${BUILD_DIR}/.kernelconfig.{modules,kernel} | \ while IFS='=' read symbol value; do \ sed -i -e "/^# $$symbol/d" ${BUILD_DIR}/.kernelconfig.board; \ |