Platforma sprzętowa w PLD
Daniel Dawid Majewski
light-i w o2.pl
Pon, 24 Maj 2010, 22:24:07 CEST
W odpowiedzi na wiadomość z dnia 24.05.2010 21:41, od Przemyslaw Iskra:
>>> Obie ścieżki są bezsensowne. Prawdopodobnie o coś w stylu
>>> i686-pld-linux-gnu chodziło. Lecz jeśli nie jest to coś bardzo
>>> specjalistycznego (kompilator jakiś na przykład) to powinno to
>>> odpowiednio po /usr/lib(64) i /usr/share pliki porozkładać.
>> Męczę cressavr32-binutils.spec z binutils v.2.18 i się wykłada już na końcu %files, więc się zastanawiam, jak to
>> sensownie i pięknie poprawić...
>
> W takim razie to powinno być coś w stylu:
> %{_prefix}/avr32-(co to za abi)
zapomniałem napisać :
%define target avr32-pld-linux
%define archdir %{_prefix}/%{target}
Sęk w tym, że są to narzędzia działające na platformie pc, pozwalające na budowę binariów na inną architekturę (AVR32),
przy czym istnieją pliki o identycznych nazwach w natywnym binutils...
Co mogę i ja tu poprawić ?
Zbudowana gałąź na moim lapku wyglada tak (po skróceniu o listę plików locale/debugsrc) :
$ ls -lR /home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/:
razem 28
drwxr-xr-x 4 builder rpm 4096 05-24 21:18 avr32-pld-linux
drwxr-xr-x 2 builder rpm 4096 05-24 21:19 bin
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 lib
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 lib64
drwxr-xr-x 5 builder rpm 4096 05-24 21:19 share
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 src
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 x86_64-unknown-linux-gnu
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/avr32-pld-linux:
razem 8
drwxr-xr-x 2 builder rpm 4096 05-24 21:19 bin
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 lib
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/avr32-pld-linux/bin:
razem 1444
-rwxr-xr-x 2 builder rpm 51888 05-24 21:19 ar
-rwxr-xr-x 2 builder rpm 288480 05-24 21:19 as
-rwxr-xr-x 2 builder rpm 327744 05-24 21:19 ld
-rwxr-xr-x 2 builder rpm 40488 05-24 21:19 nm
-rwxr-xr-x 2 builder rpm 207016 05-24 21:19 objcopy
-rwxr-xr-x 2 builder rpm 259048 05-24 21:19 objdump
-rwxr-xr-x 2 builder rpm 51888 05-24 21:19 ranlib
-rwxr-xr-x 2 builder rpm 207024 05-24 21:19 strip
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/avr32-pld-linux/lib:
razem 4
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 ldscripts
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/avr32-pld-linux/lib/ldscripts:
razem 88
-rw-r--r-- 1 builder rpm 7393 05-24 21:18 avr32linux.x
-rw-r--r-- 1 builder rpm 7378 05-24 21:18 avr32linux.xbn
-rw-r--r-- 1 builder rpm 6983 05-24 21:18 avr32linux.xc
-rw-r--r-- 1 builder rpm 7393 05-24 21:18 avr32linux.xn
-rw-r--r-- 1 builder rpm 5050 05-24 21:18 avr32linux.xr
-rw-r--r-- 1 builder rpm 7032 05-24 21:18 avr32linux.xs
-rw-r--r-- 1 builder rpm 6639 05-24 21:18 avr32linux.xsc
-rw-r--r-- 1 builder rpm 6655 05-24 21:18 avr32linux.xsw
-rw-r--r-- 1 builder rpm 5096 05-24 21:18 avr32linux.xu
-rw-r--r-- 1 builder rpm 6999 05-24 21:18 avr32linux.xw
-rw-r--r-- 1 builder rpm 7381 05-24 21:18 avr32linux.xwr
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/bin:
razem 1908
-rwxr-xr-x 1 builder rpm 27464 05-24 21:19 avr32-pld-linux-addr2line
-rwxr-xr-x 2 builder rpm 51888 05-24 21:19 avr32-pld-linux-ar
-rwxr-xr-x 2 builder rpm 288480 05-24 21:19 avr32-pld-linux-as
-rwxr-xr-x 1 builder rpm 22952 05-24 21:19 avr32-pld-linux-c++filt
-rwxr-xr-x 1 builder rpm 94288 05-24 21:19 avr32-pld-linux-gprof
-rwxr-xr-x 2 builder rpm 327744 05-24 21:19 avr32-pld-linux-ld
-rwxr-xr-x 2 builder rpm 40488 05-24 21:19 avr32-pld-linux-nm
-rwxr-xr-x 2 builder rpm 207016 05-24 21:19 avr32-pld-linux-objcopy
-rwxr-xr-x 2 builder rpm 259048 05-24 21:19 avr32-pld-linux-objdump
-rwxr-xr-x 2 builder rpm 51888 05-24 21:19 avr32-pld-linux-ranlib
-rwxr-xr-x 1 builder rpm 255760 05-24 21:19 avr32-pld-linux-readelf
-rwxr-xr-x 1 builder rpm 27432 05-24 21:19 avr32-pld-linux-size
-rwxr-xr-x 1 builder rpm 27432 05-24 21:19 avr32-pld-linux-strings
-rwxr-xr-x 2 builder rpm 207024 05-24 21:19 avr32-pld-linux-strip
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib:
razem 4
drwxr-xr-x 4 builder rpm 4096 05-24 21:18 debug
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug:
razem 4
drwxr-xr-x 4 builder rpm 4096 05-24 21:18 usr
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug/usr:
razem 8
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 bin
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 x86_64-unknown-linux-gnu
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug/usr/bin:
razem 6316
-rwxr-xr-x 1 builder rpm 126664 05-24 21:18 avr32-pld-linux-addr2line.debug
-rwxr-xr-x 1 builder rpm 255008 05-24 21:18 avr32-pld-linux-ar.debug
-rwxr-xr-x 1 builder rpm 1224600 05-24 21:18 avr32-pld-linux-as.debug
-rwxr-xr-x 1 builder rpm 106032 05-24 21:18 avr32-pld-linux-c++filt.debug
-rwxr-xr-x 1 builder rpm 503008 05-24 21:18 avr32-pld-linux-gprof.debug
-rwxr-xr-x 1 builder rpm 912568 05-24 21:18 avr32-pld-linux-ld.debug
-rwxr-xr-x 1 builder rpm 166264 05-24 21:18 avr32-pld-linux-nm.debug
-rwxr-xr-x 1 builder rpm 709792 05-24 21:18 avr32-pld-linux-objcopy.debug
-rwxr-xr-x 1 builder rpm 787344 05-24 21:18 avr32-pld-linux-objdump.debug
-rwxr-xr-x 1 builder rpm 255000 05-24 21:18 avr32-pld-linux-ranlib.debug
-rwxr-xr-x 1 builder rpm 372416 05-24 21:18 avr32-pld-linux-readelf.debug
-rwxr-xr-x 1 builder rpm 130104 05-24 21:18 avr32-pld-linux-size.debug
-rwxr-xr-x 1 builder rpm 130752 05-24 21:18 avr32-pld-linux-strings.debug
-rwxr-xr-x 1 builder rpm 709792 05-24 21:18 avr32-pld-linux-strip.debug
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug/usr/x86_64-unknown-linux-gnu:
razem 4
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 avr32-pld-linux
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug/usr/x86_64-unknown-linux-gnu/avr32-pld-linux:
razem 4
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 lib
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib/debug/usr/x86_64-unknown-linux-gnu/avr32-pld-linux/lib:
razem 2408
-rwxr-xr-x 1 builder rpm 2214304 05-24 21:18 libbfd-2.18.atmel.1.0.1.avr32linux.1.so.debug
lrwxrwxrwx 1 builder rpm 45 05-24 21:18 libbfd.so.debug -> libbfd-2.18.atmel.1.0.1.avr32linux.1.so.debug
-rwxr-xr-x 1 builder rpm 239320 05-24 21:18 libopcodes-2.18.atmel.1.0.1.avr32linux.1.so.debug
lrwxrwxrwx 1 builder rpm 49 05-24 21:18 libopcodes.so.debug -> libopcodes-2.18.atmel.1.0.1.avr32linux.1.so.debug
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/lib64:
razem 0
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share:
razem 12
drwxr-xr-x 3 builder rpm 4096 05-24 21:19 doc
drwxr-xr-x 22 builder rpm 4096 05-24 21:18 locale
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 man
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share/doc:
razem 4
drwxr-xr-x 2 builder rpm 4096 05-24 21:19 crossavr32-binutils-2.18
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share/doc/crossavr32-binutils-2.18:
razem 4
-rw-r--r-- 1 builder rpm 925 1999-05-03 README.gz
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share/locale:
[...]
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share/man:
razem 4
drwxr-xr-x 2 builder rpm 4096 05-24 21:19 man1
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/share/man/man1:
[...]
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/src:
razem 4
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 debug
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/src/debug:
razem 4
drwxr-xr-x 10 builder rpm 4096 05-24 21:18 binutils-2.18
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/src/debug/binutils-2.18:
razem 32
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 bfd
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 binutils
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 gas
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 gprof
drwxr-xr-x 5 builder rpm 4096 05-24 21:18 include
drwxr-xr-x 3 builder rpm 4096 05-24 21:18 ld
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 libiberty
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 opcodes
[...]
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/x86_64-unknown-linux-gnu:
razem 4
drwxr-xr-x 4 builder rpm 4096 05-24 21:18 avr32-pld-linux
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/x86_64-unknown-linux-gnu/avr32-pld-linux:
razem 8
drwxr-xr-x 2 builder rpm 4096 05-24 21:18 include
drwxr-xr-x 2 builder rpm 4096 05-24 21:19 lib
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/x86_64-unknown-linux-gnu/avr32-pld-linux/include:
razem 256
-rw-r--r-- 1 builder rpm 13139 05-24 21:18 ansidecl.h
-rw-r--r-- 1 builder rpm 184480 05-24 21:18 bfd.h
-rw-r--r-- 1 builder rpm 29372 05-24 21:18 bfdlink.h
-rw-r--r-- 1 builder rpm 16054 05-24 21:18 dis-asm.h
-rw-r--r-- 1 builder rpm 1902 05-24 21:18 symcat.h
/home/users/builder/tmp/crossavr32-binutils-2.18-root-builder/usr/x86_64-unknown-linux-gnu/avr32-pld-linux/lib:
razem 2024
-rwxr-xr-x 1 builder rpm 613880 05-24 21:19 libbfd-2.18.atmel.1.0.1.avr32linux.1.so
-rw-r--r-- 1 builder rpm 772270 05-24 21:19 libbfd.a
-rwxr-xr-x 1 builder rpm 1122 05-24 21:18 libbfd.la
lrwxrwxrwx 1 builder rpm 39 05-24 21:18 libbfd.so -> libbfd-2.18.atmel.1.0.1.avr32linux.1.so
-rwxr-xr-x 1 builder rpm 325552 05-24 21:19 libopcodes-2.18.atmel.1.0.1.avr32linux.1.so
-rw-r--r-- 1 builder rpm 331246 05-24 21:19 libopcodes.a
-rwxr-xr-x 1 builder rpm 1081 05-24 21:18 libopcodes.la
lrwxrwxrwx 1 builder rpm 43 05-24 21:18 libopcodes.so -> libopcodes-2.18.atmel.1.0.1.avr32linux.1.so
--
Pozdrawiam,
Daniel Dawid Majewski
jabber:light-i/pld-users.org
Więcej informacji o liście dyskusyjnej pld-devel-pl