Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Device formfactor information" |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 2 | DESCRIPTION = "A formfactor configuration file provides information about the \ |
| 3 | target hardware for which the image is being built and information that the \ |
| 4 | build system cannot obtain from other sources such as the kernel." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | SECTION = "base" |
| 6 | LICENSE = "MIT" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | PR = "r45" |
| 9 | |
| 10 | SRC_URI = "file://config file://machconfig" |
| 11 | S = "${WORKDIR}" |
| 12 | |
| 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 14 | INHIBIT_DEFAULT_DEPS = "1" |
| 15 | |
| 16 | do_install() { |
| 17 | # Install file only if it has contents |
| 18 | install -d ${D}${sysconfdir}/formfactor/ |
| 19 | install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ |
| 20 | if [ -s "${S}/machconfig" ]; then |
| 21 | install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ |
| 22 | fi |
| 23 | } |