Hi,
Pls try following steps:
1. Create libudev directory in dist/lfs-5.1/.
2. Create libudev spec file libudev.spec.
3. Edit libudev.spec. Add something like:
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : A library for udev Name : libogg
Version : 1.0.0
Release : 1
License : BSD
Vendor : Freescale
Packager : Terry Lv
Group : System Environment/Libraries
Source : %{name}-%{version}.tar.gz
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
URL : http://xxxx
%Description
%{summary}
%Prep
%setup
%Build
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --mandir=%{_mandir}
make
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/*.la
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
Note: Pls take care to %Build and %Install section. Make sure the script can build your ap succeessful.
4. Add PKG_LIBUDEV to config/userspace/packages.lkc.
Something like:
config PKG_LIBUDEV
depends PKG_ASTERISK
bool "libudev"
help
udev library.
5. Add CONFIG_PKG_LIBUDEV to imx28.cf file.
You can use following commands for testing:
download package:
./ltib -m prep -p libudev
build package:
./ltib -m scbuild -p libudev
install package:
./ltib -m scdeploy -p libudev
Thanks~~