Skip to content

Commit

Permalink
distro: recipes-dts: dts-scripts: do_install via Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Daniil Klimuk <[email protected]>
  • Loading branch information
DaniilKl committed Apr 9, 2024
1 parent 16fb9a8 commit d10b32b
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions meta-dts-distro/recipes-dts/dts-scripts/dts-scripts_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ HOMEPAGE = "https://github.com/Dasharo/dts-v2"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=575ab8837c52eafc7b9eb8b244072bc7"

SRCREV = "13dad8ea6901cf921de0dd45d464bea3535892e0"
SRCREV = "f8afaca3873821d13a9db79c944302d7ff9df259"
SRC_URI = "git://github.com/Dasharo/dts-v2;protocol=https;branch=main"

PV = "0.1+git${SRCPV}"
Expand All @@ -25,20 +25,11 @@ RDEPENDS:${PN} = " \
iotools \
"

do_install () {
install -d ${D}/${sbindir}
install -m 0755 ${S}/scripts/dts ${D}/${sbindir}
install -m 0755 ${S}/scripts/dts-boot ${D}/${sbindir}
install -m 0755 ${S}/scripts/ec_transition ${D}/${sbindir}
install -m 0755 ${S}/scripts/cloud_list ${D}/${sbindir}
install -m 0755 ${S}/scripts/dasharo-deploy ${D}/${sbindir}
install -m 0755 ${S}/reports/dasharo-hcl-report ${D}/${sbindir}
install -m 0755 ${S}/reports/touchpad-info ${D}/${sbindir}
install -m 0664 ${S}/include/dts-environment.sh ${D}/${sbindir}
install -m 0664 ${S}/include/dts-functions.sh ${D}/${sbindir}
do_configure[noexec] = "1"
do_compile[noexec] = "1"

# install profile dropin so the DTS_ENV and DTS_FUNCS variables are set when
# loged via SSH
install -d ${D}${sysconfdir}/profile.d/
install -m 0755 ${S}/scripts/dts-profile.sh ${D}${sysconfdir}/profile.d/
do_install () {
install -d ${D}${sbindir}
install -d ${D}${sysconfdir}/profile.d
oe_runmake install DESTDIR="${D}${sbindir}" SYSCONFDIR="${D}${sysconfdir}/profile.d"
}

0 comments on commit d10b32b

Please sign in to comment.