make menucofnig 时drivers/bluetooth/bluetooth_sysfs.c:30:27: 错误: plat/map-base.h:没有那个文件或目录...

1,新的BSP 在编译过程中提示如下错误:如附一所示
2,错误原因,编译环境没有配置好:

错误1, 是因为你们的环境变量没有设好.

bashrc 修改参考:
export ARCH=arm
export JAVA_HOME=/home/zhanghuifang/bin/jdk1.6.0_11
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export PATH=$PATH:/usr/local/arm/arm-2009q3/usr/bin
export CROSS_COMPILE=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-

注意设好.bashrc后, 需要运行source ~/.bashrc一下, 否则不会生效.

3,修改Makefile也可以:

export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=arm
CROSS_COMPILE ?=/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-
附一:
drivers/bluetooth/bluetooth_sysfs.c:30:27: 错误: plat/map-base.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:31:27: 错误: plat/gpio-cfg.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:33:28: 错误: mach/regs-gpio.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:36:27: 错误: mach/regs-irq.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:40:27: 错误: plat/regs-rtc.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:43:28: 错误: mach/gpio-bank.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:45:23: 错误: mach/gpio.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c:48:26: 错误: plat/s5pv210.h:没有那个文件或目录
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘bt_wake_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:59: 错误: ‘S5PV210_GPH2_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:59: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
drivers/bluetooth/bluetooth_sysfs.c:59: 错误: 所在的函数内也只报告一次。)
drivers/bluetooth/bluetooth_sysfs.c:64: 错误: 隐式声明函数‘S5PV210_GPH2’
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘bt_wake_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:82: 错误: 隐式声明函数‘s3c_gpio_cfgpin’
drivers/bluetooth/bluetooth_sysfs.c:82: 错误: ‘S3C_GPIO_OUTPUT’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘sdio_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:102: 错误: ‘S5PV210_GPG3_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘sdio_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:126: 错误: 隐式声明函数‘S5PV210_GPG3’
drivers/bluetooth/bluetooth_sysfs.c:129: 错误: 隐式声明函数‘S3C_GPIO_SFN’
drivers/bluetooth/bluetooth_sysfs.c:130: 错误: 隐式声明函数‘s3c_gpio_setpull’
drivers/bluetooth/bluetooth_sysfs.c:130: 错误: ‘S3C_GPIO_PULL_UP’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:132: 错误: ‘S5PV210_GPG3DRV’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘uart_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:157: 错误: ‘S5PV210_GPA0_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘uart_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:181: 错误: 隐式声明函数‘S5PV210_GPA0’
drivers/bluetooth/bluetooth_sysfs.c:181: 错误: ‘S3C_GPIO_PULL_NONE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘clock_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:216: 错误: ‘S3C_VA_RTC’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:216: 错误: ‘S3C2410_RTCCON’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:216: 错误: ‘S3C2410_RTCCON_CLKEN’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘clock_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:235: 错误: ‘S3C_VA_RTC’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:235: 错误: ‘S3C2410_RTCCON’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:235: 错误: ‘S3C2410_RTCCON_CLKEN’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘btreset_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:259: 错误: ‘S5PV210_GPG1_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:263: 错误: 隐式声明函数‘S5PV210_GPG1’
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘btreset_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:281: 错误: ‘S3C_GPIO_PULL_NONE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:282: 错误: ‘S3C_GPIO_OUTPUT’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘shutdown_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:305: 错误: ‘S5PV210_GPG1_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘shutdown_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:327: 错误: ‘S3C_GPIO_PULL_NONE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:328: 错误: ‘S3C_GPIO_OUTPUT’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘pwren_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:350: 错误: ‘S5PV210_GPH2_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘pwren_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:373: 错误: ‘S3C_GPIO_PULL_NONE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:374: 错误: ‘S3C_GPIO_OUTPUT’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘wifireset_status_show’中:
drivers/bluetooth/bluetooth_sysfs.c:396: 错误: ‘S5PV210_GPH3_BASE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:401: 错误: 隐式声明函数‘S5PV210_GPH3’
drivers/bluetooth/bluetooth_sysfs.c: 在函数‘wifireset_status_store’中:
drivers/bluetooth/bluetooth_sysfs.c:419: 错误: ‘S3C_GPIO_PULL_NONE’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c:420: 错误: ‘S3C_GPIO_OUTPUT’未声明(在此函数内第一次使用)
drivers/bluetooth/bluetooth_sysfs.c: 在文件层:
drivers/bluetooth/bluetooth_sysfs.c:438: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:438: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:439: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:439: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:440: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:440: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:441: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:441: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:442: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:442: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:443: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:443: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:444: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:444: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:445: 警告: 从不兼容的指针类型初始化
drivers/bluetooth/bluetooth_sysfs.c:445: 警告: 从不兼容的指针类型初始化
make[2]: *** [drivers/bluetooth/bluetooth_sysfs.o] 错误 1
make[1]: *** [drivers/bluetooth] 错误 2
make: *** [drivers] 错误 2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值