Skip to content

Commit 318f657

Browse files
GUIDINGLIxiaoxiang781216
authored andcommitted
cibuild.sh: add objcopy support to MacOS
Signed-off-by: ligd <[email protected]>
1 parent 4388b3e commit 318f657

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cibuild.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ EXTRA_PATH=
3737

3838
case $os in
3939
Darwin)
40-
install="python-tools u-boot-tools discoteq-flock elf-toolchain gen-romfs kconfig-frontends arm-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain avr-gcc-toolchain c-cache"
40+
install="python-tools u-boot-tools discoteq-flock elf-toolchain gen-romfs kconfig-frontends arm-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain avr-gcc-toolchain c-cache binutils"
4141
mkdir -p ${prebuilt}/homebrew
4242
export HOMEBREW_CACHE=${prebuilt}/homebrew
4343
;;
@@ -325,6 +325,18 @@ function c-cache {
325325
ln -sf `which ccache` $prebuilt/ccache/bin/avr-g++
326326
}
327327

328+
function binutils {
329+
add_path /usr/local/binutils/bin/
330+
331+
if ! type objcopy > /dev/null; then
332+
case $os in
333+
Darwin)
334+
brew install binutils
335+
;;
336+
esac
337+
fi
338+
}
339+
328340
function usage {
329341
echo ""
330342
echo "USAGE: $0 [-i] [-s] [-c] [-*] <testlist>"

0 commit comments

Comments
 (0)