hostname = "diya"

do_install:append:pinephone () {
    install -d ${DEPLOY_DIR_IMAGE}
    cat << EOF > ${DEPLOY_DIR_IMAGE}/diya-config.txt
recovery_image=recovery-${MACHINE}.cpio.lz4.u-boot
kernel=Image.gz
console=both
bootlogo=false
EOF
    cat << 'EOF' >> "${D}${sysconfdir}/profile"
export DISK="mmcblk0"
EOF
    install -d ${D}${sysconfdir}/modules-load.d
    cat << EOF >> "${D}${sysconfdir}/modules-load.d/diya.conf"
# option
# cfg80211
# bluetooth
# hci_uart
# rfcomm
# qmi_wwan
# usbnet
# usb_wwan
# usbserial
# mii
# snd_seq_dummy
# snd_hrtimer
# 842_decompress
# 842_compress
# zram
# crct10dif_ce
# polyval_ce
# 8723cs
# btbcm
# sm4
# gpio_vibra
# st_magn_spi
# st_sensors_spi
# sunxi_wdt
# snd_soc_ec25
# led_class_flash
# i2c_gpio
# ledtrig_pattern
# i2c_algo_bit
# ppkb_manager
# joydev
# sch_fq_codel
# crypto_user
# loop
# fuse
# nfnetlink
# ip_tables
# ipv6
# sun4i_lradc_keys
EOF
}
