1SUMMARY = "Device formfactor information" 2DESCRIPTION = "A formfactor configuration file provides information about the \ 3target hardware for which the image is being built and information that the \ 4build system cannot obtain from other sources such as the kernel." 5SECTION = "base" 6LICENSE = "MIT" 7LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 8 9SRC_URI = "file://config file://machconfig" 10 11S = "${WORKDIR}/sources" 12UNPACKDIR = "${S}" 13 14PACKAGE_ARCH = "${MACHINE_ARCH}" 15INHIBIT_DEFAULT_DEPS = "1" 16 17do_install() { 18 # Install file only if it has contents 19 install -d ${D}${sysconfdir}/formfactor/ 20 install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ 21 if [ -s "${S}/machconfig" ]; then 22 install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ 23 fi 24} 25