[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Porting asterisk to ltib
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] Porting asterisk to ltib |
Date: |
Tue, 15 Jul 2008 16:17:15 +0100 |
Hi Vadim,
Take a look at dist/lfs-5.1/busybox/busybox.spec which needs something
similar.
Basically you need a clause in the build section of the spec file like
(sub busybox for zaptel):
if [ -n "$PKG_BUSYBOX_WANT_CF" -o -n "$SCB_WANT_CF" ]
then
make menuconfig HOSTCC="$BUILDCC"
cp .config $PLATFORM_PATH/$PKG_BUSYBOX_PRECONFIG
else
yes "" | make config HOSTCC="$BUILDCC"
fi
The in config/userspace/packages.lkc you need to add your package. Look
at busybox again to get the idea. Finally you need to add a mapping for
your package name to spec file names in config/userspace/pkg_map. All
this is described in the faq (see bitshrine.org or the doc directory).
The group depends on what it does, the list you can chose from is
defined in /usr/share/doc/rpm-<ver>/GROUPS, but basically something from
this list:
Amusements/Games
Amusements/Graphics
Applications/Archiving
Applications/Communications
Applications/Databases
Applications/Editors
Applications/Emulators
Applications/Engineering
Applications/File
Applications/Internet
Applications/Multimedia
Applications/Productivity
Applications/Publishing
Applications/System
Applications/Text
Development/Debuggers
Development/Languages
Development/Libraries
Development/System
Development/Tools
Documentation
System Environment/Base
System Environment/Daemons
System Environment/Kernel
System Environment/Libraries
System Environment/Shells
User Interface/Desktops
User Interface/X
User Interface/X Hardware Support
Also, if you're package is kernel drivers, you'll need to add the
clause:select PKG_KERNEL_LEAVESRC to your entry in packages.lkc. For an
example of how to build kernel modules outside the kernel tree, look at:
config/userspace/package.lkc : PKG_HELLOWORLD_MOD and the corresponding
spec file: dist/lfs-5.1/helloworld/hello_mod.spec
Regards, Stuart
On Tue, 2008-07-15 at 17:02 +0200, Vadim Lebedev wrote:
> Hi Stuart,
>
> Thanks for your help offer
>
> Here is first question:
>
> In order to build asterisk i need to build zaptel package which
> includes various drivers
> Zaptel package provides an interactive 'menuselect' utility allowing
> for selection of drivers
> to be built, which is 1) built uisng $(HOSTCC) compiler and supposed
> to be run using 'make menuconfig' command
>
> I'm trying understand how to hook the OPTIONAL activation of this
> utility into the build
>
> Another question what would be the correct group for asterisk and
> drivers?
>
> Thanks
> Vadim
>
>
> Stuart Hughes wrote:
> > Hi Vadim,
> >
> > I've not heard of anyone having done this, but I'd help if you have
> > questions.
> >
> > Regards, Stuart
> >
> > On Tue, 2008-07-15 at 15:30 +0200, Vadim Lebedev wrote:
> >
> > > Hello,
> > >
> > > I'm trying to port asterisk to ltib environment
> > >
> > > I wonder if somebody already did it and will be willing to share info
> > > and/or .spec files and/or advice.
> > >
> > > Thanks
> > > Vadim
> > >
> >
> >
> >
> >
>
- [Ltib] Porting asterisk to ltib, Vadim Lebedev, 2008/07/15
- Re: [Ltib] Porting asterisk to ltib, Stuart Hughes, 2008/07/15
- Re: [Ltib] Porting asterisk to ltib, Vadim Lebedev, 2008/07/15
- Re: [Ltib] Porting asterisk to ltib,
Stuart Hughes <=
- Message not available
- Re: [Ltib] Porting asterisk to ltib, Stuart Hughes, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Vadim Lebedev, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Stuart Hughes, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Vadim Lebedev, 2008/07/16
- RE: [Ltib] Porting asterisk to ltib, Estevam Fabio, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Vadim Lebedev, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Peter Barada, 2008/07/16
- Re: [Ltib] Porting asterisk to ltib, Stuart Hughes, 2008/07/16
- Message not available
- [Ltib] Re: Reg-PDK-IMX31 installation with linux-wlan, Stuart Hughes, 2008/07/24