Skip to content
Snippets Groups Projects
Commit 7f4951b8 authored by Mick Michalski's avatar Mick Michalski Committed by David Mondou
Browse files

Added rigtool recipe

parent d46a4418
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ PROVIDES += "u-boot"
SRCBRANCH = "master"
#Always update SRCREV based on your last commit
SRCREV = "44449ff672ae67f5719c3a7d1ce2ea7e7dbf0205"
SRCREV = "9938a88c72a4b5a8e013a41e0ca37a5629db18de"
SRC_URI = "git://git.rigado.com/vesta/u-boot-2015.04.git;protocol=https;branch=${SRCBRANCH}"
......
# Copyright (C) 2016 Rigado
SUMMARY = "Rigado's general purpose tool"
DESCRIPTION = "A tool for the gateway which changes functionality based on how it is linked"
# The latest commit
SRCREV = "1cef52130f712c9b5bfb62210945a5407b638a99"
SRCBRANCH ?= "master"
require recipes-core/rigtool/rigtool.inc
SECTION = "base"
LICENSE = "CLOSED"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(imx6ul-vesta-v1|imx6ul-vesta-v2)"
PROVIDES += "rigtool"
RDEPENDS_${PN} = "libarchive libcurl"
INSANE_SKIP_scripts-vesta_append = "already-stripped"
SRC_URI = "git://git@git.rigado.com/michalskim/rigtool.git;protocol=ssh;branch=${SRCBRANCH}"
do_compile() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
cd ../git/build
oe_runmake
}
do_install() {
# install -d ${D}/etc/init.d
# install -m 755 git/swupdate/etc/init.d/swupdate ${D}/etc/init.d/swupdate
# ln -sf /etc/init.d/swupdate ${D}/etc/rc5.d/S70swupdate
install -d ${D}/usr/bin
install -m 755 ${WORKDIR}/git/rigtool ${D}/usr/bin/rigtool
ln -sf /usr/bin/rigtool ${D}/usr/bin/boot_counter
ln -sf /usr/bin/rigtool ${D}/usr/bin/boot_toggle
ln -sf /usr/bin/rigtool ${D}/usr/bin/dgua
}
FILES_${PN} += " \
/usr/bin/rigtool \
/usr/bin/boot_counter \
/usr/bin/boot_toggle \
/usr/bin/dgua \
"
......@@ -53,11 +53,6 @@ do_install() {
install -m 755 git/swupdate/etc/init.d/hostname.sh ${D}/etc/init.d/hostname.sh
install -m 755 git/swupdate/etc/gateway.conf ${D}/etc/gateway.conf
ln -sf /etc/init.d/swupdate ${D}/etc/rc5.d/S70swupdate
install -d ${D}/usr/bin
install -m 755 git/swupdate/usr/bin/rigtool ${D}/usr/bin/rigtool
ln -sf /usr/bin/rigtool ${D}/usr/bin/boot_toggle
ln -sf /usr/bin/rigtool ${D}/usr/bin/boot_counter
}
FILES_${PN} += " \
......@@ -88,5 +83,4 @@ FILES_${PN} += " \
/etc/init.d/swupdate \
/etc/profile.d/gateway.sh \
/etc/gateway.conf \
/usr/bin/rigtool \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment