diff options
Diffstat (limited to 'meta/recipes-bsp/formfactor/formfactor_0.0.bb')
-rw-r--r-- | meta/recipes-bsp/formfactor/formfactor_0.0.bb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-bsp/formfactor/formfactor_0.0.bb b/meta/recipes-bsp/formfactor/formfactor_0.0.bb new file mode 100644 index 0000000000..bee1b380aa --- /dev/null +++ b/meta/recipes-bsp/formfactor/formfactor_0.0.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "Device formfactor information" +SECTION = "base" +LICENSE = "MIT" +PR = "r18" + +SRC_URI = "file://config file://machconfig" +S = "${WORKDIR}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +do_install() { + # Only install file if it has a contents + install -d ${D}${sysconfdir}/formfactor/ + install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ + if [ -s "${S}/machconfig" ]; then + install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ + fi +} |