summaryrefslogtreecommitdiffstats
path: root/meta/packages/formfactor/formfactor_0.0.bb
blob: ddbb6e4997b11602fcf37647d08090f52006db2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DESCRIPTION = "Device formfactor information"
SECTION = "base"
PR = "r8"

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
	
	install -d ${D}${sysconfdir}/gtk-2.0/
	. ${S}/machconfig

	if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
		echo "gtk-touchscreen-mode = 1" > ${D}${sysconfdir}/gtk-2.0/gtkrc
	fi
}