Browse Source
Merge pull request #30 from apodogrocki/build_log_fix
Fix build issues related to missing build.log file
1.0.x
Adam Podogrocki
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
13 additions and
4 deletions
-
bbb-convert-stage-5.sh
-
convert-stage-4.sh
-
mender-convert
-
mender-convert-functions.sh
-
rpi3-convert-stage-5.sh
|
|
@ -245,7 +245,8 @@ do_install_bootloader() { |
|
|
|
# Map & mount Mender compliant image. |
|
|
|
create_device_maps $mender_disk_image mender_disk_mappings |
|
|
|
|
|
|
|
mkdir -p $output_dir && cd $output_dir |
|
|
|
# Change current directory to 'output' directory. |
|
|
|
cd $output_dir |
|
|
|
|
|
|
|
boot=${mender_disk_mappings[0]} |
|
|
|
primary=${mender_disk_mappings[1]} |
|
|
|
|
|
@ -267,7 +267,8 @@ do_install_mender() { |
|
|
|
# Mount rootfs partition A. |
|
|
|
create_device_maps $mender_disk_image mender_disk_mappings |
|
|
|
|
|
|
|
mkdir -p $output_dir && cd $output_dir |
|
|
|
# Change current directory to 'output' directory. |
|
|
|
cd $output_dir |
|
|
|
|
|
|
|
primary=${mender_disk_mappings[1]} |
|
|
|
data=${mender_disk_mappings[3]} |
|
|
|
|
|
@ -269,7 +269,8 @@ do_raw_disk_image_create_partitions() { |
|
|
|
[[ $supported -eq 0 ]] && \ |
|
|
|
{ log "Error: incorrect device type. Aborting."; return 1; } |
|
|
|
|
|
|
|
mkdir -p $output_dir && cd $output_dir |
|
|
|
# Change current directory to 'output' directory. |
|
|
|
cd $output_dir |
|
|
|
|
|
|
|
# Make sure the user's given Mender image name has a correct extension. |
|
|
|
# If Mender image name is not provided, then use following syntax: |
|
|
@ -683,6 +684,9 @@ export -f mount_mender_disk |
|
|
|
export -f log |
|
|
|
export -f logsetup |
|
|
|
|
|
|
|
# Before running any command first create output directory |
|
|
|
# and configure where logs should be redirected. |
|
|
|
mkdir -p $output_dir |
|
|
|
logsetup |
|
|
|
|
|
|
|
while (( "$#" )); do |
|
|
|
|
|
@ -28,6 +28,7 @@ sdimg_secondary_dir=$sdimg_base_dir/secondary |
|
|
|
sdimg_data_dir=$sdimg_base_dir/data |
|
|
|
|
|
|
|
logsetup() { |
|
|
|
[ ! -f $build_log ] && { touch $build_log; } |
|
|
|
echo -n "" > $build_log |
|
|
|
exec > >(tee -a $build_log) |
|
|
|
exec 2>&1 |
|
|
|
|
|
@ -22,6 +22,7 @@ bin_base_dir=${output_dir}/bin |
|
|
|
bin_dir_pi=${bin_base_dir}/raspberrypi |
|
|
|
sdimg_base_dir=$output_dir/sdimg |
|
|
|
GCC_VERSION="6.3.1" |
|
|
|
build_log=${output_dir}/build.log |
|
|
|
|
|
|
|
declare -a mender_disk_mappings |
|
|
|
declare -a mender_disk_partitions=("boot" "primary" "secondary" "data") |
|
|
@ -176,7 +177,8 @@ do_install_bootloader() { |
|
|
|
# Map & mount Mender compliant image. |
|
|
|
create_device_maps $mender_disk_image mender_disk_mappings |
|
|
|
|
|
|
|
mkdir -p $output_dir && cd $output_dir |
|
|
|
# Change current directory to 'output' directory. |
|
|
|
cd $output_dir |
|
|
|
|
|
|
|
# Build patched U-Boot files. |
|
|
|
build_uboot_files $bootloader_toolchain |
|
|
|