OrangePi_CM5/external/config/sources/families/rockchip64.conf

43 lines
895 B
Plaintext
Raw Normal View History

2020-10-30 09:50:39 +08:00
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
BOOTPATCHDIR="u-boot-rockchip64-mainline"
2020-12-15 10:08:21 +08:00
family_tweaks_bsp()
{
2021-11-23 19:33:55 +08:00
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
2020-12-15 10:08:21 +08:00
install -m 755 $EXTER/packages/blobs/rockchip/set_r1plus_lan_mac.sh $destination/usr/bin/
fi
}
family_tweaks_s()
{
2021-11-23 19:33:55 +08:00
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
cat <<-EOF > "${SDCARD}"/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/bin/set_r1plus_lan_mac.sh
exit 0
EOF
chmod +x "${SDCARD}"/etc/rc.local
2020-12-15 10:08:21 +08:00
fi
}
2020-10-30 09:50:39 +08:00
prepare_boot_configuration