diff options
| author | Anisse Astier <anisse@astier.eu> | 2013-07-03 10:02:05 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2013-07-24 09:50:23 -0400 |
| commit | 9de7017644ceda33bec10b6bd564c2bc8120c3fc (patch) | |
| tree | 7e058bca199cfc0539b050d64ab8deae0cb979db /scripts | |
| parent | 810e843746b7297819b0a76b6c105b9bda01fd9c (diff) | |
deb-pkg: fix installed image path on parisc, mips and powerpc
Signed-off-by: Anisse Astier <anisse@astier.eu>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/package/builddeb | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 541a1cfa9a6b..aebc66e056f4 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
| @@ -89,6 +89,20 @@ if [ "$ARCH" = "um" ] ; then | |||
| 89 | packagename=user-mode-linux-$version | 89 | packagename=user-mode-linux-$version |
| 90 | fi | 90 | fi |
| 91 | 91 | ||
| 92 | # Not all arches have the same installed path in debian | ||
| 93 | # XXX: have each arch Makefile export a variable of the canonical image install | ||
| 94 | # path instead | ||
| 95 | case $ARCH in | ||
| 96 | um) | ||
| 97 | installed_image_path="usr/bin/linux-$version" | ||
| 98 | ;; | ||
| 99 | parisc|mips|powerpc) | ||
| 100 | installed_image_path="boot/vmlinux-$version" | ||
| 101 | ;; | ||
| 102 | *) | ||
| 103 | installed_image_path="boot/vmlinuz-$version" | ||
| 104 | esac | ||
| 105 | |||
| 92 | BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)" | 106 | BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)" |
| 93 | 107 | ||
| 94 | # Setup the directory structure | 108 | # Setup the directory structure |
| @@ -116,16 +130,15 @@ if [ "$ARCH" = "um" ] ; then | |||
| 116 | cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map" | 130 | cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map" |
| 117 | cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config" | 131 | cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config" |
| 118 | gzip "$tmpdir/usr/share/doc/$packagename/config" | 132 | gzip "$tmpdir/usr/share/doc/$packagename/config" |
| 119 | cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version" | ||
| 120 | else | 133 | else |
| 121 | cp System.map "$tmpdir/boot/System.map-$version" | 134 | cp System.map "$tmpdir/boot/System.map-$version" |
| 122 | cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version" | 135 | cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version" |
| 123 | # Not all arches include the boot path in KBUILD_IMAGE | 136 | fi |
| 124 | if [ -e $KBUILD_IMAGE ]; then | 137 | # Not all arches include the boot path in KBUILD_IMAGE |
| 125 | cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" | 138 | if [ -e $KBUILD_IMAGE ]; then |
| 126 | else | 139 | cp $KBUILD_IMAGE "$tmpdir/$installed_image_path" |
| 127 | cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version" | 140 | else |
| 128 | fi | 141 | cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path" |
| 129 | fi | 142 | fi |
| 130 | 143 | ||
| 131 | if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then | 144 | if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then |
