diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-28 17:11:57 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-08-28 17:11:57 +0100 |
commit | d5341fb7968108615da58d127655c8238a3e19b0 (patch) | |
tree | 0c5f9463a34d378c3da3e40ed81baa66b0785997 /meta | |
parent | 1937c08705b2e9fb209b2d703fec63b8c4421083 (diff) | |
download | poky-d5341fb7968108615da58d127655c8238a3e19b0.tar.gz |
Add poky-trim-schemas post install script to remove unneeded schema locale translations from images (credit to Ross Burton for the initial script)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 8225980f73..6b0a14d9ac 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -225,6 +225,18 @@ rootfs_no_x_startup () { | |||
225 | fi | 225 | fi |
226 | } | 226 | } |
227 | 227 | ||
228 | rootfs_trim_schemas () { | ||
229 | for schema in ${IMAGE_ROOTFS}/etc/gconf/schemas/*.schemas | ||
230 | do | ||
231 | # Need this in case no files exist | ||
232 | if [ -e $schema ]; then | ||
233 | poky-trim-schemas $schema > $schema.new | ||
234 | mv $schema.new $schema | ||
235 | fi | ||
236 | done | ||
237 | } | ||
238 | |||
239 | |||
228 | # export the zap_root_password, create_etc_timestamp and remote_init_link | 240 | # export the zap_root_password, create_etc_timestamp and remote_init_link |
229 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup | 241 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup |
230 | 242 | ||