History

deb-pkg: fix installed image path on parisc, mips and powerpc

Anisse Astier committed 13 years ago

Commit 9de70171 parent 810e8431 file · +20 −7Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/package/builddeb+20−7
@@ -89,6 +89,20 @@ if [ "$ARCH" = "um" ] ; then · 88 unmodified lines
89 packagename=user-mode-linux-$version89 packagename=user-mode-linux-$version
90fi90fi
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
95case $ARCH in
96um)
97 installed_image_path="usr/bin/linux-$version"
98 ;;
99parisc|mips|powerpc)
100 installed_image_path="boot/vmlinux-$version"
101 ;;
102*)
103 installed_image_path="boot/vmlinuz-$version"
104esac
105
92BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"106BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
93 107
94# Setup the directory structure108# Setup the directory structure
@@ -116,16 +130,15 @@ if [ "$ARCH" = "um" ] ; then · 21 unmodified lines
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"
120else 133else
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_IMAGE136fi
124 if [ -e $KBUILD_IMAGE ]; then137# Not all arches include the boot path in KBUILD_IMAGE
125 cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"138if [ -e $KBUILD_IMAGE ]; then
126 else139 cp $KBUILD_IMAGE "$tmpdir/$installed_image_path"
127 cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"140else
128 fi141 cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
129fi142fi
130 143
131if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then144if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t