aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/formfactor/formfactor_0.0.bbappend
blob: b509028ae2b5d110ebc567236d28dc71338a62a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PRINC := "${@int(PRINC) + 3}"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

do_install_prepend () {
	# provide machine-specific /etc/rotation for psplash
	sed -n 's/^[ \t]*DISPLAY_ORIENTATION[ \t]*//p' ${S}/machconfig | tr -dc '[0-9]' > ${S}/rotation
}

do_install_append () {
	# Only install file if it has a content
	if [ -s "${S}/rotation" ]; then
	install -d ${D}${sysconfdir}
	install -m 0644 ${S}/rotation ${D}${sysconfdir}/rotation
	fi
}