configure: slightly extended compile_module config helper
Allow to pass many includes along with creating function. Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
parent
a3c44d4645
commit
18b879884e
@ -23,7 +23,11 @@ add_function() {
|
|||||||
compile_module(){
|
compile_module(){
|
||||||
if [ $# -gt 2 ]
|
if [ $# -gt 2 ]
|
||||||
then
|
then
|
||||||
INCLUDE="#include <$3>"
|
i=3
|
||||||
|
while [ "$i" -le "$#" ]; do
|
||||||
|
INCLUDE+=$(echo -e "\n#include <${!i}>\\n")
|
||||||
|
i=$((i + 1))
|
||||||
|
done
|
||||||
else
|
else
|
||||||
INCLUDE=""
|
INCLUDE=""
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user