aboutsummaryrefslogtreecommitdiff
path: root/projects/cros-ec
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cros-ec')
-rwxr-xr-xprojects/cros-ec/cros-ec6
-rwxr-xr-xprojects/cros-ec/cros-ec-helper2
2 files changed, 3 insertions, 5 deletions
diff --git a/projects/cros-ec/cros-ec b/projects/cros-ec/cros-ec
index 1e90c28e..8fb75003 100755
--- a/projects/cros-ec/cros-ec
+++ b/projects/cros-ec/cros-ec
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
#
@@ -81,9 +81,7 @@ build() {
local config=$( cros_ec_config "$@" )
- local crossgcc_bin_prefix=$( project_action "prefix" "crossgcc" "$arch" )
-
- project_action "build" "crossgcc" "$arch"
+ local crossgcc_bin_prefix=$( project_action_arguments "prefix" "crossgcc" "$arch" )
make -C "$sources_path" out="$build_path" CROSS_COMPILE="$crossgcc_bin_prefix" HOST_CROSS_COMPILE= BOARD="$config" -j$TASKS
fi
diff --git a/projects/cros-ec/cros-ec-helper b/projects/cros-ec/cros-ec-helper
index abbc869c..a2ec762c 100755
--- a/projects/cros-ec/cros-ec-helper
+++ b/projects/cros-ec/cros-ec-helper
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr>
#