【问题标题】:Makefile 'ifneq' syntax error, Broadcom BCM43142Makefile 'ifneq' 语法错误,Broadcom BCM43142
【发布时间】:2014-07-24 22:06:44
【问题描述】:

我正在尝试在 Tails 1.1 上安装 Broadcom BCM43142 的驱动程序。我正在尝试遵循Linux World 的指南。我的笔记本电脑(Sony Vaio Flip SVF14N13CXB)有一个 Intel i5、64 位处理器,所以我从 Broadcom 网站下载了适用于 linux 的文件。我gunzip'd 和 untar'd 文件。我有一个 Makefile 以及 libsrc 文件夹。我跑了chmod +x ./Makefile 然后./Makefile。这是我回来的。

./Makefile: line 21: syntax error near unexpected token `$()KERNELRELEASE'
./Makefile: line 21: `ifneq ($()KERNELRELEASE)'  

这是来自 Makefile 的一些内容。

ifneq ($(KERNELRELEASE),)

  LINUXVER_GOODFOR_CFG80211:=$(strip $(shell \
    if [ "$(VERSION)" -ge "2" -a "$(PATCHLEVEL)" -ge "6" -a "$(SUBLEVEL)" -ge "32" -o     "$(VERSION)" -ge "3" ]; then \
      echo TRUE; \
    else \
      echo FALSE; \
    fi \
  ))

有什么想法吗?谢谢。

【问题讨论】:

    标签: linux bash makefile driver broadcom


    【解决方案1】:

    奥奇!

    Makefile 是为名为@9​​87654323@ 的程序提供规则以构建软件的描述文件。通常,Makefilenot 可执行的——即使可以通过在第一行提供适当的 chebang 来实现。

    Makefile 的正确用法是从包含该 makefile 的文件夹内部调用程序 make

    cd /path/to/my/driver/sources
    make         # build the software
    make install # install the newly build software on your system
    

    想了几件事:

    • 你可能有一个 README 或 INSTALL 文件来解释你 已经在同一个文件夹中。
    • man make了解更多关于 制作本身。
    • 您可能应该在http://superuser.com 上问过这个问题

    【讨论】:

    • 好的,谢谢。我什至没有思考。我在 Tails 上没有 make。需要得到它。 >_
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-07
    • 1970-01-01
    • 2014-08-26
    相关资源
    最近更新 更多