From b88663b5d21c314468e1df857ab1f98a7fb86841 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 3 Feb 2014 14:15:06 +0100 Subject: util-linux: add fstrim Add the fstrim utility to Colibri T30 image. The utility allows to send trim commands to the underlaying flash translation layer, which allows too free not used flash sectors and those improve wear- leveling --- recipes-core/util-linux/util-linux_2.22.2.bbappend | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 recipes-core/util-linux/util-linux_2.22.2.bbappend (limited to 'recipes-core') diff --git a/recipes-core/util-linux/util-linux_2.22.2.bbappend b/recipes-core/util-linux/util-linux_2.22.2.bbappend new file mode 100644 index 0000000..d3f8ca2 --- /dev/null +++ b/recipes-core/util-linux/util-linux_2.22.2.bbappend @@ -0,0 +1,12 @@ +#backport from master, util-linux: Add fstrim utility, commit ee3599472d7c5ccbf259312c7622b982941b6b1e + +PRINC := "${@int(PRINC) + 2}" + +PACKAGES =+ "util-linux-fstrim" +FILES_util-linux-fstrim = "${base_sbindir}/fstrim" + +do_install_append () { + if [ -f "${D}${sbindir}/fstrim" ]; then + mv "${D}${sbindir}/fstrim" "${D}${base_sbindir}/fstrim" + fi +} -- cgit v1.2.3