Compare commits

...

2 Commits

Author SHA1 Message Date
fcf71c9d49 Make 'make' more resilient 2024-04-24 11:20:46 -04:00
7657759299 Update profiles 2024-04-24 11:20:10 -04:00
2 changed files with 8 additions and 3 deletions

View File

@@ -674,12 +674,16 @@ fromSource() {
# Make image # Make image
(( DEBUG )) && make_opts+=("V=s") (( DEBUG )) && make_opts+=("V=s")
execute make "${make_opts[@]}" defconfig download clean execute make "${make_opts[@]}" "-j1" defconfig download clean
make_opts+=("-j$(($(nproc) - 2))") make_opts+=("-j$(($(nproc) - 2))")
#make_opts+=("-j1") # for debugging purposes #make_opts+=("-j1") # for debugging purposes
execute make "${make_opts[@]}" world if ! execute make "${make_opts[@]}" world; then
echo "Error: make failed, retrying using slow mode"
execute make V=s -j1 dirclean
execute make V=s -j1 world
fi
popd || return 1 popd || return 1

View File

@@ -54,7 +54,8 @@ r4s['kopts']="\
CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \ CONFIG_KERNEL_BTRFS_FS_POSIX_ACL=y \
CONFIG_BTRFS_PROGS_ZSTD=y \ CONFIG_BTRFS_PROGS_ZSTD=y \
CONFIG_TARGET_ROOTFS_PARTSIZE=512 \ CONFIG_TARGET_ROOTFS_PARTSIZE=512 \
CONFIG_TARGET_KERNEL_PARTSIZE=32" CONFIG_TARGET_KERNEL_PARTSIZE=32 \
CONFIG_TESTING_KERNEL=y"
r4s['files']="\ r4s['files']="\
/mnt/backup" /mnt/backup"