Re: [yocto] remove /usr/share/terminfo

2013-03-24 Thread Hans Beckerus

On 2013-03-24 11:06, Jochen Trumpf wrote:

Hi Hans,

I am not subscribed to [yocto], just browsing it occasionally, so please
excuse the private email.

For this sort of thing I am using the following in my image recipe (stolen
from some gumstix image recipe in meta-gumstix-extras, danny branch):

-- cut --
# this section removes remnants of legacy sysvinit support
# for packages installed above
IMAGE_FILE_BLACKLIST +=  \
 /etc/init.d/crond \
 /etc/init.d/dbus-1 \
 /etc/init.d/sshd \
  

remove_blacklist_files() {
 for i in ${IMAGE_FILE_BLACKLIST}; do
 rm -rf ${IMAGE_ROOTFS}$i
 done

}

ROOTFS_POSTPROCESS_COMMAND =+ remove_blacklist_files ; 
-- cut --

You can add arbitrary commands to ROOTFS_POSTPROCESS_COMMAND, e.g. your link
to the network share. As you can see, you can use wildcards in the blacklist
entries, or anything that rm -rf will understand.

In case you want to use a similar mechanism to ADD files that are not already
present on your build machine, that is not (easily) possible since
image.bbclass does not support do_fetch, so SRC_URI does not work within an
image recipe. The philosophy seems to be that you need a separate recipe to
add things.

Hope this helps.

Cheers,
Jochen

P.S.: Feel free to forward this to the list if you think it might be
interesting for other people.


Hi Jochen. Thanks for the information. As you might have seen already, I 
solved it by using a .bbappend for ncurses, but I must admit that your 
solution is a lot more elegant. I will try your approach instead and 
keep it in mind when needing something similar in the future.


Hans

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] ATNGW100

2013-03-24 Thread Justin Seitz
Hey guys and gals,

I posted a similar question to the OE mailing list, so hopefully I am not 
spamming some folks. I have copied over the atngw100.conf file and its required 
include/tune-at32ap7000.inc file.

When I attempt to bitbike I get the following error:

TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a valid 
tune configuration file which will set this correctly.
Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH (None).

When I update them to be avr32, those checks pass but I get an error of:

Toolchain tunings invalid:
No tuning found for default multilib.

I have looked through the example MACHINE files that are provided, and I don't 
see a reference to TUNE_ARCH or PACKAGE_ARCHS from the Yocto project. I'm a bit 
stumped to be honest. Has anyone successfully built the ATNGW100 using Yocto 
and could lend me some love?

JMS

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto