-
Notifications
You must be signed in to change notification settings - Fork 9
/
updatehub-device-attributes_git.bb
33 lines (25 loc) · 1.19 KB
/
updatehub-device-attributes_git.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUMMARY = "updatehub's device attributes scripts"
DEPENDS = "bind jq"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/updatehub/device-attributes;protocol=https;branch=master"
SRCREV = "c7ee915b0d304cec33a08cea7d3f184150c88dd1"
S = "${WORKDIR}/git"
inherit allarch
do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install() {
install -Dm 0755 cpu_model ${D}/${datadir}/updatehub/device-attributes.d/cpu_model
install -Dm 0755 kernel ${D}/${datadir}/updatehub/device-attributes.d/kernel
install -Dm 0755 mem_total ${D}/${datadir}/updatehub/device-attributes.d/mem_total
install -Dm 0755 ipinfo-io ${D}/${datadir}/updatehub/device-attributes.d/ipinfo-io
}
python split_plugins_packages () {
device_attribute_dir = d.expand('${datadir}/updatehub/device-attributes.d/')
do_split_packages(d, device_attribute_dir, '^(.*)', 'updatehub-device-attribute-%s',
'updatehub %s device attribute script', extra_depends='')
}
ALLOW_EMPTY:${PN} = "1"
PACKAGES_DYNAMIC = "updatehub-device-attribute-*"
PACKAGESPLITFUNCS:prepend = " split_plugins_packages "
RDEPENDS:updatehub-device-attribute-ipinfo-io += "jq"