summaryrefslogtreecommitdiffstats
path: root/recipes-core/base-files/base-files_%.bbappend
blob: b8d5d07ce857f6cad765b449ceafd96ba4bc57b9 (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
25
26
27
28
29
dirs755_gluon = "${base_bindir} /boot /dev ${sysconfdir} ${sysconfdir}/default \
                 ${sysconfdir}/skel ${base_libdir} /mnt /proc ${ROOT_HOME} /run ${base_sbindir} \
                 ${prefix} ${bindir}  ${docdir} \
                 ${libdir} ${sbindir} ${datadir} \
                 ${datadir}/common-licenses \
                 ${localstatedir} \
                 ${localstatedir}/backups ${localstatedir}/lib \
                 /sys ${localstatedir}/lib/misc ${localstatedir}/spool \
                 ${localstatedir}/volatile \
                 ${localstatedir}/volatile/log \
                 /home ${localstatedir}/local"

do_install_append_merged-usr () {
	if [ "${base_bindir}" != "/bin" ]; then
		ln -snf "${@d.getVar('base_bindir', True)[1:]}" ${D}/bin
	fi

	if [ "${base_sbindir}" != "/sbin"  ]; then
		ln -snf "${@d.getVar('base_sbindir', True)[1:]}" ${D}/sbin
	fi

	if [ "${base_libdir}" != "/lib" ]; then
		ln -snf "${@d.getVar('base_libdir', True)[1:]}" ${D}/lib
	fi

	if [ "${bindir}" = "${exec_prefix}/bin" -a "${sbindir}" = "${exec_prefix}/bin" ]; then
		ln -snf bin ${D}${exec_prefix}/sbin
	fi
}