Hi Paul, Thanks very much for your help. This worked like a charm for me.
For future people searching: - this didn't work (don't know why): https://github.com/gumstix/meta-gumstix-extras/blob/02709f4fc5db1c4be6e5fc77e5e9630749a6daf7/recipes-devtools/python/python-smartpm/python-smartpm_1.4.1.bbappend - this worked: https://github.com/gumstix/meta-gumstix-extras/commit/acff007afffb19269e21bfd4cc1398fe23f00160 Hurrah! --Ash On Thu, Jul 25, 2013 at 2:24 AM, Paul Eggleton <paul.eggle...@linux.intel.com> wrote: > Hi Ash, > > On Wednesday 24 July 2013 18:59:30 Ash Charles wrote: >> I'm looking to use a bbappend to add a repository/channel that the >> smart package manager can use out of the box. For zypper, this was >> just a question of adding a configuration file to the recipe. >> >> How might I preconfigure Smart? The only way I've come up with so far >> is a postinst 'smart channel --add....' > > It does seem like Smart is geared more to configuration via the command line > rather than editing the configuration file directly. > > One approach you could take would be to add a shell function to your image > recipe (or some class that multiple image recipes can inherit) that adds the > feeds, and trigger that from ROOTFS_POSTPROCESS_COMMAND; this would add the > feeds to your image when the image is generated. Something like this: > > > add_custom_smart_config() { > smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add ... -y > } > > ROOTFS_POSTPROCESS_COMMAND += "add_custom_smart_config ; " > > > It would be nice to have something built-in for this. I'll add it to my todo > list. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto