| 1 |
manifest-version: '0.1' |
| 2 |
definitions: |
| 3 |
variables: |
| 4 |
# Debian/rules always updates this line during the build. |
| 5 |
binutils_source_version: "2.46-3" |
| 6 |
# The target GNU type, for readability. |
| 7 |
gnu_type: or1k-elf |
| 8 |
# Identical to gnu_type, except when it contains an underscore. |
| 9 |
gnu_type_in_package_name: '{{gnu_type}}' |
| 10 |
installations: |
| 11 |
- install: |
| 12 |
sources: |
| 13 |
# EXECUTABLES_IN_BIN |
| 14 |
# For each executable in the path, provide a manual page as a symbolic |
| 15 |
# link to the one from binutils-common. |
| 16 |
# Keep the two lists in sync so that debputy reports upstream changes. |
| 17 |
- usr/bin/{{gnu_type}}-addr2line |
| 18 |
- usr/bin/{{gnu_type}}-ar |
| 19 |
- usr/bin/{{gnu_type}}-as |
| 20 |
- usr/bin/{{gnu_type}}-c++filt |
| 21 |
- usr/bin/{{gnu_type}}-elfedit |
| 22 |
- usr/bin/{{gnu_type}}-gprof |
| 23 |
- usr/bin/{{gnu_type}}-ld |
| 24 |
- usr/bin/{{gnu_type}}-ld.bfd |
| 25 |
- usr/bin/{{gnu_type}}-nm |
| 26 |
- usr/bin/{{gnu_type}}-objcopy |
| 27 |
- usr/bin/{{gnu_type}}-objdump |
| 28 |
- usr/bin/{{gnu_type}}-ranlib |
| 29 |
- usr/bin/{{gnu_type}}-readelf |
| 30 |
- usr/bin/{{gnu_type}}-size |
| 31 |
- usr/bin/{{gnu_type}}-strings |
| 32 |
- usr/bin/{{gnu_type}}-strip |
| 33 |
# Private libraries. |
| 34 |
- usr/lib/{{gnu_type}}/bfd-plugins/libdep.so |
| 35 |
- usr/lib/{{gnu_type}}/ldscripts/* |
| 36 |
- discard: |
| 37 |
# Shared data are provided by the binutils-common dependency. |
| 38 |
- usr/share/info/*.info |
| 39 |
# usr/share/locale/ is disabled during configuration. |
| 40 |
- usr/share/man/man1/*.1 |
| 41 |
# CROSS_HARD_LINKS |
| 42 |
- usr/{{gnu_type}}/bin/ar |
| 43 |
- usr/{{gnu_type}}/bin/as |
| 44 |
- usr/{{gnu_type}}/bin/ld |
| 45 |
- usr/{{gnu_type}}/bin/ld.bfd |
| 46 |
- usr/{{gnu_type}}/bin/nm |
| 47 |
- usr/{{gnu_type}}/bin/objcopy |
| 48 |
- usr/{{gnu_type}}/bin/objdump |
| 49 |
- usr/{{gnu_type}}/bin/ranlib |
| 50 |
- usr/{{gnu_type}}/bin/readelf |
| 51 |
- usr/{{gnu_type}}/bin/strip |
| 52 |
packages: |
| 53 |
binutils-{{gnu_type_in_package_name}}: |
| 54 |
binary-version: '{{binutils_source_version}}+{{DEB_VERSION}}' |
| 55 |
built-using: |
| 56 |
- sources-for: binutils-source |
| 57 |
transformations: |
| 58 |
# EXECUTABLES_IN_BIN |
| 59 |
- create-symlink: |
| 60 |
path: usr/share/man/man1/{{gnu_type}}-addr2line.1.gz |
| 61 |
target: addr2line.1.gz |
| 62 |
- create-symlink: |
| 63 |
path: usr/share/man/man1/{{gnu_type}}-ar.1.gz |
| 64 |
target: ar.1.gz |
| 65 |
- create-symlink: |
| 66 |
path: usr/share/man/man1/{{gnu_type}}-as.1.gz |
| 67 |
target: as.1.gz |
| 68 |
- create-symlink: |
| 69 |
path: usr/share/man/man1/{{gnu_type}}-c++filt.1.gz |
| 70 |
target: c++filt.1.gz |
| 71 |
- create-symlink: |
| 72 |
path: usr/share/man/man1/{{gnu_type}}-elfedit.1.gz |
| 73 |
target: elfedit.1.gz |
| 74 |
- create-symlink: |
| 75 |
path: usr/share/man/man1/{{gnu_type}}-gprof.1.gz |
| 76 |
target: gprof.1.gz |
| 77 |
- create-symlink: |
| 78 |
path: usr/share/man/man1/{{gnu_type}}-ld.1.gz |
| 79 |
target: ld.1.gz |
| 80 |
- create-symlink: |
| 81 |
path: usr/share/man/man1/{{gnu_type}}-ld.bfd.1.gz |
| 82 |
target: ld.bfd.1.gz |
| 83 |
- create-symlink: |
| 84 |
path: usr/share/man/man1/{{gnu_type}}-nm.1.gz |
| 85 |
target: nm.1.gz |
| 86 |
- create-symlink: |
| 87 |
path: usr/share/man/man1/{{gnu_type}}-objcopy.1.gz |
| 88 |
target: objcopy.1.gz |
| 89 |
- create-symlink: |
| 90 |
path: usr/share/man/man1/{{gnu_type}}-objdump.1.gz |
| 91 |
target: objdump.1.gz |
| 92 |
- create-symlink: |
| 93 |
path: usr/share/man/man1/{{gnu_type}}-ranlib.1.gz |
| 94 |
target: ranlib.1.gz |
| 95 |
- create-symlink: |
| 96 |
path: usr/share/man/man1/{{gnu_type}}-readelf.1.gz |
| 97 |
target: readelf.1.gz |
| 98 |
- create-symlink: |
| 99 |
path: usr/share/man/man1/{{gnu_type}}-size.1.gz |
| 100 |
target: size.1.gz |
| 101 |
- create-symlink: |
| 102 |
path: usr/share/man/man1/{{gnu_type}}-strings.1.gz |
| 103 |
target: strings.1.gz |
| 104 |
- create-symlink: |
| 105 |
path: usr/share/man/man1/{{gnu_type}}-strip.1.gz |
| 106 |
target: strip.1.gz |
| 107 |
# CROSS_HARD_LINKS |
| 108 |
# Upstream installs hard links to some executables from the |
| 109 |
# traditional path for cross-compiler tools. |
| 110 |
# Instead of copying them from debian/tmp to the package |
| 111 |
# directory, replace them with symbolic links. |
| 112 |
# Keep the two lists in sync so that debputy reports upstream changes. |
| 113 |
- create-symlink: |
| 114 |
path: /usr/{{gnu_type}}/bin/ar |
| 115 |
target: /usr/bin/{{gnu_type}}-ar |
| 116 |
- create-symlink: |
| 117 |
path: /usr/{{gnu_type}}/bin/as |
| 118 |
target: /usr/bin/{{gnu_type}}-as |
| 119 |
- create-symlink: |
| 120 |
path: /usr/{{gnu_type}}/bin/ld |
| 121 |
target: /usr/bin/{{gnu_type}}-ld |
| 122 |
- create-symlink: |
| 123 |
path: /usr/{{gnu_type}}/bin/ld.bfd |
| 124 |
target: /usr/bin/{{gnu_type}}-ld.bfd |
| 125 |
- create-symlink: |
| 126 |
path: /usr/{{gnu_type}}/bin/nm |
| 127 |
target: /usr/bin/{{gnu_type}}-nm |
| 128 |
- create-symlink: |
| 129 |
path: /usr/{{gnu_type}}/bin/objcopy |
| 130 |
target: /usr/bin/{{gnu_type}}-objcopy |
| 131 |
- create-symlink: |
| 132 |
path: /usr/{{gnu_type}}/bin/objdump |
| 133 |
target: /usr/bin/{{gnu_type}}-objdump |
| 134 |
- create-symlink: |
| 135 |
path: /usr/{{gnu_type}}/bin/ranlib |
| 136 |
target: /usr/bin/{{gnu_type}}-ranlib |
| 137 |
- create-symlink: |
| 138 |
path: /usr/{{gnu_type}}/bin/readelf |
| 139 |
target: /usr/bin/{{gnu_type}}-readelf |
| 140 |
- create-symlink: |
| 141 |
path: /usr/{{gnu_type}}/bin/strip |
| 142 |
target: /usr/bin/{{gnu_type}}-strip |