This commit is contained in:
parent
26c60eab3d
commit
b157987ff1
@ -89,8 +89,11 @@ cat >> %{buildroot}%{_docdir}/%{name}/user-manual.html <<EOF
|
||||
<a href="user-manual-%{doc_vers}/pages.html">user-manual-%{doc_vers}/index.html</a>
|
||||
EOF
|
||||
|
||||
mkdir -p %{buildroot}/%{PREFIX}/avr
|
||||
cp -pr man %{buildroot}/%{PREFIX}/avr/.
|
||||
mv %{buildroot}/%{PREFIX}/avr/* %{buildroot}/%{PREFIX}/
|
||||
rm -Rf %{buildroot}/%{PREFIX}/avr
|
||||
|
||||
mkdir -p %{buildroot}/%{PREFIX}/
|
||||
cp -pr man %{buildroot}/%{PREFIX}/.
|
||||
|
||||
# do not run brp-strip-debug on our avr-elf objects.
|
||||
export NO_BRP_STRIP_DEBUG=true
|
||||
@ -101,14 +104,14 @@ export NO_BRP_STRIP_DEBUG=true
|
||||
### selftest ###
|
||||
cd ../logicp*
|
||||
## how do we tell the linker that crt*.o is at a nonstandard location?
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/crtatt*.o .
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/avrtiny/crtatt*.o .
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/avr/lib/avr?/crtatm*.o .
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega8 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega48 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib/avr4" CPU=mega644 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib" CPU=tiny2313 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$RPM_BUILD_ROOT%PREFIX/avr/lib" CPU=tiny4313 || true
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/lib/crtatt*.o .
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/lib/avrtiny/crtatt*.o .
|
||||
ln -s $RPM_BUILD_ROOT%PREFIX/lib/avr?/crtatm*.o .
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/include/ -L$RPM_BUILD_ROOT%PREFIX/lib/avr4" CPU=mega8 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/include/ -L$RPM_BUILD_ROOT%PREFIX/lib/avr4" CPU=mega48 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/include/ -L$RPM_BUILD_ROOT%PREFIX/lib/avr4" CPU=mega644 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/include/ -L$RPM_BUILD_ROOT%PREFIX/lib" CPU=tiny2313 || true
|
||||
make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/include/ -L$RPM_BUILD_ROOT%PREFIX/lib" CPU=tiny4313 || true
|
||||
|
||||
%files
|
||||
%defattr (-, root, root)
|
||||
|
Loading…
Reference in New Issue
Block a user