[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Re: add new package
From: |
Stuart Hughes |
Subject: |
[Ltib] Re: add new package |
Date: |
Mon, 29 Oct 2007 09:37:39 +0000 |
Hi Henry,
In addition to creating a new spec file and putting the referenced
source tarball in /opt/freescale/pkgs, you also need to introduce the
package to the config system. There are 2 parts to this:
* You need to add an entry in config/userspace/packages.lkc (this is in
alphabetic order). This makes the new package selectable from the LTIB
config system.
* Then you need to add an entry to dist/lfs-5.1/common/pkg_map
This gives both a mapping from the CONFIG_PKG_xxx symbol in the config
system and it also controls the build order of the package.
If you take a look at the FAQ
http://www.bitshrine.org/autodocs/LtibFaq.html
it's described in the sections:
'How can I add a completely new package to the root filesystem'
and
'How do I introduce my new package to the config system'
Regards, Stuart
On Sat, 2007-10-27 at 17:03 -0700, hong zhang wrote:
> Stuart,
>
> I want to add libraries such as DFBTerm.Build
> complains "cannot find spec file"
>
> 1. Download DFBTerm-0.8.0.tar.gz.
> 2. copy it to /opt/freescale/pkgs
> 3. create dist/lfs-5.1/DFBTerm/DFBTerm.spec.
> 4. ./ltib -m prep -p DFBTerm
>
> Cannot find spec file that contains the package
> name DFBTerm.
> If necessary please give the whole spec file name
> (with the .spec extension).
>
> Exiting on error or interrupt
>
> Following is content of DFBTerm.spec.
>
> *************************************************
> %define pfx /opt/freescale/rootfs/%{_target_cpu}
>
> Summary : Some simple but meaningful text
> Name : DFBTerm
> Version : 0.8.0
> Release : 1
> License : LGPL
> Vendor : Freescale
> Packager : xxxx
> Group : xxxx
> Source : %{name}-%{version}.tar.gz
> BuildRoot : %{_tmppath}/%{name}
> Prefix : %{pfx}
>
> %Description
> %{summary}
>
> %Prep
> %setup
>
> %Build
> ./configure --prefix=%{_prefix} --host=$CFGHOST
> --build=%{_build}
> make
>
> %Install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
>
> %Clean
> rm -rf $RPM_BUILD_ROOT
>
> %Files
> %defattr(-,root,root)
> %{pfx}/*
> *************************************************
>
> What is wrong?
> /opt/freescale/pkgs/DFBTerm-0.8.0.tar.gz is there.
>
> --henry
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com