blob: 4ad477ae4a837576c9ffad7b848cb0eec37249ef [file] [log] [blame]
Jayanth Othayoth942f57f2021-06-21 07:23:09 -05001SUMMARY = "Tools and libraries to manage the phal devicetree"
2DESCRIPTION = "phal(power hardware abstraction layer) devicetree data \
3modelling mainly includes the host hardware topology and attributes, \
4which includes the configuration data"
5
6PR = "r1"
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
9
10PDATA_DTB_PATH="${datadir}/pdata"
11FILES_${PN} += "${PDATA_DTB_PATH}"
12
13do_install() {
14
15 DTB_FILE_ENV=power-target.sh
16 DTB_FILE_CONF_PATH=${D}${PDATA_DTB_PATH}
17
18 install -d ${DTB_FILE_CONF_PATH}
19 install -m 744 ${THISDIR}/files/${DTB_FILE_ENV} ${DTB_FILE_CONF_PATH}/${DTB_FILE_ENV}
20 install -d ${D}${sysconfdir}/profile.d
21 ln -s ${PDATA_DTB_PATH}/${DTB_FILE_ENV} ${D}${sysconfdir}/profile.d/${DTB_FILE_ENV}
22}