Skip to content

Commit

Permalink
linux: improved fail logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmartins committed Apr 6, 2016
1 parent 323bbf7 commit 8626adb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rules/linux/default.bash
Original file line number Diff line number Diff line change
Expand Up @@ -116,33 +116,34 @@ build()
{
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux &&
ARCH=$cfg_target_linux || return 1

$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
modules &&
modules || return 1

if [ "$(basename $cfg_target_linux_kernel)" = 'uImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
uImage
uImage || return 1
fi

# Compressed image.
if [ "$(basename $cfg_target_linux_kernel)" = 'zImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
zImage
zImage || return 1
fi

# Device tree blob.
if [ -n "$cfg_target_linux_dtb" ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
dtbs
dtbs || return 1
fi

if [ -n "${cfg_target_linux_size}" ]; then
Expand Down

0 comments on commit 8626adb

Please sign in to comment.