Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Device formfactor information" |
| 2 | SECTION = "base" |
| 3 | LICENSE = "MIT" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | PR = "r45" |
| 6 | |
| 7 | SRC_URI = "file://config file://machconfig" |
| 8 | S = "${WORKDIR}" |
| 9 | |
| 10 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 11 | INHIBIT_DEFAULT_DEPS = "1" |
| 12 | |
| 13 | do_install() { |
| 14 | # Install file only if it has contents |
| 15 | install -d ${D}${sysconfdir}/formfactor/ |
| 16 | install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ |
| 17 | if [ -s "${S}/machconfig" ]; then |
| 18 | install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ |
| 19 | fi |
| 20 | } |