Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-15 Thread Eric Grunt
> squashfs-xz (by poky) works, > squashfs_xz_ubi (custom type) also works To clarify, squashfs_xz_ubi was named squashfs-xz-ubi before, I renamed it in order to try to avoid using "-". -- ___ yocto mailing list yocto@yoctoproject.org

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-15 Thread Eric Grunt
> I think there is some translation code somewhere which probably > confuses things more as some bits have - and some have _. Does the > squashfs_xz image type actually work? There is no squashfs_xz image type. squashfs-xz (by poky) works, squashfs_xz_ubi (custom type) also works, but needs to

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-15 Thread Richard Purdie
On Mon, 2019-04-15 at 21:43 +0700, Eric Grunt wrote: > > Notice how the function names for squashfs are: > > > > do_image_squashfs_xz > > > > not > > > > do_image_squashfs-xz > > > > This is because shell functions/variables can't have "-" in their > > name. > > You need to change to us

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-15 Thread Eric Grunt
> Notice how the function names for squashfs are: > > do_image_squashfs_xz > > not > > do_image_squashfs-xz > > This is because shell functions/variables can't have "-" in their name. > You need to change to us IMAGE_CMD_squashfs_xz_ubi. I tried to basically change all "-" in the fs and variable

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread richard . purdie
On Fri, 2019-04-12 at 20:50 +0700, Eric Grunt wrote: > > The dependency code is only triggered if the image type is in > > IMAGE_FSTYPES. Did you add it there? > > Yes, in the distro conf file. > Guess, otherwise it wouldn't be built at all (since it isn't > dependency of another fs) Notice how

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread Eric Grunt
> The dependency code is only triggered if the image type is in > IMAGE_FSTYPES. Did you add it there? Yes, in the distro conf file. Guess, otherwise it wouldn't be built at all (since it isn't dependency of another fs) -- ___ yocto mailing list

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread Richard Purdie
On Fri, 2019-04-12 at 20:19 +0700, Eric Grunt wrote: > Dependencies on other file system types for custom file system type > > I'd like to add a custom fs type - a squashfs-xz on an ubi (instead > of ubifs). > For this purpose I created a new class, inherited image_types and > added > a

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread Eric Grunt
better formatted class file: inherit image_types IMAGE_TYPEDEP_squashfs-xz-ubi = "squashfs-xz" do_image_squashfs-xz-ubi[depends] += "mtd-utils-native:do_populate_sysroot" do_image_squashfs-xz-ubi[depends] += "squashfs-tools-native:do_populate_sysroot" IMAGE_CMD_squashfs-xz-ubi () {

Re: [yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread Eric Grunt
class file: inherit image_types IMAGE_TYPEDEP_squashfs-xz-ubi = "squashfs-xz" do_image_squashfs-xz-ubi[depends] += "mtd-utils-native:do_populate_sysroot" do_image_squashfs-xz-ubi[depends] += "squashfs-tools-native:do_populate_sysroot" IMAGE_CMD_squashfs-xz-ubi () { squashfsubi_mkfs

[yocto] Dependencies on other file system types for custom file system type

2019-04-12 Thread Eric Grunt
Dependencies on other file system types for custom file system type I'd like to add a custom fs type - a squashfs-xz on an ubi (instead of ubifs). For this purpose I created a new class, inherited image_types and added a dependency on squashfs-xz and also on squashfs-tools-native and