File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
define (){ IFS=' \n' read -r -d ' ' ${1} || true ; }
10
10
11
+ # Source in dist config to seed generate_board_config.py
12
+ # but will then be overwritten ${CUSTOM_PI_OS_PATH}/config for
13
+ # 'final' configuration
14
+ source ${DIST_PATH} /config
15
+
11
16
define SCRIPT << 'EOF '
12
17
BUILD_SCRIPT_PATH=$(dirname $(realpath -s $BASH_SOURCE))
13
18
export EXTRA_BOARD_CONFIG=$(mktemp)
Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ function chroot_correct_qemu() {
616
616
chmod 755 common.sh
617
617
618
618
# Set up QEMU if needed
619
- if [[ " $host_arch " != " armv7l" ]] || [[ " $host_arch " != " aarch64" ]]; then
619
+ if [[ " $host_arch " != " armv7l" ]] && [[ " $host_arch " != " aarch64" ]]; then
620
620
if [[ " $target_arch " == " armv7l" ]] || [[ " $target_arch " == " armhf" ]]; then
621
621
if grep -q gentoo /etc/os-release; then
622
622
ROOT=" $( realpath .) " emerge --usepkgonly --oneshot --nodeps qemu
@@ -630,6 +630,8 @@ function chroot_correct_qemu() {
630
630
cp " $( which qemu-aarch64-static) " usr/bin/qemu-aarch64-static
631
631
fi
632
632
fi
633
+ elif [[ ( " $target_arch " == " armv7l" || " $target_arch " == " armhf" ) && " $host_arch " != " armv7l" ]]; then
634
+ cp " $( which qemu-aarch64-static) " usr/bin/qemu-aarch64-static
633
635
fi
634
636
635
637
# Execute chroot with appropriate QEMU setup
@@ -655,7 +657,7 @@ function chroot_correct_qemu() {
655
657
echo " Unknown arch, building on: $host_arch image: $target_arch "
656
658
return 1
657
659
fi
658
- elif { [[ " $target_arch " == " armv7l" ]] || [[ " $target_arch " == " armhf" ]] ; } && [[ " $host_arch " != " armv7l" ]]; then
660
+ elif [[ ( " $target_arch " == " armv7l" || " $target_arch " == " armhf" ) && " $host_arch " != " armv7l" ]]; then
659
661
echo " Building on aarch64/arm64 device a armv7l system, using qemu-arm-static"
660
662
chroot . usr/bin/qemu-arm-static /bin/bash /chroot_script
661
663
else
You can’t perform that action at this time.
0 commit comments