Skip to content

Commit 8f0af6f

Browse files
committed
orangepi5: also copy the sata bootconfig to compiled package
1 parent ee9e512 commit 8f0af6f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

config/boards/orangepi5.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,28 @@ function pre_config_uboot_target__orangepi5_patch_uboot_bootconfig_hack_for_sata
101101
fi
102102
}
103103

104+
105+
function post_config_uboot_target__orangepi5_keep_sata_bootconfig() {
106+
if [[ $BRANCH == "vendor" ]]; then
107+
return
108+
fi
109+
110+
display_alert "u-boot for ${BOARD}" "u-boot: hack bootconfig for sata spi image" "info"
111+
112+
if [[ $BOOTCONFIG == "orangepi-5-sata-rk3588s_defconfig" ]]; then
113+
cp .config ${uboottempdir}/.config.sata
114+
fi
115+
}
116+
117+
function pre_package_uboot_image__orangepi5_copy_sataconfig_to_pacage() {
118+
if [[ $BRANCH == "vendor" ]]; then
119+
return
120+
fi
121+
122+
run_host_command_logged cp ${uboottempdir}/.config.sata "$uboottempdir/usr/lib/u-boot/orangepi-5-sata-rk3588s_defconfig"
123+
run_host_command_logged rm ${uboottempdir}/.config.sata
124+
}
125+
104126
function post_family_tweaks_bsp__orangepi5_copy_usb2_service() {
105127
if [[ $BRANCH == "edge" || $BRANCH == "current" ]]; then
106128
return

0 commit comments

Comments
 (0)