Chinaunix

标题: make menuconfig 问题,大家有没有遇到过? [打印本页]

作者: yjh777    时间: 2011-07-21 16:50
标题: make menuconfig 问题,大家有没有遇到过?
在 drivers/Kconfig 中添加了一行 source "drivers/crypto/Kconfig",并修改相应的drivers/Makefile

  1. source "drivers/telephony/Kconfig"

  2. +source "drivers/crypto/Kconfig"

  3. # input before char - char/joystick depends on it. As does USB.

复制代码
make menuconfig 发现错误

# make menuconfig
scripts/kconfig/mconf arch/powerpc/Kconfig
file drivers/crypto/Kconfig already scanned?
make[1]: *** [menuconfig] 错误 1
make: *** [menuconfig] 错误 2

在这个什么原因啊? 需要做哪些修改才行?
作者: fei1700    时间: 2011-07-21 21:35
本帖最后由 fei1700 于 2011-07-21 21:36 编辑

crypto/kconfig最后已经有加上
source "drivers/crypto/Kconfig"
所以在drivers/Kconfig里加就重复了,

crypto/Kconfig是每个架构的Kconfig里加的
#grep -nr --include="Kconfig*" "crypto" .
./arch/arm/Kconfig:1543:source "crypto/Kconfig"
./crypto/Kconfig:822:source "drivers/crypto/Kconfig"

我用2.6.33.rc1上在Drivers/Kconfig里加提示的错误是
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
crypto/Kconfig:822: file 'drivers/crypto/Kconfig' is already sourced from 'drivers/Kconfig'
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
作者: yjh777    时间: 2011-07-22 09:38
本帖最后由 yjh777 于 2011-07-22 16:20 编辑
crypto/kconfig最后已经有加上
source "drivers/crypto/Kconfig"
所以在drivers/Kconfig里加就重复了,
...
fei1700 发表于 2011-07-21 21:35



确实是这样的,非常感谢!




mark 一下:
====> drivers/crypto/Kconfig
config CRYPTO_DEV_EXTENS_T23X
  tristate "Extensible Driver (t23x) for Talitos 2.x/3.x (EXPERIMENTAL)"
# dependency selection here is subjective, CRYPTO not yet
# valid unless API interface exists. Subsystem is dependent on
# PQ 2/3 "E" series processors with the crypto core, thus this
# dependency list is the best selector we have.
        depends on PPC_83xx || PPC_85xx || PPC_86xx
        default m
        help
          Extensible Crypto Driver for PowerQUICC devices containing the
          SEC 2.x/3.x accelerator core.

          Builds the Resource Manager component (t23xrm), which manages
          the hardware and enables sharing between APIs

config CRYPTO_DEV_EXTENS_T23X_RMTEST
        tristate "t23x Resource Manager testing module (EXPERIMENTAL)"
        depends on CRYPTO_DEV_EXTENS_T23X
        help
          Test module (t23xtest) to verify installation of t23x Resource
          Manager and accelerator hardware under it's control

config CRYPTO_DEV_EXTENS_T23X_SEC2
        tristate "t23x SEC2 Legacy Device Interface (EXPERIMENTAL)"
        depends on CRYPTO_DEV_EXTENS_T23X
        help
          SEC2 Legacy Driver Interface (t23xsec2) component intended to
          allow migration of applications dependent on the legacy driver

====>drivers/crypto/Makefile
obj-$(CONFIG_CRYPTO_DEV_EXTENS_T23X) += t23x/t23xrm/
obj-$(CONFIG_CRYPTO_DEV_EXTENS_T23X_RMTEST) += t23x/t23xtest/
obj-$(CONFIG_CRYPTO_DEV_EXTENS_T23X_SEC2) += t23x/t23xsec2/

cp -r t23x  ./drivers/crypto/.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2