在线时间0 小时
UID2109992
注册时间2014-7-16
NXP金币0
该用户从未签到
新手上路

- 积分
- 16
- 最后登录
- 1970-1-1
|
最近将android代码移植freescale上使用,使用的BSP版本:L3.0.35_4.1.0_130816_source.tar.gz
将ltib编译完成后,按照文档上的提示:
1、将代码打包,放到/opt/freescale/pkgs/下。
ll /opt/freescale/pkgs/
rw-rw-r-- 1 tuelee tuelee 2128802 Jul 19 11:58 BlueSoleil_E-x.y.tar.gz
2、在dist/lfs-5.1/ 下创建BlueSoleil_E-x.y/文件夹,同时创建BlueSoleil_E-x.y.spec
cp dist/lfs-5.1/template/template.spec dist/lfs-5.1/Bluesoleil_E/BlueSoleil_E-x.y.spec
ll dist/lfs-5.1/BlueSoleil_E-x.y/
-rwxrwxr-x 1 tuelee tuelee 686 Jul 19 12:15 BlueSoleil_E-x.y.spec*
BlueSoleil_E-x.y.spec信息如下:(该的可能有些问题,请有经验的人指导下)
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : Some simple but meaningful text BlueSoleil_E
Name : BlueSoleil_E
Version : x.y
Release : z
License : xxxx
Vendor : Freescale
Packager : xxxx
Group : xxxx
URL : http://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}/*
我仅仅需要编译一个应用软件,也可以理解为一个可执行的程序,不知道这么该有问题吗?
3、执行./ltib -m prep -p BlueSoleil_E-x.y.spec
能够成功的解压,最后几行的log如下:
-rwxrwxr-x tuelee/tuelee 22058 2014-07-19 10:39 BlueSoleil_E-x.y/polling/libbt_platform.so
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd BlueSoleil_E-x.y
+ exit 0
Build time for BlueSoleil_E-x.y: 0 secondsdrwxr-xr-x 5 tuelee tuelee 4096 Jul 16 10:13 BlueSoleil_E-x.y/
drwxr-xr-x 34 tuelee tuelee 4096 Jul 3 17:43 busybox-1.20.2/
drwxrwxr-x 2 tuelee tuelee 4096 Jul 17 09:53 hello/
lrwxrwxrwx 1 tuelee tuelee 52 Jul 3 17:09 linux -> /home/tuelee/Delphi/ltib/ltib/rpm/BUILD/linux-3.0.35/
drwxr-xr-x 26 tuelee tuelee 4096 Jul 16 15:27 linux-3.0.35/
ll rpm/BUILD/
4、./ltib -m scbuild -p BlueSoleil_E-x.y.spec(这条命令貌似就是编译,也请大神 能帮我确实对否?)
出现错误信息如下:
tuelee@tuelee:~/Delphi/ltib/ltib$ ./ltib -m scbuild -p BlueSoleil_E-x.y.spec
Processing: BlueSoleil_E-x.y
==============================
Build path taken because: directory build, build key set, no prebuilt rpm,
rpmbuild --dbpath /home/tuelee/Delphi/ltib/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/tuelee/Delphi/ltib/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/tuelee/Delphi/ltib/ltib/tmp' --define '_rpmdir /home/tuelee/Delphi/ltib/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/tuelee/Delphi/ltib/ltib/dist/lfs-5.1/BlueSoleil_E-x.y/BlueSoleil_E-x.y.spec
Building target platforms: arm
Building for target arm
Executing(%build): /bin/sh -e /home/tuelee/Delphi/ltib/ltib/tmp/rpm-tmp.27495
+ umask 022
+ cd /home/tuelee/Delphi/ltib/ltib/rpm/BUILD
+ cd BlueSoleil_E-x.y
+ ./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu
/home/tuelee/Delphi/ltib/ltib/tmp/rpm-tmp.27495: 22: /home/tuelee/Delphi/ltib/ltib/tmp/rpm-tmp.27495: ./configure: not found
error: Bad exit status from /home/tuelee/Delphi/ltib/ltib/tmp/rpm-tmp.27495 (%build)
RPM build errors:
Bad exit status from /home/tuelee/Delphi/ltib/ltib/tmp/rpm-tmp.27495 (%build)
Build time for BlueSoleil_E-x.y: 0 seconds
Failed building BlueSoleil_E-x.y
f_scbuild() returned an error, exiting
traceback:
main:572
Exiting on error or interrupt
疑问出来了,上述的错误信息提示./configure不存在,然后我也在./tmp看了,确实没有这个文件,现在想问题这个文件是什么时候生成的,难道是解压的时候生成的吗?
跪求大神帮忙解决
|
|