Skip to content

Commit a96702d

Browse files
committed
orangepi5: hardening and typo
1 parent ab74439 commit a96702d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

config/boards/orangepi5.conf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ function post_config_uboot_target__orangepi5_keep_sata_bootconfig() {
6767
fi
6868
}
6969

70-
function pre_package_uboot_image__orangepi5_copy_sataconfig_to_pacage() {
70+
function pre_package_uboot_image__orangepi5_copy_sataconfig_to_package() {
7171
if [[ $BRANCH == "vendor" ]]; then
7272
return
7373
fi
7474

75-
run_host_command_logged cp ${uboottempdir}/.config.sata "$uboottempdir/usr/lib/u-boot/orangepi-5-sata-rk3588s_defconfig"
76-
run_host_command_logged rm ${uboottempdir}/.config.sata
75+
if [[ -f "${uboottempdir}/.config.sata" ]]; then
76+
run_host_command_logged cp ${uboottempdir}/.config.sata "$uboottempdir/usr/lib/u-boot/orangepi-5-sata-rk3588s_defconfig"
77+
run_host_command_logged rm ${uboottempdir}/.config.sata
78+
fi
7779
}
7880

7981
function post_family_tweaks_bsp__orangepi5_copy_usb2_service() {

0 commit comments

Comments
 (0)