From: Tadek D <tdr...@ta...> - 2009-02-06 16:42:30
|
Chris, Ok. I tried DEFAULT_PREFERENCE = "-1" in 1.0.1 recipe. When bitbake -c rebuild xxx it as expected used my previous recipe. But when bitbake -c rebuild gumstix-xxx-image in the directory <gum-oe>/tmp/rootfs newer version of xxx appeared. I even tried to deleting <gum-oe>/tmp/work/armv5te-angstrom-linux-gnueabi/xxx-1.0.1-r1. Magically 1.0.0 keep re-appearing. I also tried modifying gumstix.inc (but in <gum-oe>/user.collection/conf/machine/include/gumstix.inc) by adding PREFERRED_VERSION_xxx lines = "1.0.0" . It effects bitbaking xxx, but not rootfs image I desperately trying to bake :( My gumstix-xxx-image.bb looks like this: # basic gumstix image require ${GUMSTIXTOP}/user.collection/packages/images/gumstix-minimal-image.bb IMAGE_INSTALL += " \ busybox \ cron \ ntp \ ntpdate \ motd \ mtd-utils \ iptables \ kernel-modules \ xxx \ " Chris Dollar wrote: > > Oh... I wasn't reading close enough either :) Bitbake will always > prefer the newest version of any given package unless you explicitly > tell it not to. There are a couple of ways to do this. If you look in > <gum-oe>/com.gumstix.collection/conf/machine/include/gumstix.inc > you'll see a number of PREFERRED_VERSION_xxx lines -- you could add a > line like that for your package specifying the 1.0.0 version. Another > way is to add the line DEFAULT_PREFERENCE = "-1" to the 1.0.1 recipe > which will tell bitbake basically the same thing. > > Chris > > On Thu, Feb 5, 2009 at 9:22 PM, Tadek D <tdr...@ta...> wrote: >> >> Hi Chris, >> My typo and apology. I had (-c rebuild) >> bitbake -c rebuild -b xxx_1.0.0.bb >> bitbake -c rebuild gumstix-xxx-image >> but the binary for xxx application still corresponds to the newer one >> i.e. >> 1.0.1 and not to 1.0.0. :( >> Any clue? >> Tad >> PS Thank you for the note on task-base-gumstix bitbaking >> >> >> Chris Dollar wrote: >>> >>> Hi Tad, >>> >>>> bitbake -c rebuild -b xxx_1.0.0.bb >>>> bitbake -c task-base-gumstix >>>> bitbake -c gumstix-xxx-image >>>> the resulting file system did not change (i.e. it contains newer >>>> version >>>> of >>>> xxx corresponding to 1.0.1 recipe). >>>> >>> That should be: >>> bitbake -c rebuild -b xxx_1.0.0.bb >>> bitbake -c rebuild gumstix-xxx-image >>> >>> Note the '-c rebuild' part for the image. Also, you only need to >>> rebuild task-base-gumstix (which would also be 'bitbake -c rebuild >>> task-base-gumstix') if you change settings such as MACHINE_FEATURES in >>> gumstix-custom-<connex/verdex>.conf >>> >>> Chris >>> >>> ------------------------------------------------------------------------------ >>> Create and Deploy Rich Internet Apps outside the browser with >>> Adobe(R)AIR(TM) >>> software. With Adobe AIR, Ajax developers can use existing skills and >>> code >>> to >>> build responsive, highly engaging applications that combine the power of >>> local >>> resources and data with the reach of the web. Download the Adobe AIR SDK >>> and >>> Ajax docs to start building applications >>> today-http://p.sf.net/sfu/adobe-com >>> _______________________________________________ >>> gumstix-users mailing list >>> gum...@li... >>> https://lists.sourceforge.net/lists/listinfo/gumstix-users >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/rebuilding-root-file-system-image-tp21862475p21866362.html >> Sent from the Gumstix mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Create and Deploy Rich Internet Apps outside the browser with >> Adobe(R)AIR(TM) >> software. With Adobe AIR, Ajax developers can use existing skills and >> code to >> build responsive, highly engaging applications that combine the power of >> local >> resources and data with the reach of the web. Download the Adobe AIR SDK >> and >> Ajax docs to start building applications >> today-http://p.sf.net/sfu/adobe-com >> _______________________________________________ >> gumstix-users mailing list >> gum...@li... >> https://lists.sourceforge.net/lists/listinfo/gumstix-users >> > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications > today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/rebuilding-root-file-system-image-tp21862475p21876158.html Sent from the Gumstix mailing list archive at Nabble.com. |