]> code.ossystems Code Review - openembedded-core.git/commit
kmod: set ac_cv_path_DOLT_BASH to /usr/bin/env bash
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 6 Apr 2017 10:05:56 +0000 (03:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:05 +0000 (22:48 +0100)
commitfd2758ed26e8ed6d76c66af0275c4aafbec758ac
treeae38cff1a0e13a73dcb892ca730c2f61385fd82e
parent055838283349530e6f60f4169d9190aa5b59b190
kmod: set ac_cv_path_DOLT_BASH to /usr/bin/env bash

The shebang's length is usually 128 as defined in /usr/include/linux/binfmts.h:
  #define BINPRM_BUF_SIZE 128

So there would be errors when /path/to/hosttools/bash is longer than 128:

/bin/sh: ./doltcompile: [snip]: bad interpreter: No such file or directory

Set ac_cv_path_DOLT_BASH to "/usr/bin/env bash" to fix the problem.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/kmod/kmod.inc