Ver Fonte

Use IMAGE_LINGUAS to remove locale files

Set the IMAGE_LINGUAS variable to empty to remove locale files instead of using
a custom postprocess command. An example of the same usage of IMAGE_LINGUAS can
be found in core-image-minimal.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
Diego Rondini há 8 anos atrás
pai
commit
fd9e1ead84
1 ficheiros alterados com 1 adições e 6 exclusões
  1. 1 6
      recipes-extended/images/swupdate-image.bb

+ 1 - 6
recipes-extended/images/swupdate-image.bb

@@ -28,10 +28,7 @@ IMAGE_ROOTFS_SIZE = "8192"
 
 inherit image
 
-remove_locale_data_files() {
-	printf "Post processing local %s\n" ${IMAGE_ROOTFS}${libdir}/locale
-	rm -rf ${IMAGE_ROOTFS}${libdir}/locale
-}
+IMAGE_LINGUAS = " "
 
 fix_inittab_swupdate () {
 	sed -e 's/1\:2345.*/1\:2345:respawn:\/bin\/sh/' \
@@ -43,6 +40,4 @@ fix_inittab_swupdate () {
 	mv ${IMAGE_ROOTFS}${sysconfdir}/inittab.swupdate ${IMAGE_ROOTFS}${sysconfdir}/inittab
 }
 
-# remove not needed ipkg informations
-ROOTFS_POSTPROCESS_COMMAND += "remove_locale_data_files ; "
 ROOTFS_POSTPROCESS_COMMAND += "${@bb.utils.contains('SWUPDATE_INIT', 'tiny', 'fix_inittab_swupdate', '',  d)}"