summaryrefslogtreecommitdiffstats
path: root/recipes-core/base-files
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-08-31 21:33:45 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-08-31 21:33:45 +0200
commit7835c4100601b0c645b5c3b90cd48f211e6e25da (patch)
tree2d9f7bf397023483a5c1f71d571c3286ac0c4d11 /recipes-core/base-files
parent11a3da02a809012b522dd5f22bea21120b2fee49 (diff)
downloadmeta-gluon-7835c4100601b0c645b5c3b90cd48f211e6e25da.tar
meta-gluon-7835c4100601b0c645b5c3b90cd48f211e6e25da.zip
base-files: add support for merged /usr and reduce installed dir list for Gluon
Diffstat (limited to 'recipes-core/base-files')
-rw-r--r--recipes-core/base-files/base-files_%.bbappend29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-core/base-files/base-files_%.bbappend b/recipes-core/base-files/base-files_%.bbappend
new file mode 100644
index 0000000..407658d
--- /dev/null
+++ b/recipes-core/base-files/base-files_%.bbappend
@@ -0,0 +1,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}/usr/sbin
+ fi
+}