Files
orangepi-build/external/config/sources/families/rockchip64.conf
2021-02-05 14:55:31 +08:00

45 lines
978 B
Plaintext

source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
BOOTPATCHDIR="u-boot-rockchip64-mainline"
family_tweaks_bsp()
{
if [[ $BOARD == orangepir1plus ]]; then
install -m 755 $EXTER/packages/blobs/rockchip/set_r1plus_lan_mac.sh $destination/usr/bin/
fi
}
family_tweaks_s()
{
if [[ $BOARD == orangepir1plus ]]; then
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
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
fi
}
prepare_boot_configuration