首页 > 解决方案 > 非法选项 -p /bin/sh: 1: Usage:: not found

问题描述

我正在使用 Linux,我从 git 存储库获取 AT91BootStrap 的源代码

git clone git://github.com/linux4sam/at91bootstrap.git

克隆存储库后,在 AT91Bootstrap 根目录下,我找到一个 board/sama5d27_som1_ek 文件夹,其中包含几个默认配置文件。

我可以通过执行以下操作将 AT91Bootstrap 配置为从 SD 卡加载:

$ make mrproper
$ make sama5d27_som1_eksd_uboot_defconfig

但是当我make sama5d27_som1_eksd_uboot_defconfig 在 Linux 终端中输入命令时,它会显示一条错误消息:

非法选项 -p /bin/sh: 1: Usage:: not found

我该如何解决这个问题?

这是我正在关注的教程: https ://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d27Som1EKMainPage#Get_AT91Bootstrap_Source_Code

这是的输出mkdir --help

Usage: mkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.
  -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask
  -p, --parents     no error if existing, make parent directories as needed
  -v, --verbose     print a message for each created directory
  -Z                   set SELinux security context of each created directory
                         to the default type
      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux
                         or SMACK security context to CTX
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/mkdir>
or available locally via: info '(coreutils) mkdir invocation'

这是为了sh --version

sh: 0: Illegal option --

标签: linuxembedded-linux

解决方案


推荐阅读